11#ifndef WIRELESSDEVICEINTERFACE_H
12#define WIRELESSDEVICEINTERFACE_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.Wireless";
38 return "org.freedesktop.NetworkManager.Device.Wireless";
43 OrgFreedesktopNetworkManagerDeviceWirelessInterface(
const QString &
service,
48 ~OrgFreedesktopNetworkManagerDeviceWirelessInterface()
override;
50 Q_PROPERTY(QList<QDBusObjectPath> AccessPoints READ accessPoints)
51 inline QList<QDBusObjectPath> accessPoints()
const
53 return qvariant_cast<QList<QDBusObjectPath>>(
property(
"AccessPoints"));
56 Q_PROPERTY(QDBusObjectPath ActiveAccessPoint READ activeAccessPoint)
57 inline QDBusObjectPath activeAccessPoint()
const
59 return qvariant_cast<QDBusObjectPath>(
property(
"ActiveAccessPoint"));
63 inline uint bitrate()
const
65 return qvariant_cast<uint>(
property(
"Bitrate"));
69 inline QString hwAddress()
const
71 return qvariant_cast<QString>(
property(
"HwAddress"));
75 inline uint mode()
const
77 return qvariant_cast<uint>(
property(
"Mode"));
80 Q_PROPERTY(QString PermHwAddress READ permHwAddress)
81 inline QString permHwAddress()
const
83 return qvariant_cast<QString>(
property(
"PermHwAddress"));
86 Q_PROPERTY(uint WirelessCapabilities READ wirelessCapabilities)
87 inline uint wirelessCapabilities()
const
89 return qvariant_cast<uint>(
property(
"WirelessCapabilities"));
93 inline QDBusPendingReply<QList<QDBusObjectPath>> GetAccessPoints()
95 QList<QVariant> argumentList;
99 inline QDBusPendingReply<QList<QDBusObjectPath>> GetAllAccessPoints()
101 QList<QVariant> argumentList;
105 inline QDBusPendingReply<> RequestScan(
const QVariantMap &options)
107 QList<QVariant> argumentList;
113 void AccessPointAdded(
const QDBusObjectPath &access_point);
114 void AccessPointRemoved(
const QDBusObjectPath &access_point);
115 void PropertiesChanged(
const QVariantMap &properties);
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
QVariant fromValue(T &&value)