Everything working fine now. Tested with InterCall conferencing
[confmgr] / dbusutility.h
1 /*
2 @version: 0.1
3 @author: Sudheer K. <scifi.guy@hotmail.com>
4 @license: GNU General Public License
5 */
6
7 #ifndef DBUSUTILITY_H
8 #define DBUSUTILITY_H
9
10 #include <QDBusMessage>
11 #include <QDBusConnection>
12
13 #define NOTIFICATION_SERVICE    "org.freedesktop.Notifications"
14 #define NOTIFICATION_PATH       "/org/freedesktop/Notifications"
15 #define NOTIFICATION_INTERFACE  "org.freedesktop.Notifications"
16
17 class DbusUtility
18 {
19 protected:
20     QDBusConnection connection;
21 public:
22     DbusUtility():connection(QDBusConnection::systemBus())
23     {}
24     ~DbusUtility();
25     QDBusConnection getConnection();
26     void setConnection(QDBusConnection connection);
27     bool sendSignal(QString strPath,QString strInterface,QString strName);
28     bool sendMethodCall(QString strService,QString strPath,
29                         QString strInterface,QString strMethodName,
30                         QList<QVariant> & arguments);
31     bool displayNotification(QString strMessage);
32     QString getErrorMessage();
33 };
34
35 #endif // DBUSUTILITY_H