NetworkManager::WirelessDevice
#include <wirelessdevice.h>
Public Types | |
typedef QFlags< Capability > | Capabilities |
enum | Capability { NoCapability = 0x0 , Wep40 = 0x1 , Wep104 = 0x2 , Tkip = 0x4 , Ccmp = 0x8 , Wpa = 0x10 , Rsn = 0x20 , ApCap = 0x40 , AdhocCap = 0x80 , FreqValid = 0x100 , Freq2Ghz = 0x200 , Freq5Ghz = 0x400 , Mesh = 0x1000 , IBSSRsn = 0x2000 } |
typedef QList< Ptr > | List |
enum | OperationMode { Unknown = 0 , Adhoc , Infra , ApMode } |
typedef QSharedPointer< WirelessDevice > | Ptr |
Public Types inherited from NetworkManager::Device | |
typedef QFlags< Capability > | Capabilities |
enum | Capability { IsManageable = 0x1 , SupportsCarrierDetect = 0x2 } |
enum | Interfaceflag { None = NM_DEVICE_INTERFACE_FLAG_NONE , Up = NM_DEVICE_INTERFACE_FLAG_UP , LowerUp = NM_DEVICE_INTERFACE_FLAG_LOWER_UP , Carrier = NM_DEVICE_INTERFACE_FLAG_CARRIER } |
typedef QFlags< Interfaceflag > | Interfaceflags |
typedef QList< Ptr > | List |
enum | MeteredStatus { UnknownStatus = 0 , Yes = 1 , No = 2 , GuessYes = 3 , GuessNo = 4 } |
typedef QSharedPointer< Device > | Ptr |
enum | State { UnknownState = 0 , Unmanaged = 10 , Unavailable = 20 , Disconnected = 30 , Preparing = 40 , ConfiguringHardware = 50 , NeedAuth = 60 , ConfiguringIp = 70 , CheckingIp = 80 , WaitingForSecondaries = 90 , Activated = 100 , Deactivating = 110 , Failed = 120 } |
enum | StateChangeReason { UnknownReason = 0 , NoReason = 1 , NowManagedReason = 2 , NowUnmanagedReason = 3 , ConfigFailedReason = 4 , ConfigUnavailableReason = 5 , ConfigExpiredReason = 6 , NoSecretsReason = 7 , AuthSupplicantDisconnectReason = 8 , AuthSupplicantConfigFailedReason = 9 , AuthSupplicantFailedReason = 10 , AuthSupplicantTimeoutReason = 11 , PppStartFailedReason = 12 , PppDisconnectReason = 13 , PppFailedReason = 14 , DhcpStartFailedReason = 15 , DhcpErrorReason = 16 , DhcpFailedReason = 17 , SharedStartFailedReason = 18 , SharedFailedReason = 19 , AutoIpStartFailedReason = 20 , AutoIpErrorReason = 21 , AutoIpFailedReason = 22 , ModemBusyReason = 23 , ModemNoDialToneReason = 24 , ModemNoCarrierReason = 25 , ModemDialTimeoutReason = 26 , ModemDialFailedReason = 27 , ModemInitFailedReason = 28 , GsmApnSelectFailedReason = 29 , GsmNotSearchingReason = 30 , GsmRegistrationDeniedReason = 31 , GsmRegistrationTimeoutReason = 32 , GsmRegistrationFailedReason = 33 , GsmPinCheckFailedReason = 34 , FirmwareMissingReason = 35 , DeviceRemovedReason = 36 , SleepingReason = 37 , ConnectionRemovedReason = 38 , UserRequestedReason = 39 , CarrierReason = 40 , ConnectionAssumedReason = 41 , SupplicantAvailableReason = 42 , ModemNotFoundReason = 43 , BluetoothFailedReason = 44 , GsmSimNotInserted = 45 , GsmSimPinRequired = 46 , GsmSimPukRequired = 47 , GsmSimWrong = 48 , InfiniBandMode = 49 , DependencyFailed = 50 , Br2684Failed = 51 , ModemManagerUnavailable = 52 , SsidNotFound = 53 , SecondaryConnectionFailed = 54 , DcbFcoeFailed = 55 , TeamdControlFailed = 56 , ModemFailed = 57 , ModemAvailable = 58 , SimPinIncorrect = 59 , NewActivation = 60 , ParentChanged = 61 , ParentManagedChanged = 62 , Reserved = 65536 } |
enum | Type { UnknownType = NM_DEVICE_TYPE_UNKNOWN , Ethernet = NM_DEVICE_TYPE_ETHERNET , Wifi = NM_DEVICE_TYPE_WIFI , Unused1 = NM_DEVICE_TYPE_UNUSED1 , Unused2 = NM_DEVICE_TYPE_UNUSED2 , Bluetooth = NM_DEVICE_TYPE_BT , OlpcMesh = NM_DEVICE_TYPE_OLPC_MESH , Wimax = NM_DEVICE_TYPE_WIMAX , Modem = NM_DEVICE_TYPE_MODEM , InfiniBand = NM_DEVICE_TYPE_INFINIBAND , Bond = NM_DEVICE_TYPE_BOND , Vlan = NM_DEVICE_TYPE_VLAN , Adsl = NM_DEVICE_TYPE_ADSL , Bridge = NM_DEVICE_TYPE_BRIDGE , Generic = NM_DEVICE_TYPE_GENERIC , Team = NM_DEVICE_TYPE_TEAM , Gre , MacVlan , Tun , Veth , IpTunnel , VxLan , MacSec , Dummy , Ppp , OvsInterface , OvsPort , OvsBridge , Wpan , Lowpan , WireGuard , WifiP2P , VRF , Loopback } |
typedef QFlags< Type > | Types |
Public Types inherited from QObject | |
typedef | QObjectList |
Static Public Member Functions | |
static WirelessDevice::Capabilities | convertCapabilities (uint) |
static WirelessDevice::OperationMode | convertOperationMode (uint) |
Static Public Member Functions inherited from QObject | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
Detailed Description
A wireless network interface.
Definition at line 27 of file wirelessdevice.h.
Member Typedef Documentation
◆ Capabilities
Definition at line 65 of file wirelessdevice.h.
◆ List
Definition at line 33 of file wirelessdevice.h.
◆ Ptr
Definition at line 32 of file wirelessdevice.h.
Member Enumeration Documentation
◆ Capability
Capabilities (currently all encryption/authentication related) of the device.
- Note
- FreqValid, Freq2Ghz, Freq5Ghz are available in runtime NM >= 1.0.2
Definition at line 49 of file wirelessdevice.h.
◆ OperationMode
The device's current operating mode.
Enumerator | |
---|---|
Unknown | not associated with a network |
Adhoc | part of an adhoc network |
Infra | a station in an infrastructure wireless network |
ApMode | access point in an infrastructure network |
Definition at line 38 of file wirelessdevice.h.
Constructor & Destructor Documentation
◆ WirelessDevice()
Creates a new WirelessDevice object.
- Parameters
-
path the DBus path of the devise
Definition at line 34 of file wirelessdevice.cpp.
◆ ~WirelessDevice()
|
override |
Destroys a WirelessDevice object.
Definition at line 63 of file wirelessdevice.cpp.
Member Function Documentation
◆ accessPointAppeared
|
signal |
A new wireless access point appeared.
◆ accessPointDisappeared
|
signal |
A wireless access point disappeared.
◆ accessPoints()
QStringList WirelessDevice::accessPoints | ( | ) | const |
List of wireless networks currently visible to the hardware.
Definition at line 72 of file wirelessdevice.cpp.
◆ activeAccessPoint()
NetworkManager::AccessPoint::Ptr WirelessDevice::activeAccessPoint | ( | ) | const |
AccessPoint pointer this interface is currently associated with.
Definition at line 85 of file wirelessdevice.cpp.
◆ activeAccessPointChanged
|
signal |
The active network changed.
◆ bitRate()
int WirelessDevice::bitRate | ( | ) | const |
Retrieves the effective bit rate currently attainable by this device.
- Returns
- the bitrate in Kbit/s
Definition at line 109 of file wirelessdevice.cpp.
◆ bitRateChanged
|
signal |
This signal is emitted when the bitrate of this network has changed.
- Parameters
-
bitrate the new bitrate value for this network
◆ convertCapabilities()
|
static |
Helper method to convert wire representation of capabilities to enum.
Definition at line 264 of file wirelessdevice.cpp.
◆ convertOperationMode()
|
static |
Helper method to convert wire representation of operation mode to enum.
Definition at line 242 of file wirelessdevice.cpp.
◆ findAccessPoint()
NetworkManager::AccessPoint::Ptr WirelessDevice::findAccessPoint | ( | const QString & | uni | ) |
Finds access point object given its Unique Network Identifier.
- Parameters
-
uni the identifier of the AP to find from this network interface
- Returns
- a valid AccessPoint object if a network having the given UNI for this device is known to the system, 0 otherwise
Definition at line 133 of file wirelessdevice.cpp.
◆ findNetwork()
NetworkManager::WirelessNetwork::Ptr WirelessDevice::findNetwork | ( | const QString & | ssid | ) | const |
Find a network with the given ssid
, a Null object is returned if it can not be found.
Definition at line 158 of file wirelessdevice.cpp.
◆ hardwareAddress()
QString WirelessDevice::hardwareAddress | ( | ) | const |
The hardware address currently used by the network interface.
Definition at line 91 of file wirelessdevice.cpp.
◆ hardwareAddressChanged
|
signal |
The device changed its hardware address.
◆ lastRequestScan()
QDateTime WirelessDevice::lastRequestScan | ( | ) | const |
The time the last RequestScan function was called.
- Since
- 5.62.0
- Returns
Definition at line 121 of file wirelessdevice.cpp.
◆ lastScan()
QDateTime WirelessDevice::lastScan | ( | ) | const |
The LastScan property value, converted to QDateTime.
- Since
- 5.62.0
- Note
- will always return invalid QDateTime when runtime NM < 1.12
- Returns
Definition at line 115 of file wirelessdevice.cpp.
◆ lastScanChanged
|
signal |
The LastScan property has changed, meaning a scan has just finished.
- Since
- 5.62.0
- Note
- will never be emitted when runtime NM < 1.12
- See also
- lastScanTime
◆ mode()
NetworkManager::WirelessDevice::OperationMode WirelessDevice::mode | ( | ) | const |
Retrieves the operation mode of this network.
- Returns
- the current mode
- See also
- OperationMode
Definition at line 103 of file wirelessdevice.cpp.
◆ modeChanged
|
signal |
The device switched operating mode.
◆ networkAppeared
|
signal |
A wireless network appeared.
◆ networkDisappeared
|
signal |
A wireless network disappeared.
◆ networks()
NetworkManager::WirelessNetwork::List WirelessDevice::networks | ( | ) | const |
Return the current list of networks.
Definition at line 152 of file wirelessdevice.cpp.
◆ permanentHardwareAddress()
QString WirelessDevice::permanentHardwareAddress | ( | ) | const |
The permanent hardware address of the network interface.
Definition at line 97 of file wirelessdevice.cpp.
◆ permanentHardwareAddressChanged
|
signal |
The device changed its permanent hardware address.
◆ requestScan()
QDBusPendingReply WirelessDevice::requestScan | ( | const QVariantMap & | options = QVariantMap() | ) |
Asks the device for a new scan of available wireless networks.
- Parameters
-
options Options of scan No documentation for options yet, see https://projects.gnome.org/NetworkManager/developers/api/09/spec.html#org.freedesktop.NetworkManager.Device.Wireless
Definition at line 78 of file wirelessdevice.cpp.
◆ type()
|
overridevirtual |
Return the type.
Reimplemented from NetworkManager::Device.
Definition at line 67 of file wirelessdevice.cpp.
◆ wirelessCapabilities()
NetworkManager::WirelessDevice::Capabilities WirelessDevice::wirelessCapabilities | ( | ) | const |
Retrieves the capabilities of this wifi network.
- Returns
- the flag set describing the capabilities
- See also
- Capabilities
Definition at line 127 of file wirelessdevice.cpp.
◆ wirelessCapabilitiesChanged
|
signal |
The device changed its capabilities.
◆ wirelessPropertiesChanged
|
signal |
The device changed its properties.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.