From b9b1829dbc50534190c8b81f91ee477af6971834 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sun, 14 Sep 2014 14:11:26 +0200 Subject: addign watch properties, starting notification work --- src/notificationmonitor.h | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'src/notificationmonitor.h') 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 +#include +#include + +#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