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 DBUS_SERVICE "org.freedesktop.DBus.Properties"
19 #define DBUS_OBJ_PATH "/org/freedesktop/DBus/Properties"
20 #define DBUS_PROPS_IFACE "org.freedesktop.DBus.Properties"
23 namespace freedesktop {
29 QString statusMessage;
35 Q_DECLARE_METATYPE(org::freedesktop::Telepathy::SimplePresence);
37 bool operator==(const org::freedesktop::Telepathy::SimplePresence& v1, const org::freedesktop::Telepathy::SimplePresence& v2);
38 inline bool operator!=(const org::freedesktop::Telepathy::SimplePresence& v1, const org::freedesktop::Telepathy::SimplePresence& v2)
40 return !operator==(v1, v2);
42 QDBusArgument& operator<<(QDBusArgument& arg, const org::freedesktop::Telepathy::SimplePresence& val);
43 const QDBusArgument& operator>>(const QDBusArgument& arg, org::freedesktop::Telepathy::SimplePresence& val);
45 class TelepathyUtility : public QObject
49 TelepathyUtility(QObject *parent = 0);
51 QList<QDBusObjectPath> getAllAccounts();
52 QString getAccountStatus();
58 #endif // TELEPATHYUTILITY_H