1 | /* |
2 | * This file was generated by qdbusxml2cpp version 0.8 |
3 | * Command line was: |
4 | * |
5 | * qdbusxml2cpp is Copyright (C) 2016 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 NETWORKMANAGERINTERFACE_H |
12 | #define NETWORKMANAGERINTERFACE_H |
13 | |
14 | #include "generictypes.h" |
15 | |
16 | #include <QDBusAbstractInterface> |
17 | #include <QDBusObjectPath> |
18 | #include <QDBusPendingReply> |
19 | #include <QList> |
20 | #include <QObject> |
21 | #include <QString> |
22 | #include <QVariant> |
23 | |
24 | /* |
25 | * Proxy class for interface org.freedesktop.NetworkManager |
26 | */ |
27 | class OrgFreedesktopNetworkManagerInterface : public QDBusAbstractInterface |
28 | { |
29 | Q_OBJECT |
30 | public: |
31 | static inline const char *staticInterfaceName() |
32 | #ifdef NMQT_STATIC |
33 | { |
34 | return "org.kde.fakenetwork" ; |
35 | } |
36 | #else |
37 | { |
38 | return "org.freedesktop.NetworkManager" ; |
39 | } |
40 | #endif |
41 | |
42 | public: |
43 | OrgFreedesktopNetworkManagerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); |
44 | |
45 | ~OrgFreedesktopNetworkManagerInterface() override; |
46 | |
47 | Q_PROPERTY(QDBusObjectPath ActivatingConnection READ activatingConnection) |
48 | inline QDBusObjectPath activatingConnection() const |
49 | { |
50 | return qvariant_cast<QDBusObjectPath>(v: property(name: "ActivatingConnection" )); |
51 | } |
52 | |
53 | Q_PROPERTY(QList<QDBusObjectPath> ActiveConnections READ activeConnections) |
54 | inline QList<QDBusObjectPath> activeConnections() const |
55 | { |
56 | return qvariant_cast<QList<QDBusObjectPath>>(v: property(name: "ActiveConnections" )); |
57 | } |
58 | |
59 | Q_PROPERTY(QList<QDBusObjectPath> AllDevices READ allDevices) |
60 | inline QList<QDBusObjectPath> allDevices() const |
61 | { |
62 | return qvariant_cast<QList<QDBusObjectPath>>(v: property(name: "AllDevices" )); |
63 | } |
64 | |
65 | Q_PROPERTY(UIntList Capabilities READ capabilities) |
66 | inline UIntList capabilities() const |
67 | { |
68 | return qvariant_cast<UIntList>(v: property(name: "Capabilities" )); |
69 | } |
70 | |
71 | Q_PROPERTY(uint Connectivity READ connectivity) |
72 | inline uint connectivity() const |
73 | { |
74 | return qvariant_cast<uint>(v: property(name: "Connectivity" )); |
75 | } |
76 | |
77 | Q_PROPERTY(bool ConnectivityCheckAvailable READ connectivityCheckAvailable) |
78 | inline bool connectivityCheckAvailable() const |
79 | { |
80 | return qvariant_cast<bool>(v: property(name: "ConnectivityCheckAvailable" )); |
81 | } |
82 | |
83 | Q_PROPERTY(bool ConnectivityCheckEnabled READ connectivityCheckEnabled) |
84 | inline bool connectivityCheckEnabled() const |
85 | { |
86 | return qvariant_cast<bool>(v: property(name: "ConnectivityCheckEnabled" )); |
87 | } |
88 | |
89 | Q_PROPERTY(QString ConnectivityCheckUri READ connectivityCheckUri) |
90 | inline QString connectivityCheckUri() const |
91 | { |
92 | return qvariant_cast<QString>(v: property(name: "ConnectivityCheckUri" )); |
93 | } |
94 | |
95 | Q_PROPERTY(QList<QDBusObjectPath> Devices READ devices) |
96 | inline QList<QDBusObjectPath> devices() const |
97 | { |
98 | return qvariant_cast<QList<QDBusObjectPath>>(v: property(name: "Devices" )); |
99 | } |
100 | |
101 | Q_PROPERTY(QVariantMap GlobalDnsConfiguration READ globalDnsConfiguration WRITE setGlobalDnsConfiguration) |
102 | inline QVariantMap globalDnsConfiguration() const |
103 | { |
104 | return qvariant_cast<QVariantMap>(v: property(name: "GlobalDnsConfiguration" )); |
105 | } |
106 | inline void setGlobalDnsConfiguration(QVariantMap value) |
107 | { |
108 | setProperty(name: "GlobalDnsConfiguration" , value: QVariant::fromValue(value)); |
109 | } |
110 | |
111 | Q_PROPERTY(uint Metered READ metered) |
112 | inline uint metered() const |
113 | { |
114 | return qvariant_cast<uint>(v: property(name: "Metered" )); |
115 | } |
116 | |
117 | Q_PROPERTY(bool NetworkingEnabled READ networkingEnabled) |
118 | inline bool networkingEnabled() const |
119 | { |
120 | return qvariant_cast<bool>(v: property(name: "NetworkingEnabled" )); |
121 | } |
122 | |
123 | Q_PROPERTY(QDBusObjectPath PrimaryConnection READ primaryConnection) |
124 | inline QDBusObjectPath primaryConnection() const |
125 | { |
126 | return qvariant_cast<QDBusObjectPath>(v: property(name: "PrimaryConnection" )); |
127 | } |
128 | |
129 | Q_PROPERTY(QString PrimaryConnectionType READ primaryConnectionType) |
130 | inline QString primaryConnectionType() const |
131 | { |
132 | return qvariant_cast<QString>(v: property(name: "PrimaryConnectionType" )); |
133 | } |
134 | |
135 | Q_PROPERTY(bool Startup READ startup) |
136 | inline bool startup() const |
137 | { |
138 | return qvariant_cast<bool>(v: property(name: "Startup" )); |
139 | } |
140 | |
141 | Q_PROPERTY(uint State READ state) |
142 | inline uint state() const |
143 | { |
144 | return qvariant_cast<uint>(v: property(name: "State" )); |
145 | } |
146 | |
147 | Q_PROPERTY(QString Version READ version) |
148 | inline QString version() const |
149 | { |
150 | return qvariant_cast<QString>(v: property(name: "Version" )); |
151 | } |
152 | |
153 | Q_PROPERTY(bool WimaxEnabled READ wimaxEnabled WRITE setWimaxEnabled) |
154 | inline bool wimaxEnabled() const |
155 | { |
156 | return qvariant_cast<bool>(v: property(name: "WimaxEnabled" )); |
157 | } |
158 | inline void setWimaxEnabled(bool value) |
159 | { |
160 | setProperty(name: "WimaxEnabled" , value: QVariant::fromValue(value)); |
161 | } |
162 | |
163 | Q_PROPERTY(bool WimaxHardwareEnabled READ wimaxHardwareEnabled) |
164 | inline bool wimaxHardwareEnabled() const |
165 | { |
166 | return qvariant_cast<bool>(v: property(name: "WimaxHardwareEnabled" )); |
167 | } |
168 | |
169 | Q_PROPERTY(bool WirelessEnabled READ wirelessEnabled WRITE setWirelessEnabled) |
170 | inline bool wirelessEnabled() const |
171 | { |
172 | return qvariant_cast<bool>(v: property(name: "WirelessEnabled" )); |
173 | } |
174 | inline void setWirelessEnabled(bool value) |
175 | { |
176 | setProperty(name: "WirelessEnabled" , value: QVariant::fromValue(value)); |
177 | } |
178 | |
179 | Q_PROPERTY(bool WirelessHardwareEnabled READ wirelessHardwareEnabled) |
180 | inline bool wirelessHardwareEnabled() const |
181 | { |
182 | return qvariant_cast<bool>(v: property(name: "WirelessHardwareEnabled" )); |
183 | } |
184 | |
185 | Q_PROPERTY(bool WwanEnabled READ wwanEnabled WRITE setWwanEnabled) |
186 | inline bool wwanEnabled() const |
187 | { |
188 | return qvariant_cast<bool>(v: property(name: "WwanEnabled" )); |
189 | } |
190 | inline void setWwanEnabled(bool value) |
191 | { |
192 | setProperty(name: "WwanEnabled" , value: QVariant::fromValue(value)); |
193 | } |
194 | |
195 | Q_PROPERTY(bool WwanHardwareEnabled READ wwanHardwareEnabled) |
196 | inline bool wwanHardwareEnabled() const |
197 | { |
198 | return qvariant_cast<bool>(v: property(name: "WwanHardwareEnabled" )); |
199 | } |
200 | |
201 | public Q_SLOTS: // METHODS |
202 | inline QDBusPendingReply<QDBusObjectPath> |
203 | ActivateConnection(const QDBusObjectPath &connection, const QDBusObjectPath &device, const QDBusObjectPath &specific_object) |
204 | { |
205 | QList<QVariant> argumentList; |
206 | argumentList << QVariant::fromValue(value: connection) << QVariant::fromValue(value: device) << QVariant::fromValue(value: specific_object); |
207 | return asyncCallWithArgumentList(QStringLiteral("ActivateConnection" ), args: argumentList); |
208 | } |
209 | |
210 | inline QDBusPendingReply<QDBusObjectPath, QDBusObjectPath> |
211 | AddAndActivateConnection(NMVariantMapMap connection, const QDBusObjectPath &device, const QDBusObjectPath &specific_object) |
212 | { |
213 | QList<QVariant> argumentList; |
214 | argumentList << QVariant::fromValue(value: connection) << QVariant::fromValue(value: device) << QVariant::fromValue(value: specific_object); |
215 | return asyncCallWithArgumentList(QStringLiteral("AddAndActivateConnection" ), args: argumentList); |
216 | } |
217 | |
218 | inline QDBusPendingReply<QDBusObjectPath, QDBusObjectPath, QVariantMap> |
219 | AddAndActivateConnection2(NMVariantMapMap connection, const QDBusObjectPath &device, const QDBusObjectPath &specific_object, const QVariantMap &options) |
220 | { |
221 | QList<QVariant> argumentList; |
222 | argumentList << QVariant::fromValue(value: connection) << QVariant::fromValue(value: device) << QVariant::fromValue(value: specific_object) << QVariant::fromValue(value: options); |
223 | return asyncCallWithArgumentList(QStringLiteral("AddAndActivateConnection2" ), args: argumentList); |
224 | } |
225 | |
226 | inline QDBusPendingReply<uint> CheckConnectivity() |
227 | { |
228 | QList<QVariant> argumentList; |
229 | return asyncCallWithArgumentList(QStringLiteral("CheckConnectivity" ), args: argumentList); |
230 | } |
231 | |
232 | inline QDBusPendingReply<QDBusObjectPath> CheckpointCreate(const QList<QDBusObjectPath> &devices, uint rollback_timeout, uint flags) |
233 | { |
234 | QList<QVariant> argumentList; |
235 | argumentList << QVariant::fromValue(value: devices) << QVariant::fromValue(value: rollback_timeout) << QVariant::fromValue(value: flags); |
236 | return asyncCallWithArgumentList(QStringLiteral("CheckpointCreate" ), args: argumentList); |
237 | } |
238 | |
239 | inline QDBusPendingReply<> CheckpointDestroy(const QDBusObjectPath &checkpoint) |
240 | { |
241 | QList<QVariant> argumentList; |
242 | argumentList << QVariant::fromValue(value: checkpoint); |
243 | return asyncCallWithArgumentList(QStringLiteral("CheckpointDestroy" ), args: argumentList); |
244 | } |
245 | |
246 | inline QDBusPendingReply<> DeactivateConnection(const QDBusObjectPath &active_connection) |
247 | { |
248 | QList<QVariant> argumentList; |
249 | argumentList << QVariant::fromValue(value: active_connection); |
250 | return asyncCallWithArgumentList(QStringLiteral("DeactivateConnection" ), args: argumentList); |
251 | } |
252 | |
253 | inline QDBusPendingReply<> Enable(bool enable) |
254 | { |
255 | QList<QVariant> argumentList; |
256 | argumentList << QVariant::fromValue(value: enable); |
257 | return asyncCallWithArgumentList(QStringLiteral("Enable" ), args: argumentList); |
258 | } |
259 | |
260 | inline QDBusPendingReply<QList<QDBusObjectPath>> GetAllDevices() |
261 | { |
262 | QList<QVariant> argumentList; |
263 | return asyncCallWithArgumentList(QStringLiteral("GetAllDevices" ), args: argumentList); |
264 | } |
265 | |
266 | inline QDBusPendingReply<QDBusObjectPath> GetDeviceByIpIface(const QString &iface) |
267 | { |
268 | QList<QVariant> argumentList; |
269 | argumentList << QVariant::fromValue(value: iface); |
270 | return asyncCallWithArgumentList(QStringLiteral("GetDeviceByIpIface" ), args: argumentList); |
271 | } |
272 | |
273 | inline QDBusPendingReply<QList<QDBusObjectPath>> GetDevices() |
274 | { |
275 | QList<QVariant> argumentList; |
276 | return asyncCallWithArgumentList(QStringLiteral("GetDevices" ), args: argumentList); |
277 | } |
278 | |
279 | inline QDBusPendingReply<QString, QString> GetLogging() |
280 | { |
281 | QList<QVariant> argumentList; |
282 | return asyncCallWithArgumentList(QStringLiteral("GetLogging" ), args: argumentList); |
283 | } |
284 | |
285 | inline QDBusPendingReply<NMStringMap> GetPermissions() |
286 | { |
287 | QList<QVariant> argumentList; |
288 | return asyncCallWithArgumentList(QStringLiteral("GetPermissions" ), args: argumentList); |
289 | } |
290 | |
291 | inline QDBusPendingReply<> Reload(uint flags) |
292 | { |
293 | QList<QVariant> argumentList; |
294 | argumentList << QVariant::fromValue(value: flags); |
295 | return asyncCallWithArgumentList(QStringLiteral("Reload" ), args: argumentList); |
296 | } |
297 | |
298 | inline QDBusPendingReply<> SetLogging(const QString &level, const QString &domains) |
299 | { |
300 | QList<QVariant> argumentList; |
301 | argumentList << QVariant::fromValue(value: level) << QVariant::fromValue(value: domains); |
302 | return asyncCallWithArgumentList(QStringLiteral("SetLogging" ), args: argumentList); |
303 | } |
304 | |
305 | inline QDBusPendingReply<> Sleep(bool sleep) |
306 | { |
307 | QList<QVariant> argumentList; |
308 | argumentList << QVariant::fromValue(value: sleep); |
309 | return asyncCallWithArgumentList(QStringLiteral("Sleep" ), args: argumentList); |
310 | } |
311 | |
312 | inline QDBusPendingReply<uint> state() |
313 | { |
314 | QList<QVariant> argumentList; |
315 | return asyncCallWithArgumentList(QStringLiteral("state" ), args: argumentList); |
316 | } |
317 | |
318 | Q_SIGNALS: // SIGNALS |
319 | void CheckPermissions(); |
320 | void DeviceAdded(const QDBusObjectPath &device_path); |
321 | void DeviceRemoved(const QDBusObjectPath &device_path); |
322 | void PropertiesChanged(const QVariantMap &properties); |
323 | void StateChanged(uint state); |
324 | }; |
325 | |
326 | #endif |
327 | |