3 @author: Sudheer K. <scifi1947 at gmail.com>
4 @license: GNU General Public License
10 #include <QDBusMessage>
11 #include <QDBusConnection>
13 #define NOTIFICATION_SERVICE "org.freedesktop.Notifications"
14 #define NOTIFICATION_PATH "/org/freedesktop/Notifications"
15 #define NOTIFICATION_INTERFACE "org.freedesktop.Notifications"
17 class DbusUtility: public QObject
21 QDBusConnection connection;
23 DbusUtility(QObject * parent = 0);
25 QDBusConnection getConnection(bool systemBus = true);
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();
35 #endif // DBUSUTILITY_H