2
* Copyright (C) 2012-2013 Canonical, Ltd.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; version 3.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU 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
#ifndef ADDRESSBOOK_APPDBUS_H
18
#define ADDRESSBOOK_APPDBUS_H
20
#include <QtCore/QObject>
21
#include <QtDBus/QDBusContext>
24
* DBus interface for the phone app
26
class AddressBookAppDBus : public QObject, protected QDBusContext
31
AddressBookAppDBus(QObject* parent=0);
32
~AddressBookAppDBus();
36
static QString serviceName();
37
static QString objectPath();
38
static QString interfaceName();
41
Q_NOREPLY void ShowContact(const QVariant &contactId);
42
Q_NOREPLY void CreateContact(const QString &phoneNumber);
43
Q_NOREPLY void SendAppMessage(const QString &message);
44
Q_NOREPLY void AddPhoneToContact(const QString &contactId, const QString &phoneNumber);
47
void request(const QString &message);
50
#endif // ADDRESSBOOK_APPDBUS_H