11#ifndef NETWORKMANAGERINTERFACE_H
12#define NETWORKMANAGERINTERFACE_H
14#include "generictypes.h"
16#include <QDBusAbstractInterface>
17#include <QDBusObjectPath>
18#include <QDBusPendingReply>
31 static inline const char *staticInterfaceName()
34 return "org.kde.fakenetwork";
38 return "org.freedesktop.NetworkManager";
45 ~OrgFreedesktopNetworkManagerInterface()
override;
47 Q_PROPERTY(QDBusObjectPath ActivatingConnection READ activatingConnection)
48 inline QDBusObjectPath activatingConnection()
const
50 return qvariant_cast<QDBusObjectPath>(
property(
"ActivatingConnection"));
53 Q_PROPERTY(QList<QDBusObjectPath> ActiveConnections READ activeConnections)
54 inline QList<QDBusObjectPath> activeConnections()
const
56 return qvariant_cast<QList<QDBusObjectPath>>(
property(
"ActiveConnections"));
59 Q_PROPERTY(QList<QDBusObjectPath> AllDevices READ allDevices)
60 inline QList<QDBusObjectPath> allDevices()
const
62 return qvariant_cast<QList<QDBusObjectPath>>(
property(
"AllDevices"));
65 Q_PROPERTY(UIntList Capabilities READ capabilities)
66 inline UIntList capabilities()
const
68 return qvariant_cast<UIntList>(
property(
"Capabilities"));
71 Q_PROPERTY(uint Connectivity READ connectivity)
72 inline uint connectivity()
const
74 return qvariant_cast<uint>(
property(
"Connectivity"));
77 Q_PROPERTY(
bool ConnectivityCheckAvailable READ connectivityCheckAvailable)
78 inline bool connectivityCheckAvailable()
const
80 return qvariant_cast<bool>(
property(
"ConnectivityCheckAvailable"));
83 Q_PROPERTY(
bool ConnectivityCheckEnabled READ connectivityCheckEnabled)
84 inline bool connectivityCheckEnabled()
const
86 return qvariant_cast<bool>(
property(
"ConnectivityCheckEnabled"));
89 Q_PROPERTY(QString ConnectivityCheckUri READ connectivityCheckUri)
90 inline QString connectivityCheckUri()
const
92 return qvariant_cast<QString>(
property(
"ConnectivityCheckUri"));
95 Q_PROPERTY(QList<QDBusObjectPath> Devices READ devices)
96 inline QList<QDBusObjectPath> devices()
const
98 return qvariant_cast<QList<QDBusObjectPath>>(
property(
"Devices"));
101 Q_PROPERTY(QVariantMap GlobalDnsConfiguration READ globalDnsConfiguration WRITE setGlobalDnsConfiguration)
102 inline QVariantMap globalDnsConfiguration()
const
104 return qvariant_cast<QVariantMap>(
property(
"GlobalDnsConfiguration"));
106 inline void setGlobalDnsConfiguration(QVariantMap value)
112 inline uint metered()
const
114 return qvariant_cast<uint>(
property(
"Metered"));
117 Q_PROPERTY(
bool NetworkingEnabled READ networkingEnabled)
118 inline bool networkingEnabled()
const
120 return qvariant_cast<bool>(
property(
"NetworkingEnabled"));
123 Q_PROPERTY(QDBusObjectPath PrimaryConnection READ primaryConnection)
124 inline QDBusObjectPath primaryConnection()
const
126 return qvariant_cast<QDBusObjectPath>(
property(
"PrimaryConnection"));
129 Q_PROPERTY(QString PrimaryConnectionType READ primaryConnectionType)
130 inline QString primaryConnectionType()
const
132 return qvariant_cast<QString>(
property(
"PrimaryConnectionType"));
136 inline bool startup()
const
138 return qvariant_cast<bool>(
property(
"Startup"));
142 inline uint state()
const
144 return qvariant_cast<uint>(
property(
"State"));
148 inline QString version()
const
150 return qvariant_cast<QString>(
property(
"Version"));
153 Q_PROPERTY(
bool WimaxEnabled READ wimaxEnabled WRITE setWimaxEnabled)
154 inline bool wimaxEnabled()
const
156 return qvariant_cast<bool>(
property(
"WimaxEnabled"));
158 inline void setWimaxEnabled(
bool value)
163 Q_PROPERTY(
bool WimaxHardwareEnabled READ wimaxHardwareEnabled)
164 inline bool wimaxHardwareEnabled()
const
166 return qvariant_cast<bool>(
property(
"WimaxHardwareEnabled"));
169 Q_PROPERTY(
bool WirelessEnabled READ wirelessEnabled WRITE setWirelessEnabled)
170 inline bool wirelessEnabled()
const
172 return qvariant_cast<bool>(
property(
"WirelessEnabled"));
174 inline void setWirelessEnabled(
bool value)
179 Q_PROPERTY(
bool WirelessHardwareEnabled READ wirelessHardwareEnabled)
180 inline bool wirelessHardwareEnabled()
const
182 return qvariant_cast<bool>(
property(
"WirelessHardwareEnabled"));
185 Q_PROPERTY(
bool WwanEnabled READ wwanEnabled WRITE setWwanEnabled)
186 inline bool wwanEnabled()
const
188 return qvariant_cast<bool>(
property(
"WwanEnabled"));
190 inline void setWwanEnabled(
bool value)
195 Q_PROPERTY(
bool WwanHardwareEnabled READ wwanHardwareEnabled)
196 inline bool wwanHardwareEnabled()
const
198 return qvariant_cast<bool>(
property(
"WwanHardwareEnabled"));
202 inline QDBusPendingReply<QDBusObjectPath>
203 ActivateConnection(
const QDBusObjectPath &
connection,
const QDBusObjectPath &device,
const QDBusObjectPath &specific_object)
205 QList<QVariant> argumentList;
210 inline QDBusPendingReply<QDBusObjectPath, QDBusObjectPath>
211 AddAndActivateConnection(NMVariantMapMap
connection,
const QDBusObjectPath &device,
const QDBusObjectPath &specific_object)
213 QList<QVariant> argumentList;
218 inline QDBusPendingReply<QDBusObjectPath, QDBusObjectPath, QVariantMap>
219 AddAndActivateConnection2(NMVariantMapMap
connection,
const QDBusObjectPath &device,
const QDBusObjectPath &specific_object,
const QVariantMap &options)
221 QList<QVariant> argumentList;
226 inline QDBusPendingReply<uint> CheckConnectivity()
228 QList<QVariant> argumentList;
232 inline QDBusPendingReply<QDBusObjectPath> CheckpointCreate(
const QList<QDBusObjectPath> &devices, uint rollback_timeout, uint flags)
234 QList<QVariant> argumentList;
239 inline QDBusPendingReply<> CheckpointDestroy(
const QDBusObjectPath &checkpoint)
241 QList<QVariant> argumentList;
246 inline QDBusPendingReply<> DeactivateConnection(
const QDBusObjectPath &active_connection)
248 QList<QVariant> argumentList;
253 inline QDBusPendingReply<> Enable(
bool enable)
255 QList<QVariant> argumentList;
260 inline QDBusPendingReply<QList<QDBusObjectPath>> GetAllDevices()
262 QList<QVariant> argumentList;
266 inline QDBusPendingReply<QDBusObjectPath> GetDeviceByIpIface(
const QString &iface)
268 QList<QVariant> argumentList;
273 inline QDBusPendingReply<QList<QDBusObjectPath>> GetDevices()
275 QList<QVariant> argumentList;
279 inline QDBusPendingReply<QString, QString> GetLogging()
281 QList<QVariant> argumentList;
285 inline QDBusPendingReply<NMStringMap> GetPermissions()
287 QList<QVariant> argumentList;
291 inline QDBusPendingReply<> Reload(uint flags)
293 QList<QVariant> argumentList;
298 inline QDBusPendingReply<> SetLogging(
const QString &level,
const QString &domains)
300 QList<QVariant> argumentList;
305 inline QDBusPendingReply<> Sleep(
bool sleep)
307 QList<QVariant> argumentList;
312 inline QDBusPendingReply<uint> state()
314 QList<QVariant> argumentList;
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);
QDBusPendingCall asyncCallWithArgumentList(const QString &method, const QList< QVariant > &args)
QDBusConnection connection() const const
QString path() const const
QString service() const const
QObject * parent() const const
QVariant property(const char *name) const const
bool setProperty(const char *name, QVariant &&value)
QVariant fromValue(T &&value)