Sayonara Player
Notifications.h
1 /*
2  * This file was generated by qdbusxml2cpp version 0.8
3  * Command line was: qdbusxml2cpp -m -p Notifications /builddir/build/BUILD/sayonara-player-1.6.0-beta7/src/DBus/resources/org.freedesktop.Notifications.xml
4  *
5  * qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
6  *
7  * This is an auto-generated file.
8  * Do not edit! All changes made to it will be lost.
9  */
10 
11 #ifndef NOTIFICATIONS_H
12 #define NOTIFICATIONS_H
13 
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>
22 
23 /*
24  * Proxy class for interface org.freedesktop.Notifications
25  */
26 class OrgFreedesktopNotificationsInterface: public QDBusAbstractInterface
27 {
28  Q_OBJECT
29 public:
30  static inline const char *staticInterfaceName()
31  { return "org.freedesktop.Notifications"; }
32 
33 public:
34  OrgFreedesktopNotificationsInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
35 
37 
38 public Q_SLOTS: // METHODS
39  inline QDBusPendingReply<> CloseNotification(uint id)
40  {
41  QList<QVariant> argumentList;
42  argumentList << QVariant::fromValue(id);
43  return asyncCallWithArgumentList(QStringLiteral("CloseNotification"), argumentList);
44  }
45 
46  inline QDBusPendingReply<QStringList> GetCapabilities()
47  {
48  QList<QVariant> argumentList;
49  return asyncCallWithArgumentList(QStringLiteral("GetCapabilities"), argumentList);
50  }
51 
52  inline QDBusPendingReply<QString, QString, QString, QString> GetServerInformation()
53  {
54  QList<QVariant> argumentList;
55  return asyncCallWithArgumentList(QStringLiteral("GetServerInformation"), argumentList);
56  }
57  inline QDBusReply<QString> GetServerInformation(QString &vendor, QString &version, QString &spec_version)
58  {
59  QList<QVariant> argumentList;
60  QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("GetServerInformation"), argumentList);
61  if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 4) {
62  vendor = qdbus_cast<QString>(reply.arguments().at(1));
63  version = qdbus_cast<QString>(reply.arguments().at(2));
64  spec_version = qdbus_cast<QString>(reply.arguments().at(3));
65  }
66  return reply;
67  }
68 
69  inline QDBusPendingReply<> 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)
70  {
71  QList<QVariant> argumentList;
72  argumentList << QVariant::fromValue(app_name) << QVariant::fromValue(replaces_id) << QVariant::fromValue(app_icon) << QVariant::fromValue(summary) << QVariant::fromValue(body) << QVariant::fromValue(actions) << QVariant::fromValue(hints) << QVariant::fromValue(expire_timeout);
73  return asyncCallWithArgumentList(QStringLiteral("Notify"), argumentList);
74  }
75 
76 Q_SIGNALS: // SIGNALS
77  void ActionInvoked(uint id, const QString &action_key);
78  void NotificationClosed(uint id, uint reason);
79 };
80 
81 namespace org {
82  namespace freedesktop {
83  typedef ::OrgFreedesktopNotificationsInterface Notifications;
84  }
85 }
86 #endif
QList
Definition: EngineUtils.h:33
OrgFreedesktopNotificationsInterface
Definition: Notifications.h:27