-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotifyd.h
43 lines (36 loc) · 1.04 KB
/
notifyd.h
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
37
38
39
40
41
42
43
#ifndef NOTIFYD_H
#define NOTIFYD_H
#include <QtCore/QString>
#include <QtCore/QObject>
#include <QtCore/QVariantMap>
#include <QtCore/QStringList>
#include "notificationitem.h"
/*
* Class for interface org.freedesktop.Notifications
*/
class Notifyd: public QObject
{
Q_OBJECT
public:
explicit Notifyd(QObject* parent = 0);
virtual ~Notifyd();
public slots:
void CloseNotification(uint id);
QStringList GetCapabilities();
QString GetServerInformation(QString& vendor, QString& version, QString& spec_version);
uint Notify(const QString& app_name,
uint replaces_id,
const QString& app_icon,
const QString& summary,
const QString& body,
const QStringList& actions,
const QVariantMap& hints,
int expire_timeout);
signals:
void ActionInvoked(uint in0, const QString& in1);
void NotificationClosed(uint in0, uint in1);
private:
uint mId;
QMap<uint, NotificationItem*> itemMap;
};
#endif // NOTIFYD_H