2
* Copyright (C) 2013 Canonical, Ltd.
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.
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.
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/>.
17
* Gustavo Pichorim Boiko <gustavo.boiko@canonical.com>
20
#ifndef HANDLERCONTROLLER_H
21
#define HANDLERCONTROLLER_H
24
#include <QDBusInterface>
26
class HandlerController : public QObject
30
static HandlerController *instance();
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);
40
void sendMessage(const QString &number, const QString &message);
41
void acknowledgeMessages(const QString &number, const QStringList &messageIds);
44
explicit HandlerController(QObject *parent = 0);
45
QDBusInterface mHandlerInterface;
48
#endif // HANDLERCONTROLLER_H