NetworkManager::WirelessNetwork Class
This 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
List of all members, including inherited members
Public Types
Public Functions
- AccessPoint::List accessPoints() const
- QString device() const
- 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
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
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