2 * This file was generated by qdbusxml2cpp version 0.8
3 * Command line was: qdbusxml2cpp -p notifications.h:notifications.cpp notifications.xml
5 * qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
7 * This is an auto-generated file.
8 * Do not edit! All changes made to it will be lost.
11 #ifndef NOTIFICATIONS_H
12 #define NOTIFICATIONS_H
14 #include <QtCore/QObject>
15 #include <QtCore/QByteArray>
16 #include <QtCore/QList>
17 #include <QtCore/QMap>
18 #include <QtCore/QString>
19 #include <QtCore/QStringList>
20 #include <QtCore/QVariant>
21 #include <QtDBus/QtDBus>
24 * Proxy class for interface org.freedesktop.Notifications
26 class OrgFreedesktopNotificationsInterface
: public QDBusAbstractInterface
30 static inline const char *staticInterfaceName()
31 { return "org.freedesktop.Notifications"; }
34 OrgFreedesktopNotificationsInterface(const QString
&service
, const QString
&path
, const QDBusConnection
&connection
, QObject
*parent
= nullptr);
36 ~OrgFreedesktopNotificationsInterface();
38 public Q_SLOTS
: // METHODS
39 inline QDBusPendingReply
<> CloseNotification(uint id
)
41 QList
<QVariant
> argumentList
;
42 argumentList
<< QVariant::fromValue(id
);
43 return asyncCallWithArgumentList(QStringLiteral("CloseNotification"), argumentList
);
46 inline QDBusPendingReply
<QStringList
> GetCapabilities()
48 QList
<QVariant
> argumentList
;
49 return asyncCallWithArgumentList(QStringLiteral("GetCapabilities"), argumentList
);
52 inline QDBusPendingReply
<QString
, QString
, QString
, QString
> GetServerInformation()
54 QList
<QVariant
> argumentList
;
55 return asyncCallWithArgumentList(QStringLiteral("GetServerInformation"), argumentList
);
57 inline QDBusReply
<QString
> GetServerInformation(QString
&return_vendor
, QString
&return_version
, QString
&return_spec_version
)
59 QList
<QVariant
> argumentList
;
60 QDBusMessage reply
= callWithArgumentList(QDBus::Block
, QStringLiteral("GetServerInformation"), argumentList
);
61 if (reply
.type() == QDBusMessage::ReplyMessage
&& reply
.arguments().count() == 4) {
62 return_vendor
= qdbus_cast
<QString
>(reply
.arguments().at(1));
63 return_version
= qdbus_cast
<QString
>(reply
.arguments().at(2));
64 return_spec_version
= qdbus_cast
<QString
>(reply
.arguments().at(3));
69 inline QDBusPendingReply
<uint
> Notify(const QString
&app_name
, uint id
, const QString
&icon
, const QString
&summary
, const QString
&body
, const QStringList
&actions
, const QVariantMap
&hints
, int timeout
)
71 QList
<QVariant
> argumentList
;
72 argumentList
<< QVariant::fromValue(app_name
) << QVariant::fromValue(id
) << QVariant::fromValue(icon
) << QVariant::fromValue(summary
) << QVariant::fromValue(body
) << QVariant::fromValue(actions
) << QVariant::fromValue(hints
) << QVariant::fromValue(timeout
);
73 return asyncCallWithArgumentList(QStringLiteral("Notify"), argumentList
);
80 namespace freedesktop
{
81 typedef ::OrgFreedesktopNotificationsInterface Notifications
;