1 | /* |
2 | * This file was generated by qdbusxml2cpp version 0.8 |
3 | * Command line was: qdbusxml2cpp -i bluez5_helper_p.h -I QtCore/private/qglobal_p.h -p device1_bluez5_p.h:device1_bluez5.cpp org.bluez.Device1.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 DEVICE1_BLUEZ5_P_H |
12 | #define DEVICE1_BLUEZ5_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 "bluez5_helper_p.h" |
34 | #include <QtCore/private/qglobal_p.h> |
35 | |
36 | /* |
37 | * Proxy class for interface org.bluez.Device1 |
38 | */ |
39 | class OrgBluezDevice1Interface: public QDBusAbstractInterface |
40 | { |
41 | Q_OBJECT |
42 | public: |
43 | static inline const char *staticInterfaceName() |
44 | { return "org.bluez.Device1" ; } |
45 | |
46 | public: |
47 | OrgBluezDevice1Interface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); |
48 | |
49 | ~OrgBluezDevice1Interface(); |
50 | |
51 | Q_PROPERTY(QDBusObjectPath Adapter READ adapter) |
52 | inline QDBusObjectPath adapter() const |
53 | { return qvariant_cast< QDBusObjectPath >(v: property(name: "Adapter" )); } |
54 | |
55 | Q_PROPERTY(QString Address READ address) |
56 | inline QString address() const |
57 | { return qvariant_cast< QString >(v: property(name: "Address" )); } |
58 | |
59 | Q_PROPERTY(QString Alias READ alias WRITE setAlias) |
60 | inline QString alias() const |
61 | { return qvariant_cast< QString >(v: property(name: "Alias" )); } |
62 | inline void setAlias(const QString &value) |
63 | { setProperty(name: "Alias" , value: QVariant::fromValue(value)); } |
64 | |
65 | Q_PROPERTY(ushort Appearance READ appearance) |
66 | inline ushort appearance() const |
67 | { return qvariant_cast< ushort >(v: property(name: "Appearance" )); } |
68 | |
69 | Q_PROPERTY(bool Blocked READ blocked WRITE setBlocked) |
70 | inline bool blocked() const |
71 | { return qvariant_cast< bool >(v: property(name: "Blocked" )); } |
72 | inline void setBlocked(bool value) |
73 | { setProperty(name: "Blocked" , value: QVariant::fromValue(value)); } |
74 | |
75 | Q_PROPERTY(uint Class READ classProperty) |
76 | inline uint classProperty() const |
77 | { return qvariant_cast< uint >(v: property(name: "Class" )); } |
78 | |
79 | Q_PROPERTY(bool Connected READ connected) |
80 | inline bool connected() const |
81 | { return qvariant_cast< bool >(v: property(name: "Connected" )); } |
82 | |
83 | Q_PROPERTY(QString Icon READ icon) |
84 | inline QString icon() const |
85 | { return qvariant_cast< QString >(v: property(name: "Icon" )); } |
86 | |
87 | Q_PROPERTY(bool LegacyPairing READ legacyPairing) |
88 | inline bool legacyPairing() const |
89 | { return qvariant_cast< bool >(v: property(name: "LegacyPairing" )); } |
90 | |
91 | Q_PROPERTY(ManufacturerDataList ManufacturerData READ manufacturerData) |
92 | inline ManufacturerDataList manufacturerData() const |
93 | { return qvariant_cast< ManufacturerDataList >(v: property(name: "ManufacturerData" )); } |
94 | |
95 | Q_PROPERTY(QString Modalias READ modalias) |
96 | inline QString modalias() const |
97 | { return qvariant_cast< QString >(v: property(name: "Modalias" )); } |
98 | |
99 | Q_PROPERTY(QString Name READ name) |
100 | inline QString name() const |
101 | { return qvariant_cast< QString >(v: property(name: "Name" )); } |
102 | |
103 | Q_PROPERTY(bool Paired READ paired) |
104 | inline bool paired() const |
105 | { return qvariant_cast< bool >(v: property(name: "Paired" )); } |
106 | |
107 | Q_PROPERTY(short RSSI READ rSSI) |
108 | inline short () const |
109 | { return qvariant_cast< short >(v: property(name: "RSSI" )); } |
110 | |
111 | Q_PROPERTY(ServiceDataList ServiceData READ serviceData) |
112 | inline ServiceDataList serviceData() const |
113 | { return qvariant_cast< ServiceDataList >(v: property(name: "ServiceData" )); } |
114 | |
115 | Q_PROPERTY(bool ServicesResolved READ servicesResolved) |
116 | inline bool servicesResolved() const |
117 | { return qvariant_cast< bool >(v: property(name: "ServicesResolved" )); } |
118 | |
119 | Q_PROPERTY(bool Trusted READ trusted WRITE setTrusted) |
120 | inline bool trusted() const |
121 | { return qvariant_cast< bool >(v: property(name: "Trusted" )); } |
122 | inline void setTrusted(bool value) |
123 | { setProperty(name: "Trusted" , value: QVariant::fromValue(value)); } |
124 | |
125 | Q_PROPERTY(short TxPower READ txPower) |
126 | inline short txPower() const |
127 | { return qvariant_cast< short >(v: property(name: "TxPower" )); } |
128 | |
129 | Q_PROPERTY(QStringList UUIDs READ uUIDs) |
130 | inline QStringList uUIDs() const |
131 | { return qvariant_cast< QStringList >(v: property(name: "UUIDs" )); } |
132 | |
133 | public Q_SLOTS: // METHODS |
134 | inline QDBusPendingReply<> CancelPairing() |
135 | { |
136 | QList<QVariant> argumentList; |
137 | return asyncCallWithArgumentList(QStringLiteral("CancelPairing" ), args: argumentList); |
138 | } |
139 | |
140 | inline QDBusPendingReply<> Connect() |
141 | { |
142 | QList<QVariant> argumentList; |
143 | return asyncCallWithArgumentList(QStringLiteral("Connect" ), args: argumentList); |
144 | } |
145 | |
146 | inline QDBusPendingReply<> ConnectProfile(const QString &UUID) |
147 | { |
148 | QList<QVariant> argumentList; |
149 | argumentList << QVariant::fromValue(value: UUID); |
150 | return asyncCallWithArgumentList(QStringLiteral("ConnectProfile" ), args: argumentList); |
151 | } |
152 | |
153 | inline QDBusPendingReply<> Disconnect() |
154 | { |
155 | QList<QVariant> argumentList; |
156 | return asyncCallWithArgumentList(QStringLiteral("Disconnect" ), args: argumentList); |
157 | } |
158 | |
159 | inline QDBusPendingReply<> DisconnectProfile(const QString &UUID) |
160 | { |
161 | QList<QVariant> argumentList; |
162 | argumentList << QVariant::fromValue(value: UUID); |
163 | return asyncCallWithArgumentList(QStringLiteral("DisconnectProfile" ), args: argumentList); |
164 | } |
165 | |
166 | inline QDBusPendingReply<> Pair() |
167 | { |
168 | QList<QVariant> argumentList; |
169 | return asyncCallWithArgumentList(QStringLiteral("Pair" ), args: argumentList); |
170 | } |
171 | |
172 | Q_SIGNALS: // SIGNALS |
173 | }; |
174 | |
175 | namespace org { |
176 | namespace bluez { |
177 | using Device1 = ::OrgBluezDevice1Interface; |
178 | } |
179 | } |
180 | #endif |
181 | |