diff options
author | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-14 14:11:26 +0200 |
---|---|---|
committer | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-14 14:11:26 +0200 |
commit | b9b1829dbc50534190c8b81f91ee477af6971834 (patch) | |
tree | 360f09061f43a247a5afdc2c83df2b9a03d86a4a /src/notificationmonitor.h | |
parent | 85fb48bc51fed06a50b6178727fdf9e96aea4fc4 (diff) | |
download | salmeta-b9b1829dbc50534190c8b81f91ee477af6971834.tar.gz salmeta-b9b1829dbc50534190c8b81f91ee477af6971834.zip |
addign watch properties, starting notification work
Diffstat (limited to 'src/notificationmonitor.h')
-rw-r--r-- | src/notificationmonitor.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/notificationmonitor.h b/src/notificationmonitor.h index c7b6cb2..de9a0e7 100644 --- a/src/notificationmonitor.h +++ b/src/notificationmonitor.h @@ -1,18 +1,33 @@ #ifndef NOTIFICATIONMONITOR_H #define NOTIFICATIONMONITOR_H -#include <QObject> +#include <QtCore/QObject> +#include <QtCore/QHash> + +#include "notification.h" class NotificationMonitor : public QObject { Q_OBJECT + public: - explicit NotificationMonitor(QObject *parent = 0); + ~NotificationMonitor(); + + static NotificationMonitor *instance(); signals: + void newNotification(Notification *notification); + +private: + explicit NotificationMonitor(QObject *parent = 0); -public slots: +private slots: + void handleNotification(const QString &app_name, uint replaces_id, const QString &app_icon, const QString &summary, const QString &body, const QStringList &actions, const QVariantHash &hints, int expire_timeout); + void handleClosedNotification(uint id); + friend class NotificationAdaptor; +private: + QHash<int, }; #endif // NOTIFICATIONMONITOR_H |