summaryrefslogtreecommitdiff
path: root/src/notificationmonitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/notificationmonitor.h')
-rw-r--r--src/notificationmonitor.h21
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