-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotifyadaptor.h
86 lines (80 loc) · 3.19 KB
/
notifyadaptor.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
* This file was generated by qdbusxml2cpp version 0.7
* Command line was: qdbusxml2cpp -v -c NotifyAdaptor -a notifyadaptor.h:notifyadaptor.cpp -l Notifyd -i notifyd.h notifications.xml
*
* qdbusxml2cpp is Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef NOTIFYADAPTOR_H_1338410482
#define NOTIFYADAPTOR_H_1338410482
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "notifyd.h"
class QByteArray;
template<class T> class QList;
template<class Key, class Value> class QMap;
class QString;
class QStringList;
class QVariant;
/*
* Adaptor class for interface org.freedesktop.Notifications
*/
class NotifyAdaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.freedesktop.Notifications")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.freedesktop.Notifications\">\n"
" <method name=\"GetServerInformation\">\n"
" <arg direction=\"out\" type=\"s\" name=\"name\"/>\n"
" <arg direction=\"out\" type=\"s\" name=\"vendor\"/>\n"
" <arg direction=\"out\" type=\"s\" name=\"version\"/>\n"
" <arg direction=\"out\" type=\"s\" name=\"spec_version\"/>\n"
" </method>\n"
" <method name=\"CloseNotification\">\n"
" <arg direction=\"in\" type=\"u\" name=\"id\"/>\n"
" </method>\n"
" <method name=\"Notify\">\n"
" <annotation value=\"QVariantMap\" name=\"com.trolltech.QtDBus.QtTypeName.In6\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"app_name\"/>\n"
" <arg direction=\"in\" type=\"u\" name=\"replaces_id\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"app_icon\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"summary\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"body\"/>\n"
" <arg direction=\"in\" type=\"as\" name=\"actions\"/>\n"
" <arg direction=\"in\" type=\"a{sv}\" name=\"hints\"/>\n"
" <arg direction=\"in\" type=\"i\" name=\"expire_timeout\"/>\n"
" <arg direction=\"out\" type=\"u\" name=\"id\"/>\n"
" </method>\n"
" <method name=\"GetCapabilities\">\n"
" <arg direction=\"out\" type=\"as\" name=\"capabilities\"/>\n"
" </method>\n"
" <signal name=\"ActionInvoked\">\n"
" <arg type=\"u\"/>\n"
" <arg type=\"s\"/>\n"
" </signal>\n"
" <signal name=\"NotificationClosed\">\n"
" <arg type=\"u\"/>\n"
" <arg type=\"u\"/>\n"
" </signal>\n"
" </interface>\n"
"")
public:
NotifyAdaptor(Notifyd *parent);
virtual ~NotifyAdaptor();
inline Notifyd *parent() const
{ return static_cast<Notifyd *>(QObject::parent()); }
public: // PROPERTIES
public Q_SLOTS: // METHODS
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);
Q_SIGNALS: // SIGNALS
void ActionInvoked(uint in0, const QString &in1);
void NotificationClosed(uint in0, uint in1);
};
#endif