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

KDE's Doxygen guidelines are available online.