7#ifndef NETWORKMANAGERQT_FAKE_NETWORK_DEVICE_H
8#define NETWORKMANAGERQT_FAKE_NETWORK_DEVICE_H
12#include <QDBusObjectPath>
15#include "../generictypes.h"
20 Q_CLASSINFO(
"D-Bus Interface",
"org.kde.fakenetwork.Device")
26 Q_PROPERTY(
bool Autoconnect READ autoconnect WRITE setAutoconnect)
28 Q_PROPERTY(uint Capabilities READ capabilities)
34 Q_PROPERTY(
bool FirmwareMissing READ firmwareMissing)
41 Q_PROPERTY(uint InterfaceFlags READ interfaceFlags)
45 Q_PROPERTY(DeviceDBusStateReason StateReason READ stateReason)
49 bool autoconnect() const;
50 void setAutoconnect(
bool autoconnect);
52 uint capabilities() const;
53 uint deviceType() const;
58 bool firmwareMissing() const;
59 QString firmwareVersion() const;
61 int ip4Address() const;
65 uint interfaceFlags() const;
69 DeviceDBusStateReason stateReason() const;
73 void addAvailableConnection(const
QDBusObjectPath &availableConnection);
74 void removeAvailableConnection(const
QDBusObjectPath &availableConnection);
75 void setActiveConnection(const
QString &activeConnection);
76 void setCapabilities(uint capabilities);
77 QString deviceInterface() const;
79 void setDevicePath(const
QString &devicePath);
80 void setDeviceType(uint deviceType);
81 void setDhcp4Config(const
QString &config);
82 void setDhcp6Config(const
QString &config);
83 void setDriver(const
QString &driver);
84 void setDriverVersion(const
QString &driverVersion);
85 void setFirmwareMissing(
bool firmwareMissing);
86 void setFirmwareVersion(const
QString &firmwareVersion);
87 void setInterface(const
QString &interface);
88 void setInterfaceFlags(uint interfaceFlags);
89 void setIpv4Address(
int address);
90 void setIp4Config(const
QString &config);
91 void setIp6Config(const
QString &config);
92 void setIpInterface(const
QString &interface);
93 void setManaged(
bool managed);
94 void setMtu(uint mtu);
95 virtual
void setState(uint state);
96 void setStateReason(const DeviceDBusStateReason &reason);
97 void setUdi(const
QString &udi);
100 Q_SCRIPTABLE
void Disconnect();
104 Q_SCRIPTABLE
void StateChanged(uint new_state, uint old_state, uint reason);
117 bool m_firmwareMissing;
120 uint m_interfaceFlags;
129 DeviceDBusStateReason m_stateReason;
QObject * parent() const const