summaryrefslogtreecommitdiff
path: root/notificationmonitor.h
blob: 1cb7cca5d49ae6274628fb8c8ef91e97335e6c79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef NOTIFICATIONMONITOR_H
#define NOTIFICATIONMONITOR_H

#include <QtCore/QLoggingCategory>
#include <QtCore/QMap>
#include <QtCore/QObject>

#include "notification.h"

namespace watchfish
{

Q_DECLARE_LOGGING_CATEGORY(notificationMonitorCat)

class NotificationMonitorPrivate;

class NotificationMonitor : public QObject
{
	Q_OBJECT
	Q_DECLARE_PRIVATE(NotificationMonitor)

public:
	explicit NotificationMonitor(QObject *parent = 0);
	~NotificationMonitor();

signals:
	void notification(Notification *n);

private:
	Q_PRIVATE_SLOT(d_func(), void handleBusSocketActivated())
	NotificationMonitorPrivate * const d_ptr;
};

}

#endif // NOTIFICATIONMONITOR_H