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

#include <QtCore/QObject>
#include <QtCore/QDateTime>
#include <QtDBus/QDBusContext>

class NotificationMonitor : public QObject, protected QDBusContext
{
	Q_OBJECT

public:
	~NotificationMonitor();

	static NotificationMonitor *instance();

signals:
	void incomingNotification(const QString &sender, const QIcon &icon, const QString &summary, int count, const QString &body, const QDateTime &dateTime);

private:
	explicit NotificationMonitor(QObject *parent = 0);

private slots:
	friend class NotificationsAdaptor;
	uint Notify(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);
};

#endif // NOTIFICATIONMONITOR_H