summaryrefslogtreecommitdiff
path: root/src/notificationmonitor.h
blob: de9a0e79b4c11b7c9d2c0ba142d1defc63a96f34 (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
#ifndef NOTIFICATIONMONITOR_H
#define NOTIFICATIONMONITOR_H

#include <QtCore/QObject>
#include <QtCore/QHash>

#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<int,
};

#endif // NOTIFICATIONMONITOR_H