~phablet-team/telephony-service/trunk

« back to all changes in this revision

Viewing changes to handler/tests/handlercontroller.h

  • Committer: Michael Terry
  • Date: 2014-01-29 15:16:16 UTC
  • mfrom: (766 trunk)
  • mto: This revision was merged to the branch mainline in revision 769.
  • Revision ID: michael.terry@canonical.com-20140129151616-63986zad796m4gtl
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * Copyright (C) 2013 Canonical, Ltd.
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify it under
 
5
 * the terms of the GNU General Public License version 3, as published by
 
6
 * the Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful, but WITHOUT
 
9
 * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
 
10
 * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11
 * General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 *
 
16
 * Authors:
 
17
 *  Gustavo Pichorim Boiko <gustavo.boiko@canonical.com>
 
18
 */
 
19
 
 
20
#ifndef HANDLERCONTROLLER_H
 
21
#define HANDLERCONTROLLER_H
 
22
 
 
23
#include <QObject>
 
24
#include <QDBusInterface>
 
25
 
 
26
class HandlerController : public QObject
 
27
{
 
28
    Q_OBJECT
 
29
public:
 
30
    static HandlerController *instance();
 
31
 
 
32
public Q_SLOTS:
 
33
    void startCall(const QString &number);
 
34
    void hangUpCall(const QString &objectPath);
 
35
    void setHold(const QString &objectPath, bool hold);
 
36
    void setMuted(const QString &objectPath, bool muted);
 
37
    void setSpeakerMode(const QString &objectPath, bool enabled);
 
38
    void sendDTMF(const QString &objectPath, const QString &key);
 
39
 
 
40
    void sendMessage(const QString &number, const QString &message);
 
41
    void acknowledgeMessages(const QString &number, const QStringList &messageIds);
 
42
 
 
43
private:
 
44
    explicit HandlerController(QObject *parent = 0);
 
45
    QDBusInterface mHandlerInterface;
 
46
};
 
47
 
 
48
#endif // HANDLERCONTROLLER_H