NetworkManagerQt

networkmanagerinterface.h
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{
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>(property("ActivatingConnection"));
51 }
52
53 Q_PROPERTY(QList<QDBusObjectPath> ActiveConnections READ activeConnections)
54 inline QList<QDBusObjectPath> activeConnections() const
55 {
56 return qvariant_cast<QList<QDBusObjectPath>>(property("ActiveConnections"));
57 }
58
59 Q_PROPERTY(QList<QDBusObjectPath> AllDevices READ allDevices)
60 inline QList<QDBusObjectPath> allDevices() const
61 {
62 return qvariant_cast<QList<QDBusObjectPath>>(property("AllDevices"));
63 }
64
65 Q_PROPERTY(UIntList Capabilities READ capabilities)
66 inline UIntList capabilities() const
67 {
68 return qvariant_cast<UIntList>(property("Capabilities"));
69 }
70
71 Q_PROPERTY(uint Connectivity READ connectivity)
72 inline uint connectivity() const
73 {
74 return qvariant_cast<uint>(property("Connectivity"));
75 }
76
77 Q_PROPERTY(bool ConnectivityCheckAvailable READ connectivityCheckAvailable)
78 inline bool connectivityCheckAvailable() const
79 {
80 return qvariant_cast<bool>(property("ConnectivityCheckAvailable"));
81 }
82
83 Q_PROPERTY(bool ConnectivityCheckEnabled READ connectivityCheckEnabled)
84 inline bool connectivityCheckEnabled() const
85 {
86 return qvariant_cast<bool>(property("ConnectivityCheckEnabled"));
87 }
88
89 Q_PROPERTY(QString ConnectivityCheckUri READ connectivityCheckUri)
90 inline QString connectivityCheckUri() const
91 {
92 return qvariant_cast<QString>(property("ConnectivityCheckUri"));
93 }
94
95 Q_PROPERTY(QList<QDBusObjectPath> Devices READ devices)
96 inline QList<QDBusObjectPath> devices() const
97 {
98 return qvariant_cast<QList<QDBusObjectPath>>(property("Devices"));
99 }
100
101 Q_PROPERTY(QVariantMap GlobalDnsConfiguration READ globalDnsConfiguration WRITE setGlobalDnsConfiguration)
102 inline QVariantMap globalDnsConfiguration() const
103 {
104 return qvariant_cast<QVariantMap>(property("GlobalDnsConfiguration"));
105 }
106 inline void setGlobalDnsConfiguration(QVariantMap value)
107 {
108 setProperty("GlobalDnsConfiguration", QVariant::fromValue(value));
109 }
110
111 Q_PROPERTY(uint Metered READ metered)
112 inline uint metered() const
113 {
114 return qvariant_cast<uint>(property("Metered"));
115 }
116
117 Q_PROPERTY(bool NetworkingEnabled READ networkingEnabled)
118 inline bool networkingEnabled() const
119 {
120 return qvariant_cast<bool>(property("NetworkingEnabled"));
121 }
122
123 Q_PROPERTY(QDBusObjectPath PrimaryConnection READ primaryConnection)
124 inline QDBusObjectPath primaryConnection() const
125 {
126 return qvariant_cast<QDBusObjectPath>(property("PrimaryConnection"));
127 }
128
129 Q_PROPERTY(QString PrimaryConnectionType READ primaryConnectionType)
130 inline QString primaryConnectionType() const
131 {
132 return qvariant_cast<QString>(property("PrimaryConnectionType"));
133 }
134
135 Q_PROPERTY(bool Startup READ startup)
136 inline bool startup() const
137 {
138 return qvariant_cast<bool>(property("Startup"));
139 }
140
141 Q_PROPERTY(uint State READ state)
142 inline uint state() const
143 {
144 return qvariant_cast<uint>(property("State"));
145 }
146
147 Q_PROPERTY(QString Version READ version)
148 inline QString version() const
149 {
150 return qvariant_cast<QString>(property("Version"));
151 }
152
153 Q_PROPERTY(bool WimaxEnabled READ wimaxEnabled WRITE setWimaxEnabled)
154 inline bool wimaxEnabled() const
155 {
156 return qvariant_cast<bool>(property("WimaxEnabled"));
157 }
158 inline void setWimaxEnabled(bool value)
159 {
160 setProperty("WimaxEnabled", QVariant::fromValue(value));
161 }
162
163 Q_PROPERTY(bool WimaxHardwareEnabled READ wimaxHardwareEnabled)
164 inline bool wimaxHardwareEnabled() const
165 {
166 return qvariant_cast<bool>(property("WimaxHardwareEnabled"));
167 }
168
169 Q_PROPERTY(bool WirelessEnabled READ wirelessEnabled WRITE setWirelessEnabled)
170 inline bool wirelessEnabled() const
171 {
172 return qvariant_cast<bool>(property("WirelessEnabled"));
173 }
174 inline void setWirelessEnabled(bool value)
175 {
176 setProperty("WirelessEnabled", QVariant::fromValue(value));
177 }
178
179 Q_PROPERTY(bool WirelessHardwareEnabled READ wirelessHardwareEnabled)
180 inline bool wirelessHardwareEnabled() const
181 {
182 return qvariant_cast<bool>(property("WirelessHardwareEnabled"));
183 }
184
185 Q_PROPERTY(bool WwanEnabled READ wwanEnabled WRITE setWwanEnabled)
186 inline bool wwanEnabled() const
187 {
188 return qvariant_cast<bool>(property("WwanEnabled"));
189 }
190 inline void setWwanEnabled(bool value)
191 {
192 setProperty("WwanEnabled", QVariant::fromValue(value));
193 }
194
195 Q_PROPERTY(bool WwanHardwareEnabled READ wwanHardwareEnabled)
196 inline bool wwanHardwareEnabled() const
197 {
198 return qvariant_cast<bool>(property("WwanHardwareEnabled"));
199 }
200
201public Q_SLOTS: // METHODS
203 ActivateConnection(const QDBusObjectPath &connection, const QDBusObjectPath &device, const QDBusObjectPath &specific_object)
204 {
205 QList<QVariant> argumentList;
206 argumentList << QVariant::fromValue(connection) << QVariant::fromValue(device) << QVariant::fromValue(specific_object);
207 return asyncCallWithArgumentList(QStringLiteral("ActivateConnection"), argumentList);
208 }
209
211 AddAndActivateConnection(NMVariantMapMap connection, const QDBusObjectPath &device, const QDBusObjectPath &specific_object)
212 {
213 QList<QVariant> argumentList;
214 argumentList << QVariant::fromValue(connection) << QVariant::fromValue(device) << QVariant::fromValue(specific_object);
215 return asyncCallWithArgumentList(QStringLiteral("AddAndActivateConnection"), argumentList);
216 }
217
219 AddAndActivateConnection2(NMVariantMapMap connection, const QDBusObjectPath &device, const QDBusObjectPath &specific_object, const QVariantMap &options)
220 {
221 QList<QVariant> argumentList;
222 argumentList << QVariant::fromValue(connection) << QVariant::fromValue(device) << QVariant::fromValue(specific_object) << QVariant::fromValue(options);
223 return asyncCallWithArgumentList(QStringLiteral("AddAndActivateConnection2"), argumentList);
224 }
225
226 inline QDBusPendingReply<uint> CheckConnectivity()
227 {
228 QList<QVariant> argumentList;
229 return asyncCallWithArgumentList(QStringLiteral("CheckConnectivity"), 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(devices) << QVariant::fromValue(rollback_timeout) << QVariant::fromValue(flags);
236 return asyncCallWithArgumentList(QStringLiteral("CheckpointCreate"), argumentList);
237 }
238
239 inline QDBusPendingReply<> CheckpointDestroy(const QDBusObjectPath &checkpoint)
240 {
241 QList<QVariant> argumentList;
242 argumentList << QVariant::fromValue(checkpoint);
243 return asyncCallWithArgumentList(QStringLiteral("CheckpointDestroy"), argumentList);
244 }
245
246 inline QDBusPendingReply<> DeactivateConnection(const QDBusObjectPath &active_connection)
247 {
248 QList<QVariant> argumentList;
249 argumentList << QVariant::fromValue(active_connection);
250 return asyncCallWithArgumentList(QStringLiteral("DeactivateConnection"), argumentList);
251 }
252
253 inline QDBusPendingReply<> Enable(bool enable)
254 {
255 QList<QVariant> argumentList;
256 argumentList << QVariant::fromValue(enable);
257 return asyncCallWithArgumentList(QStringLiteral("Enable"), argumentList);
258 }
259
260 inline QDBusPendingReply<QList<QDBusObjectPath>> GetAllDevices()
261 {
262 QList<QVariant> argumentList;
263 return asyncCallWithArgumentList(QStringLiteral("GetAllDevices"), argumentList);
264 }
265
266 inline QDBusPendingReply<QDBusObjectPath> GetDeviceByIpIface(const QString &iface)
267 {
268 QList<QVariant> argumentList;
269 argumentList << QVariant::fromValue(iface);
270 return asyncCallWithArgumentList(QStringLiteral("GetDeviceByIpIface"), argumentList);
271 }
272
274 {
275 QList<QVariant> argumentList;
276 return asyncCallWithArgumentList(QStringLiteral("GetDevices"), argumentList);
277 }
278
279 inline QDBusPendingReply<QString, QString> GetLogging()
280 {
281 QList<QVariant> argumentList;
282 return asyncCallWithArgumentList(QStringLiteral("GetLogging"), argumentList);
283 }
284
285 inline QDBusPendingReply<NMStringMap> GetPermissions()
286 {
287 QList<QVariant> argumentList;
288 return asyncCallWithArgumentList(QStringLiteral("GetPermissions"), argumentList);
289 }
290
291 inline QDBusPendingReply<> Reload(uint flags)
292 {
293 QList<QVariant> argumentList;
294 argumentList << QVariant::fromValue(flags);
295 return asyncCallWithArgumentList(QStringLiteral("Reload"), argumentList);
296 }
297
298 inline QDBusPendingReply<> SetLogging(const QString &level, const QString &domains)
299 {
300 QList<QVariant> argumentList;
301 argumentList << QVariant::fromValue(level) << QVariant::fromValue(domains);
302 return asyncCallWithArgumentList(QStringLiteral("SetLogging"), argumentList);
303 }
304
305 inline QDBusPendingReply<> Sleep(bool sleep)
306 {
307 QList<QVariant> argumentList;
308 argumentList << QVariant::fromValue(sleep);
309 return asyncCallWithArgumentList(QStringLiteral("Sleep"), argumentList);
310 }
311
312 inline QDBusPendingReply<uint> state()
313 {
314 QList<QVariant> argumentList;
315 return asyncCallWithArgumentList(QStringLiteral("state"), argumentList);
316 }
317
318Q_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
QDBusPendingCall asyncCallWithArgumentList(const QString &method, const QList< QVariant > &args)
QDBusConnection connection() const const
QString path() const const
QString service() const const
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
QVariant property(const char *name) const const
bool setProperty(const char *name, QVariant &&value)
QVariant fromValue(T &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.