11#ifndef DEVICEINTERFACE_H
12#define DEVICEINTERFACE_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.Device";
38 return "org.freedesktop.NetworkManager.Device";
45 ~OrgFreedesktopNetworkManagerDeviceInterface()
override;
50 return qvariant_cast<QDBusObjectPath>(
property(
"ActiveConnection"));
53 Q_PROPERTY(
bool Autoconnect READ autoconnect WRITE setAutoconnect)
54 inline bool autoconnect()
const
56 return qvariant_cast<bool>(
property(
"Autoconnect"));
58 inline void setAutoconnect(
bool value)
66 return qvariant_cast<QList<QDBusObjectPath>>(
property(
"AvailableConnections"));
69 Q_PROPERTY(uint Capabilities READ capabilities)
70 inline uint capabilities()
const
72 return qvariant_cast<uint>(
property(
"Capabilities"));
76 inline uint deviceType()
const
78 return qvariant_cast<uint>(
property(
"DeviceType"));
84 return qvariant_cast<QDBusObjectPath>(
property(
"Dhcp4Config"));
90 return qvariant_cast<QDBusObjectPath>(
property(
"Dhcp6Config"));
96 return qvariant_cast<QString>(
property(
"Driver"));
100 inline QString driverVersion()
const
102 return qvariant_cast<QString>(
property(
"DriverVersion"));
105 Q_PROPERTY(
bool FirmwareMissing READ firmwareMissing)
106 inline bool firmwareMissing()
const
108 return qvariant_cast<bool>(
property(
"FirmwareMissing"));
112 inline QString firmwareVersion()
const
114 return qvariant_cast<QString>(
property(
"FirmwareVersion"));
118 inline QString interface()
const
120 return qvariant_cast<QString>(
property(
"Interface"));
124 inline uint ip4Address()
const
126 return qvariant_cast<uint>(
property(
"Ip4Address"));
132 return qvariant_cast<QDBusObjectPath>(
property(
"Ip4Config"));
138 return qvariant_cast<QDBusObjectPath>(
property(
"Ip6Config"));
142 inline QString ipInterface()
const
144 return qvariant_cast<QString>(
property(
"IpInterface"));
147 Q_PROPERTY(uint InterfaceFlags READ interfaceFlags)
148 inline uint interfaceFlags()
const
150 return qvariant_cast<uint>(
property(
"InterfaceFlags"));
156 return qvariant_cast<NMVariantMapList>(
property(
"LldpNeighbors"));
159 Q_PROPERTY(
bool Managed READ managed WRITE setManaged)
160 inline bool managed()
const
162 return qvariant_cast<bool>(
property(
"Managed"));
164 inline void setManaged(
bool value)
170 inline uint metered()
const
172 return qvariant_cast<uint>(
property(
"Metered"));
176 inline uint mtu()
const
178 return qvariant_cast<uint>(
property(
"Mtu"));
181 Q_PROPERTY(
bool NmPluginMissing READ nmPluginMissing)
182 inline bool nmPluginMissing()
const
184 return qvariant_cast<bool>(
property(
"NmPluginMissing"));
188 inline QString physicalPortId()
const
190 return qvariant_cast<QString>(
property(
"PhysicalPortId"));
194 inline bool real()
const
196 return qvariant_cast<bool>(
property(
"Real"));
200 inline uint state()
const
202 return qvariant_cast<uint>(
property(
"State"));
205 Q_PROPERTY(DeviceDBusStateReason StateReason READ stateReason)
206 inline DeviceDBusStateReason stateReason()
const
208 return qvariant_cast<DeviceDBusStateReason>(
property(
"StateReason"));
214 return qvariant_cast<QString>(
property(
"Udi"));
245 void StateChanged(uint new_state, uint old_state, uint reason);
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)