diff options
author | Javier <dev.git@javispedro.com> | 2015-04-26 00:15:06 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-04-26 00:15:06 +0200 |
commit | 7ee859f6a5e6a334a172015fce744baeff539050 (patch) | |
tree | 3cb9d85f98699159f8e5664b5a71feb56abf6a42 /notificationmonitor.h | |
parent | 247176e61399f14f6d52638d74d5a2a2579c1f55 (diff) | |
download | libwatchfish-7ee859f6a5e6a334a172015fce744baeff539050.tar.gz libwatchfish-7ee859f6a5e6a334a172015fce744baeff539050.zip |
drop c++11 requirement, use private classes
Diffstat (limited to 'notificationmonitor.h')
-rw-r--r-- | notificationmonitor.h | 20 |
1 files changed, 11 insertions, 9 deletions
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 <QtCore/QObject> +#include <QtCore/QLoggingCategory> #include <QtCore/QMap> +#include <QtCore/QObject> + +#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<quint32, Notification*> _notifs; + Q_PRIVATE_SLOT(d_func(), void handleBusSocketActivated()) + NotificationMonitorPrivate * const d_ptr; }; } |