3 @author: Sudheer K. <scifi1947 at gmail.com>
4 @license: GNU General Public License
7 #ifndef TELEPATHYUTILITY_H
8 #define TELEPATHYUTILITY_H
11 #include <QDBusObjectPath>
12 #include <QDBusArgument>
15 #define AM_SERVICE "org.freedesktop.Telepathy.AccountManager"
16 #define AM_OBJ_PATH "/org/freedesktop/Telepathy/AccountManager"
17 #define AM_INTERFACE "org.freedesktop.Telepathy.AccountManager"
18 #define RING_CONN_SERVICE "org.freedesktop.Telepathy.Connection.ring.tel.ring"
19 #define RING_CONN_PATH "/org/freedesktop/Telepathy/Connection/ring/tel/ring"
20 #define DBUS_SERVICE "org.freedesktop.DBus.Properties"
21 #define DBUS_OBJ_PATH "/org/freedesktop/DBus/Properties"
22 #define DBUS_PROPS_IFACE "org.freedesktop.DBus.Properties"
25 namespace freedesktop {
31 QString statusMessage;
37 Q_DECLARE_METATYPE(org::freedesktop::Telepathy::SimplePresence);
39 bool operator==(const org::freedesktop::Telepathy::SimplePresence& v1, const org::freedesktop::Telepathy::SimplePresence& v2);
40 inline bool operator!=(const org::freedesktop::Telepathy::SimplePresence& v1, const org::freedesktop::Telepathy::SimplePresence& v2)
42 return !operator==(v1, v2);
44 QDBusArgument& operator<<(QDBusArgument& arg, const org::freedesktop::Telepathy::SimplePresence& val);
45 const QDBusArgument& operator>>(const QDBusArgument& arg, org::freedesktop::Telepathy::SimplePresence& val);
47 class TelepathyUtility : public QObject
51 TelepathyUtility(QObject *parent = 0);
53 QList<QDBusObjectPath> getAllAccounts();
54 QString getAccountStatus();
58 bool callNumberWithRing(QString number);
59 bool sendDTMFTone(QString tone);
62 #endif // TELEPATHYUTILITY_H