7#ifndef NETWORKMANAGERQT_FAKE_NETWORK_WIRELESS_DEVICE_H
8#define NETWORKMANAGERQT_FAKE_NETWORK_WIRELESS_DEVICE_H
12#include <QDBusObjectPath>
15#include "../generictypes.h"
17#include "accesspoint.h"
20class WirelessDevice :
public Device
23 Q_CLASSINFO(
"D-Bus Interface",
"org.kde.fakenetwork.Device.Wireless")
26 ~WirelessDevice() override;
28 Q_PROPERTY(QList<QDBusObjectPath> AccessPoints READ accessPoints)
29 Q_PROPERTY(QDBusObjectPath ActiveAccessPoint READ activeAccessPoint)
33 Q_PROPERTY(QString PermHwAddress READ permHwAddress)
34 Q_PROPERTY(uint WirelessCapabilities READ wirelessCapabilities)
36 QList<QDBusObjectPath> accessPoints() const;
37 QDBusObjectPath activeAccessPoint() const;
39 QString hwAddress() const;
41 QString permHwAddress() const;
42 uint wirelessCapabilities() const;
45 void addAccessPoint(AccessPoint *accessPoint);
46 void removeAccessPoint(AccessPoint *accessPoint);
47 void setActiveAccessPoint(const QString &activeAccessPoint);
48 void setBitrate(uint bitrate);
49 void setHwAddress(const QString &hwAddress);
50 void setMode(uint mode);
51 void setPermHwAddress(const QString &permHwAddress);
52 void setState(uint state) override;
53 void setWirelessCapabilities(uint capabilities);
56 Q_SCRIPTABLE QList<QDBusObjectPath> GetAccessPoints();
57 Q_SCRIPTABLE QList<QDBusObjectPath> GetAllAccessPoints();
58 Q_SCRIPTABLE
void RequestScan(const QVariantMap &options);
61 Q_SCRIPTABLE
void AccessPointAdded(const QDBusObjectPath &access_point);
62 Q_SCRIPTABLE
void AccessPointRemoved(const QDBusObjectPath &access_point);
63 Q_SCRIPTABLE
void PropertiesChanged(const QVariantMap &properties);
66 QMap<QDBusObjectPath, AccessPoint *> m_accessPoints;
67 QDBusObjectPath m_activeAccessPoint;
71 QString m_permHwAddress;
72 uint m_wirelessCapabilities;
75 int m_accessPointCounter;
QObject * parent() const const