#ifndef NOTIFICATIONMONITOR_H #define NOTIFICATIONMONITOR_H #include #include #include "notification.h" class NotificationMonitor : public QObject { Q_OBJECT public: ~NotificationMonitor(); static NotificationMonitor *instance(); signals: void newNotification(Notification *notification); private: explicit NotificationMonitor(QObject *parent = 0); 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