diff options
Diffstat (limited to 'src/notificationmonitor.h')
-rw-r--r-- | src/notificationmonitor.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/notificationmonitor.h b/src/notificationmonitor.h index de9a0e7..eac06ff 100644 --- a/src/notificationmonitor.h +++ b/src/notificationmonitor.h @@ -3,6 +3,7 @@ #include <QtCore/QObject> #include <QtCore/QHash> +#include <QtDBus/QDBusServiceWatcher> #include "notification.h" @@ -22,12 +23,12 @@ 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; + void handleServiceOwnerChanged(const QString &serviceName, const QString &oldOwner, const QString &newOwner); private: - QHash<int, + QDBusServiceWatcher *_watcher; + QHash<uint, Notification*> _pendingNotifications; + QHash<uint, Notification*> _notifications; }; #endif // NOTIFICATIONMONITOR_H |