|
DtkNetworkManager
NetworkManager DBus interface binding for Qt
|
对于Wireless设备属性的封装 更多...
#include <dwirelessdevice.h>


Public 槽 | |
| DExpected< void > | requestScan (const Config &options={}) const |
| DExpected< QList< quint64 > > | getAllAccessPoints () const |
Public 槽 继承自 Dtk::NetworkManager::DDevice | |
| DExpected< void > | disconnect () const |
| 断开设备 | |
信号 | |
| void | accessPointsChanged (const QList< quint64 > &aps) |
| 信号, 当accessPoints属性改变时触发 | |
| void | HwAddressChanged (const QByteArray &address) |
| 信号, 当HwAddress属性发生改变时触发 | |
| void | permHwAddressChanged (const QByteArray &address) |
| 信号. 当permHwAddress属性发生变化时触发 | |
| void | modeChanged (const NM80211Mode mode) |
| 信号, 当mode属性改变时触发 | |
| void | bitrateChanged (const quint32 bitrate) |
| 信号, 当bitrate属性改变时触发 | |
| void | activeAccessPointChanged (const quint64 &path) |
| 信号, 当activeAccessPoint属性改变时触发 | |
| void | wirelessCapabilitiesChanged (const NMWifiCap wirelessCapabilities) |
| 信号, 当wirelessCapabilities属性改变时触发 | |
| void | lastScanChanged (const qint64 time) |
| void | AccessPointAdded (const quint64 &ap) |
| 信号, 当有接入点加入时触发 | |
| void | AccessPointRemoved (const quint64 &ap) |
| 信号, 当有接入点被移除时触发 | |
信号 继承自 Dtk::NetworkManager::DDevice | |
| void | deviceStateChanged (const NMDeviceState newSatate, const NMDeviceState oldState, const NMDeviceStateReason reason) |
| 信号, 当deviceState属性改变时触发 | |
| void | availableConnectionsChanged (const QList< quint64 > &conns) |
| 信号, 当availableConnections属性改变时触发 | |
| void | autoconnectChanged (const bool enabled) |
| 信号, 当 autoconnect属性改变时触发 | |
| void | managedChanged (const bool enabled) |
| 信号, 当managed属性改变时触发 | |
| void | activeConnectionChanged (const quint64 &conn) |
| 信号, 当activeConnection属性改变时触发 | |
| void | DHCP4ConfigChanged (const quint64 &config) |
| 信号, 当DHCP4Config属性改变时触发 | |
| void | DHCP6ConfigChanged (const quint64 &config) |
| 信号, 当DHCP6Config属性改变时触发 | |
| void | IPv4ConfigChanged (const quint64 &config) |
| 信号, 当IPv4Config属性改变时触发 | |
| void | IPv6ConfigChanged (const quint64 &config) |
| 信号, 当IPv6Config属性改变时触发 | |
| void | driverChanged (const QByteArray &driver) |
| 信号, 当driver属性改变时触发 | |
| void | interfaceChanged (const QByteArray &ifc) |
| 信号, 当interface属性改变时触发 | |
| void | udiChanged (const QByteArray &udi) |
| 信号, 当udi属性改变时触发 | |
| void | deviceTypeChanged (const NMDeviceType type) |
| 信号, 当deviceType属性改变时触发 | |
| void | interfaceFlagsChanged (const DeviceInterfaceFlags flags) |
| 信号, 当interface属性改变时触发 | |
| void | refreshRateMsChanged (const quint32 rate) |
| 信号, 当refreshRateMs属性改变时触发 | |
| void | rxBytesChanged (const quint32 bytes) |
| 信号, 当rxBytes属性改变时触发 | |
| void | txBytesChanged (const quint32 bytes) |
| 信号, 当txBytes属性改变时触发 | |
Public 成员函数 | |
| Q_DECLARE_FLAGS (NMWifiCap, NMDeviceWiFiCapabilities) | |
| DWirelessDevice (const quint64 id, QObject *parent=nullptr) | |
| QList< quint64 > | accessPoints () const |
| 获取设备上的接入点 更多... | |
| QByteArray | HwAddress () const |
| 获取设备的活动硬件地址 更多... | |
| QByteArray | permHwAddress () const |
| 获取设备的永久硬件地址 @retunrn 永久硬件地址 | |
| NM80211Mode | mode () const |
| 获取该设备的操作模式 更多... | |
| quint32 | bitrate () const |
| 获取当前设备的速率, 单位是KB/s 更多... | |
| quint64 | activeAccessPoint () const |
| 获取该设备上激活的ap接入点 更多... | |
| NMWifiCap | wirelessCapabilities () const |
| 获取无线设备的功能 更多... | |
| qint64 | lastScan () const |
Public 成员函数 继承自 Dtk::NetworkManager::DDevice | |
| DDevice (const quint64 deviceId, QObject *parent=nullptr) | |
| DDevice (DDevicePrivate &other, QObject *parent=nullptr) | |
| QList< quint64 > | availableConnections () const |
| 获取该设备上现在可用的连接对象的id 更多... | |
| bool | autoconnect () const |
| 获取设备是否自动连接 更多... | |
| void | setAutoconnect (const bool autoconnect) const |
| 设置设备是否可以自动连接 更多... | |
| bool | managed () const |
| 获取该设备是否由NetworkManager管理 更多... | |
| void | setManaged (const bool managed) const |
| 设置该设备是否由NetworkManager管理 更多... | |
| quint64 | activeConnection () const |
| 获取该设备上的活动连接对象的id 更多... | |
| quint64 | DHCP4Config () const |
| 获取DHCP4配置对象的Id 更多... | |
| quint64 | DHCP6Config () const |
| 获取DHCP6配置对象的Id 更多... | |
| quint64 | IPv4Config () const |
| 获取IPv4配置对象的Id 更多... | |
| quint64 | IPv6Config () const |
| 获取IPv6配置对象的Id属性 更多... | |
| QByteArray | driver () const |
| 获取设备驱动名称 更多... | |
| QByteArray | interface () const |
| 获取设备的控制接口的名称 更多... | |
| QByteArray | udi () const |
| 获取操作系统特定的临时设备硬件标识符 更多... | |
| NMDeviceType | deviceType () const |
| 获取设备类型 更多... | |
| DeviceInterfaceFlags | interfaceFlags () const |
| 获取接口的一些属性 更多... | |
| NMDeviceState | deviceState () const |
| 获取设备状态 更多... | |
| quint32 | refreshRateMs () const |
| 获取该设备接口rxBytes和txBytes的刷新率 更多... | |
| void | setRefreshRateMs (const quint32 newRate) const |
| 设置该设备接口rxBytes和txBytes的刷新率 更多... | |
| quint32 | rxBytes () const |
| 获取接收字节数 更多... | |
| quint32 | txBytes () const |
| 获取传输字节数 更多... | |
属性 | |
| QList< quint64 > | accessPoints |
| QByteArray | HwAddress |
| QByteArray | permHwAddress |
| NM80211Mode | mode |
| quint32 | bitrate |
| quint64 | activeAccessPoint |
| NMWifiCap | wirelessCapabilities |
| qint64 | lastScan |
属性 继承自 Dtk::NetworkManager::DDevice | |
| QList< quint64 > | availableConnections |
| bool | autoconnect |
| bool | managed |
| quint64 | activeConnection |
| quint64 | DHCP4Config |
| quint64 | DHCP6Config |
| quint64 | IPv4Config |
| quint64 | IPv6Config |
| QByteArray | driver |
| QByteArray | interface |
| QByteArray | udi |
| NMDeviceType | deviceType |
| DeviceInterfaceFlags | interfaceFlags |
| NMDeviceState | deviceState |
| quint32 | refreshRateMs |
| quint32 | rxBytes |
| quint32 | txBytes |
额外继承的成员函数 | |
Protected 属性 继承自 Dtk::NetworkManager::DDevice | |
| QScopedPointer< DDevicePrivate > | d_ptr |
对于Wireless设备属性的封装
| QList< quint64 > DWirelessDevice::accessPoints | ( | ) | const |
获取设备上的接入点
| quint64 DWirelessDevice::activeAccessPoint | ( | ) | const |
获取该设备上激活的ap接入点
| quint32 DWirelessDevice::bitrate | ( | ) | const |
获取当前设备的速率, 单位是KB/s
| QByteArray DWirelessDevice::HwAddress | ( | ) | const |
获取设备的活动硬件地址
| NM80211Mode DWirelessDevice::mode | ( | ) | const |
获取该设备的操作模式
| NMWifiCap DWirelessDevice::wirelessCapabilities | ( | ) | const |
获取无线设备的功能
@fnDExpected<void> DWirelessDevice::requestScan(const Config &options = {}) const;
请求该设备进行扫描
| [in] | options | 扫描的一些可选项, 目前支持ssid属性 |
@fnDExpected<QList<quint64>> DWirelessDevice::getAllAccessPoints() const;
获取所有的接入点对象id @retunrn 接入点对象id组成的列表