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 */
27class OrgFreedesktopNetworkManagerInterface : public QDBusAbstractInterface
28{
29 Q_OBJECT
30public:
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
42public:
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(QList<QDBusObjectPath> Devices READ devices)
78 inline QList<QDBusObjectPath> devices() const
79 {
80 return qvariant_cast<QList<QDBusObjectPath>>(v: property(name: "Devices"));
81 }
82
83 Q_PROPERTY(QVariantMap GlobalDnsConfiguration READ globalDnsConfiguration WRITE setGlobalDnsConfiguration)
84 inline QVariantMap globalDnsConfiguration() const
85 {
86 return qvariant_cast<QVariantMap>(v: property(name: "GlobalDnsConfiguration"));
87 }
88 inline void setGlobalDnsConfiguration(QVariantMap value)
89 {
90 setProperty(name: "GlobalDnsConfiguration", value: QVariant::fromValue(value));
91 }
92
93 Q_PROPERTY(uint Metered READ metered)
94 inline uint metered() const
95 {
96 return qvariant_cast<uint>(v: property(name: "Metered"));
97 }
98
99 Q_PROPERTY(bool NetworkingEnabled READ networkingEnabled)
100 inline bool networkingEnabled() const
101 {
102 return qvariant_cast<bool>(v: property(name: "NetworkingEnabled"));
103 }
104
105 Q_PROPERTY(QDBusObjectPath PrimaryConnection READ primaryConnection)
106 inline QDBusObjectPath primaryConnection() const
107 {
108 return qvariant_cast<QDBusObjectPath>(v: property(name: "PrimaryConnection"));
109 }
110
111 Q_PROPERTY(QString PrimaryConnectionType READ primaryConnectionType)
112 inline QString primaryConnectionType() const
113 {
114 return qvariant_cast<QString>(v: property(name: "PrimaryConnectionType"));
115 }
116
117 Q_PROPERTY(bool Startup READ startup)
118 inline bool startup() const
119 {
120 return qvariant_cast<bool>(v: property(name: "Startup"));
121 }
122
123 Q_PROPERTY(uint State READ state)
124 inline uint state() const
125 {
126 return qvariant_cast<uint>(v: property(name: "State"));
127 }
128
129 Q_PROPERTY(QString Version READ version)
130 inline QString version() const
131 {
132 return qvariant_cast<QString>(v: property(name: "Version"));
133 }
134
135 Q_PROPERTY(bool WimaxEnabled READ wimaxEnabled WRITE setWimaxEnabled)
136 inline bool wimaxEnabled() const
137 {
138 return qvariant_cast<bool>(v: property(name: "WimaxEnabled"));
139 }
140 inline void setWimaxEnabled(bool value)
141 {
142 setProperty(name: "WimaxEnabled", value: QVariant::fromValue(value));
143 }
144
145 Q_PROPERTY(bool WimaxHardwareEnabled READ wimaxHardwareEnabled)
146 inline bool wimaxHardwareEnabled() const
147 {
148 return qvariant_cast<bool>(v: property(name: "WimaxHardwareEnabled"));
149 }
150
151 Q_PROPERTY(bool WirelessEnabled READ wirelessEnabled WRITE setWirelessEnabled)
152 inline bool wirelessEnabled() const
153 {
154 return qvariant_cast<bool>(v: property(name: "WirelessEnabled"));
155 }
156 inline void setWirelessEnabled(bool value)
157 {
158 setProperty(name: "WirelessEnabled", value: QVariant::fromValue(value));
159 }
160
161 Q_PROPERTY(bool WirelessHardwareEnabled READ wirelessHardwareEnabled)
162 inline bool wirelessHardwareEnabled() const
163 {
164 return qvariant_cast<bool>(v: property(name: "WirelessHardwareEnabled"));
165 }
166
167 Q_PROPERTY(bool WwanEnabled READ wwanEnabled WRITE setWwanEnabled)
168 inline bool wwanEnabled() const
169 {
170 return qvariant_cast<bool>(v: property(name: "WwanEnabled"));
171 }
172 inline void setWwanEnabled(bool value)
173 {
174 setProperty(name: "WwanEnabled", value: QVariant::fromValue(value));
175 }
176
177 Q_PROPERTY(bool WwanHardwareEnabled READ wwanHardwareEnabled)
178 inline bool wwanHardwareEnabled() const
179 {
180 return qvariant_cast<bool>(v: property(name: "WwanHardwareEnabled"));
181 }
182
183public Q_SLOTS: // METHODS
184 inline QDBusPendingReply<QDBusObjectPath>
185 ActivateConnection(const QDBusObjectPath &connection, const QDBusObjectPath &device, const QDBusObjectPath &specific_object)
186 {
187 QList<QVariant> argumentList;
188 argumentList << QVariant::fromValue(value: connection) << QVariant::fromValue(value: device) << QVariant::fromValue(value: specific_object);
189 return asyncCallWithArgumentList(QStringLiteral("ActivateConnection"), args: argumentList);
190 }
191
192 inline QDBusPendingReply<QDBusObjectPath, QDBusObjectPath>
193 AddAndActivateConnection(NMVariantMapMap connection, const QDBusObjectPath &device, const QDBusObjectPath &specific_object)
194 {
195 QList<QVariant> argumentList;
196 argumentList << QVariant::fromValue(value: connection) << QVariant::fromValue(value: device) << QVariant::fromValue(value: specific_object);
197 return asyncCallWithArgumentList(QStringLiteral("AddAndActivateConnection"), args: argumentList);
198 }
199
200 inline QDBusPendingReply<QDBusObjectPath, QDBusObjectPath, QVariantMap>
201 AddAndActivateConnection2(NMVariantMapMap connection, const QDBusObjectPath &device, const QDBusObjectPath &specific_object, const QVariantMap &options)
202 {
203 QList<QVariant> argumentList;
204 argumentList << QVariant::fromValue(value: connection) << QVariant::fromValue(value: device) << QVariant::fromValue(value: specific_object) << QVariant::fromValue(value: options);
205 return asyncCallWithArgumentList(QStringLiteral("AddAndActivateConnection2"), args: argumentList);
206 }
207
208 inline QDBusPendingReply<uint> CheckConnectivity()
209 {
210 QList<QVariant> argumentList;
211 return asyncCallWithArgumentList(QStringLiteral("CheckConnectivity"), args: argumentList);
212 }
213
214 inline QDBusPendingReply<QDBusObjectPath> CheckpointCreate(const QList<QDBusObjectPath> &devices, uint rollback_timeout, uint flags)
215 {
216 QList<QVariant> argumentList;
217 argumentList << QVariant::fromValue(value: devices) << QVariant::fromValue(value: rollback_timeout) << QVariant::fromValue(value: flags);
218 return asyncCallWithArgumentList(QStringLiteral("CheckpointCreate"), args: argumentList);
219 }
220
221 inline QDBusPendingReply<> CheckpointDestroy(const QDBusObjectPath &checkpoint)
222 {
223 QList<QVariant> argumentList;
224 argumentList << QVariant::fromValue(value: checkpoint);
225 return asyncCallWithArgumentList(QStringLiteral("CheckpointDestroy"), args: argumentList);
226 }
227
228 inline QDBusPendingReply<> DeactivateConnection(const QDBusObjectPath &active_connection)
229 {
230 QList<QVariant> argumentList;
231 argumentList << QVariant::fromValue(value: active_connection);
232 return asyncCallWithArgumentList(QStringLiteral("DeactivateConnection"), args: argumentList);
233 }
234
235 inline QDBusPendingReply<> Enable(bool enable)
236 {
237 QList<QVariant> argumentList;
238 argumentList << QVariant::fromValue(value: enable);
239 return asyncCallWithArgumentList(QStringLiteral("Enable"), args: argumentList);
240 }
241
242 inline QDBusPendingReply<QList<QDBusObjectPath>> GetAllDevices()
243 {
244 QList<QVariant> argumentList;
245 return asyncCallWithArgumentList(QStringLiteral("GetAllDevices"), args: argumentList);
246 }
247
248 inline QDBusPendingReply<QDBusObjectPath> GetDeviceByIpIface(const QString &iface)
249 {
250 QList<QVariant> argumentList;
251 argumentList << QVariant::fromValue(value: iface);
252 return asyncCallWithArgumentList(QStringLiteral("GetDeviceByIpIface"), args: argumentList);
253 }
254
255 inline QDBusPendingReply<QList<QDBusObjectPath>> GetDevices()
256 {
257 QList<QVariant> argumentList;
258 return asyncCallWithArgumentList(QStringLiteral("GetDevices"), args: argumentList);
259 }
260
261 inline QDBusPendingReply<QString, QString> GetLogging()
262 {
263 QList<QVariant> argumentList;
264 return asyncCallWithArgumentList(QStringLiteral("GetLogging"), args: argumentList);
265 }
266
267 inline QDBusPendingReply<NMStringMap> GetPermissions()
268 {
269 QList<QVariant> argumentList;
270 return asyncCallWithArgumentList(QStringLiteral("GetPermissions"), args: argumentList);
271 }
272
273 inline QDBusPendingReply<> Reload(uint flags)
274 {
275 QList<QVariant> argumentList;
276 argumentList << QVariant::fromValue(value: flags);
277 return asyncCallWithArgumentList(QStringLiteral("Reload"), args: argumentList);
278 }
279
280 inline QDBusPendingReply<> SetLogging(const QString &level, const QString &domains)
281 {
282 QList<QVariant> argumentList;
283 argumentList << QVariant::fromValue(value: level) << QVariant::fromValue(value: domains);
284 return asyncCallWithArgumentList(QStringLiteral("SetLogging"), args: argumentList);
285 }
286
287 inline QDBusPendingReply<> Sleep(bool sleep)
288 {
289 QList<QVariant> argumentList;
290 argumentList << QVariant::fromValue(value: sleep);
291 return asyncCallWithArgumentList(QStringLiteral("Sleep"), args: argumentList);
292 }
293
294 inline QDBusPendingReply<uint> state()
295 {
296 QList<QVariant> argumentList;
297 return asyncCallWithArgumentList(QStringLiteral("state"), args: argumentList);
298 }
299
300Q_SIGNALS: // SIGNALS
301 void CheckPermissions();
302 void DeviceAdded(const QDBusObjectPath &device_path);
303 void DeviceRemoved(const QDBusObjectPath &device_path);
304 void PropertiesChanged(const QVariantMap &properties);
305 void StateChanged(uint state);
306};
307
308#endif
309

source code of networkmanager-qt/src/dbus/networkmanagerinterface.h