From 7ee859f6a5e6a334a172015fce744baeff539050 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 26 Apr 2015 00:15:06 +0200 Subject: drop c++11 requirement, use private classes --- notificationmonitor.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'notificationmonitor.h') diff --git a/notificationmonitor.h b/notificationmonitor.h index 8563053..1cb7cca 100644 --- a/notificationmonitor.h +++ b/notificationmonitor.h @@ -1,32 +1,34 @@ #ifndef NOTIFICATIONMONITOR_H #define NOTIFICATIONMONITOR_H -#include +#include #include +#include + +#include "notification.h" namespace watchfish { -class Notification; +Q_DECLARE_LOGGING_CATEGORY(notificationMonitorCat) + +class NotificationMonitorPrivate; class NotificationMonitor : public QObject { Q_OBJECT + Q_DECLARE_PRIVATE(NotificationMonitor) public: + explicit NotificationMonitor(QObject *parent = 0); ~NotificationMonitor(); - static NotificationMonitor *instance(); - - void processIncomingNotification(quint32 id, const QVariantHash &content); - void processCloseNotification(quint32 id, quint32 reason); - signals: void notification(Notification *n); private: - explicit NotificationMonitor(QObject *parent = 0); - QMap _notifs; + Q_PRIVATE_SLOT(d_func(), void handleBusSocketActivated()) + NotificationMonitorPrivate * const d_ptr; }; } -- cgit v1.2.3