3 @author: Sudheer K. <scifi.guy@hotmail.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"
20 QDBusConnection connection;
22 DbusUtility():connection(QDBusConnection::systemBus())
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();
35 #endif // DBUSUTILITY_H