7#ifndef NETWORKMANAGERQT_FAKE_NETWORK_SETTINGS_ACTIVE_CONNECTION_H
8#define NETWORKMANAGERQT_FAKE_NETWORK_SETTINGS_ACTIVE_CONNECTION_H
12#include <QDBusObjectPath>
18class ActiveConnection :
public QObject
21 Q_CLASSINFO(
"D-Bus Interface",
"org.kde.fakenetwork.Connection.Active")
24 ~ActiveConnection() override;
26 Q_PROPERTY(QDBusObjectPath Connection READ connection)
29 Q_PROPERTY(QList<QDBusObjectPath> Devices READ devices)
30 Q_PROPERTY(QDBusObjectPath Dhcp4Config READ dhcp4Config)
31 Q_PROPERTY(QDBusObjectPath Dhcp6Config READ dhcp6Config)
32 Q_PROPERTY(QDBusObjectPath Ip4Config READ ip4Config)
33 Q_PROPERTY(QDBusObjectPath Ip6Config READ ip6Config)
35 Q_PROPERTY(QDBusObjectPath SpecificObject READ specificObject)
42 QDBusObjectPath connection() const;
43 bool default4() const;
44 bool default6() const;
45 QList<QDBusObjectPath> devices() const;
46 QDBusObjectPath dhcp4Config() const;
47 QDBusObjectPath dhcp6Config() const;
48 QDBusObjectPath ip4Config() const;
49 QDBusObjectPath ip6Config() const;
50 QDBusObjectPath master() const;
51 QDBusObjectPath specificObject() const;
59 void addDevice(const QDBusObjectPath &path);
60 void removeDevice(const QDBusObjectPath &device);
61 QString activeConnectionPath() const;
62 void setActiveConnectionPath(const QString &path);
63 void setConnection(const QDBusObjectPath &connection);
64 void setDefault4(
bool default4);
65 void setDefault6(
bool default6);
66 void setDhcp4Config(const QDBusObjectPath &dhcp4Config);
67 void setDhcp6Config(const QDBusObjectPath &dhcp6Config);
68 void setIpv4Config(const QDBusObjectPath &ipv4Config);
69 void setIpv6Config(const QDBusObjectPath &ipv6Config);
70 void setMaster(const QDBusObjectPath &master);
71 void setSpecificObject(const QDBusObjectPath &specificObject);
72 void setState(uint state);
73 void setId(const QString &
id);
74 void setUuid(const QString &uuid);
75 void setType(const QString &type);
78 Q_SCRIPTABLE
void PropertiesChanged(const QVariantMap &properties);
79 Q_SCRIPTABLE
void StateChanged(uint state, uint reason);
82 QDBusObjectPath m_connection;
85 QList<QDBusObjectPath> m_devices;
86 QDBusObjectPath m_dhcp4Config;
87 QDBusObjectPath m_dhcp6Config;
88 QDBusObjectPath m_ip4Config;
89 QDBusObjectPath m_ip6Config;
90 QDBusObjectPath m_master;
91 QDBusObjectPath m_specificObject;
99 QString m_activeConnectionPath;
QObject * parent() const const