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;
47 Q_PROPERTY(QDBusObjectPath ActiveConnection READ activeConnection)
48 inline QDBusObjectPath activeConnection()
const
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)
63 Q_PROPERTY(QList<QDBusObjectPath> AvailableConnections READ availableConnections)
64 inline QList<QDBusObjectPath> availableConnections()
const
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"));
81 Q_PROPERTY(QDBusObjectPath Dhcp4Config READ dhcp4Config)
82 inline QDBusObjectPath dhcp4Config()
const
84 return qvariant_cast<QDBusObjectPath>(
property(
"Dhcp4Config"));
87 Q_PROPERTY(QDBusObjectPath Dhcp6Config READ dhcp6Config)
88 inline QDBusObjectPath dhcp6Config()
const
90 return qvariant_cast<QDBusObjectPath>(
property(
"Dhcp6Config"));
94 inline QString driver()
const
96 return qvariant_cast<QString>(
property(
"Driver"));
99 Q_PROPERTY(QString DriverVersion READ driverVersion)
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"));
111 Q_PROPERTY(QString FirmwareVersion READ firmwareVersion)
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"));
129 Q_PROPERTY(QDBusObjectPath Ip4Config READ ip4Config)
130 inline QDBusObjectPath ip4Config()
const
132 return qvariant_cast<QDBusObjectPath>(
property(
"Ip4Config"));
135 Q_PROPERTY(QDBusObjectPath Ip6Config READ ip6Config)
136 inline QDBusObjectPath ip6Config()
const
138 return qvariant_cast<QDBusObjectPath>(
property(
"Ip6Config"));
141 Q_PROPERTY(QString IpInterface READ ipInterface)
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"));
153 Q_PROPERTY(NMVariantMapList LldpNeighbors READ lldpNeighbors)
154 inline NMVariantMapList lldpNeighbors()
const
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"));
187 Q_PROPERTY(QString PhysicalPortId READ physicalPortId)
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"));
212 inline QString udi()
const
214 return qvariant_cast<QString>(
property(
"Udi"));
218 inline QDBusPendingReply<> Delete()
220 QList<QVariant> argumentList;
224 inline QDBusPendingReply<> Disconnect()
226 QList<QVariant> argumentList;
230 inline QDBusPendingReply<NMVariantMapMap, qulonglong> GetAppliedConnection(uint flags)
232 QList<QVariant> argumentList;
237 inline QDBusPendingReply<> Reapply(NMVariantMapMap
connection, qulonglong version_id, uint flags)
239 QList<QVariant> argumentList;
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)