1 | /* |
2 | * This file was generated by qdbusxml2cpp version 0.8 |
3 | * Command line was: qdbusxml2cpp -I QtCore/private/qglobal_p.h -p properties_p.h:properties.cpp org.freedesktop.dbus.properties.xml |
4 | * |
5 | * qdbusxml2cpp is Copyright (C) 2022 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 PROPERTIES_P_H |
12 | #define PROPERTIES_P_H |
13 | |
14 | // |
15 | // W A R N I N G |
16 | // ------------- |
17 | // |
18 | // This file is not part of the Qt API. It exists purely as an |
19 | // implementation detail. This header file may change from version to |
20 | // version without notice, or even be removed. |
21 | // |
22 | // We mean it. |
23 | // |
24 | |
25 | #include <QtCore/QObject> |
26 | #include <QtCore/QByteArray> |
27 | #include <QtCore/QList> |
28 | #include <QtCore/QMap> |
29 | #include <QtCore/QString> |
30 | #include <QtCore/QStringList> |
31 | #include <QtCore/QVariant> |
32 | #include <QtDBus/QtDBus> |
33 | #include <QtCore/private/qglobal_p.h> |
34 | |
35 | /* |
36 | * Proxy class for interface org.freedesktop.DBus.Properties |
37 | */ |
38 | class OrgFreedesktopDBusPropertiesInterface: public QDBusAbstractInterface |
39 | { |
40 | Q_OBJECT |
41 | public: |
42 | static inline const char *staticInterfaceName() |
43 | { return "org.freedesktop.DBus.Properties" ; } |
44 | |
45 | public: |
46 | OrgFreedesktopDBusPropertiesInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); |
47 | |
48 | ~OrgFreedesktopDBusPropertiesInterface(); |
49 | |
50 | public Q_SLOTS: // METHODS |
51 | inline QDBusPendingReply<QDBusVariant> Get(const QString &interface, const QString &name) |
52 | { |
53 | QList<QVariant> argumentList; |
54 | argumentList << QVariant::fromValue(value: interface) << QVariant::fromValue(value: name); |
55 | return asyncCallWithArgumentList(QStringLiteral("Get" ), args: argumentList); |
56 | } |
57 | |
58 | inline QDBusPendingReply<QVariantMap> GetAll(const QString &interface) |
59 | { |
60 | QList<QVariant> argumentList; |
61 | argumentList << QVariant::fromValue(value: interface); |
62 | return asyncCallWithArgumentList(QStringLiteral("GetAll" ), args: argumentList); |
63 | } |
64 | |
65 | inline QDBusPendingReply<> Set(const QString &interface, const QString &name, const QDBusVariant &value) |
66 | { |
67 | QList<QVariant> argumentList; |
68 | argumentList << QVariant::fromValue(value: interface) << QVariant::fromValue(value: name) << QVariant::fromValue(value); |
69 | return asyncCallWithArgumentList(QStringLiteral("Set" ), args: argumentList); |
70 | } |
71 | |
72 | Q_SIGNALS: // SIGNALS |
73 | void PropertiesChanged(const QString &interface, const QVariantMap &changed_properties, const QStringList &invalidated_properties, |
74 | const QDBusMessage &msg); |
75 | }; |
76 | |
77 | namespace org { |
78 | namespace freedesktop { |
79 | namespace DBus { |
80 | using Properties = ::OrgFreedesktopDBusPropertiesInterface; |
81 | } |
82 | } |
83 | } |
84 | #endif |
85 | |