NetworkManager::WirelessNetwork Class
class NetworkManager::WirelessNetworkThis class represents a wireless network, which aggregates all access points with the same SSID. More...
Header: | #include <NetworkManagerQt/WirelessNetwork> |
CMake: | find_package(KF6 REQUIRED COMPONENTS NetworkManagerQt) target_link_libraries(mytarget PRIVATE KF6::NetworkManagerQt) |
Inherits: | QObject |
Public Types
Public Functions
NetworkManager::AccessPoint::List | accessPoints() const |
QString | device() const |
NetworkManager::AccessPoint::Ptr | referenceAccessPoint() const |
int | signalStrength() const |
QString | ssid() const |
Signals
void | disappeared(const QString &ssid) |
void | referenceAccessPointChanged(const QString &apUni) |
void | signalStrengthChanged(int strength) |
Detailed Description
Member Type Documentation
WirelessNetwork::List
WirelessNetwork::Ptr
Member Function Documentation
NetworkManager::AccessPoint::List WirelessNetwork::accessPoints() const
List of access points
Warning: Subject to change, do not store!
QString WirelessNetwork::device() const
The uni of device associated with this network.
[signal]
void WirelessNetwork::disappeared(const QString &ssid)
Indicate that this network has no more access points (meaning the network has disappeared from view of the network interface)
ssid the SSID of this network
NetworkManager::AccessPoint::Ptr WirelessNetwork::referenceAccessPoint() const
The uni of the current 'best' (strongest) Access Point. Note that this may change or disappear over time. Get the Access Point object using WirelessDevice::findAccessPoint() on the NetworkInterface this network was obtained from. Use WirelessDevice::accessPointDisappeared() or WirelessNetwork::referenceAccessPointChanged() to detect this.
[signal]
void WirelessNetwork::referenceAccessPointChanged(const QString &apUni)
Indicate that the reference access point changed
apUni new access point or empty string if none
int WirelessNetwork::signalStrength() const
Signal strength of the network. Syntactic sugar around tracking the reference access point and watching its signal strength
[signal]
void WirelessNetwork::signalStrengthChanged(int strength)
Indicate that the signal strength changed
strength strength as a percentage.
QString WirelessNetwork::ssid() const
ESSID of the network