NetworkManager::AccessPoint Class

class NetworkManager::AccessPoint

Represents an access point. More...

Header: #include <NetworkManagerQt/AccessPoint>
CMake: find_package(KF6 REQUIRED COMPONENTS NetworkManagerQt)
target_link_libraries(mytarget PRIVATE KF6::NetworkManagerQt)
Inherits: QObject

Public Types

flags Capabilities
enum Capability { None, Privacy }
List
enum OperationMode { Unknown, Adhoc, ApMode }
Ptr
enum WpaFlag { PairWep40, PairWep104, PairTkip, PairCcmp, GroupWep40, …, KeyMgmtEapSuiteB192 }
flags WpaFlags

Public Functions

AccessPoint(const QString &path, QObject *parent = nullptr)
(since 6.12.0.) uint bandwidth() const
NetworkManager::AccessPoint::Capabilities capabilities() const
uint frequency() const
QString hardwareAddress() const
(since 5.14.0) int lastSeen() const
uint maxBitRate() const
NetworkManager::AccessPoint::OperationMode mode() const
QByteArray rawSsid() const
NetworkManager::AccessPoint::WpaFlags rsnFlags() const
int signalStrength() const
QString ssid() const
QString uni() const
NetworkManager::AccessPoint::WpaFlags wpaFlags() const

Signals

(since 6.12.0) void bandwidthChanged(uint bandwidth)
void bitRateChanged(int bitrate)
void capabilitiesChanged(NetworkManager::AccessPoint::Capabilities caps)
void frequencyChanged(uint frequency)
(since 5.14.0) void lastSeenChanged(int lastSeen)
void rsnFlagsChanged(NetworkManager::AccessPoint::WpaFlags flags)
void signalStrengthChanged(int strength)
void ssidChanged(const QString &ssid)
void wpaFlagsChanged(NetworkManager::AccessPoint::WpaFlags flags)

Static Public Members

NetworkManager::AccessPoint::OperationMode convertOperationMode(uint mode)

Detailed Description

Member Type Documentation

enum AccessPoint::Capability
flags AccessPoint::Capabilities

General capabilities of an access point

ConstantValueDescription
NetworkManager::AccessPoint::None0x0Null capability - says nothing about the access point
NetworkManager::AccessPoint::Privacy0x1Access point supports privacy measures

The Capabilities type is a typedef for QFlags<Capability>. It stores an OR combination of Capability values.

AccessPoint::List

enum AccessPoint::OperationMode

The access point's current operating mode

ConstantValueDescription
NetworkManager::AccessPoint::Unknown0Not associated with a network
NetworkManager::AccessPoint::Adhoc1A station in an infrastructure wireless network
NetworkManager::AccessPoint::ApMode3Access point in an infrastructure network

AccessPoint::Ptr

enum AccessPoint::WpaFlag
flags AccessPoint::WpaFlags

Flags describing the access point's capabilities according to WPA (Wifi Protected Access)

ConstantValue
NetworkManager::AccessPoint::PairWep400x1
NetworkManager::AccessPoint::PairWep1040x2
NetworkManager::AccessPoint::PairTkip0x4
NetworkManager::AccessPoint::PairCcmp0x8
NetworkManager::AccessPoint::GroupWep400x10
NetworkManager::AccessPoint::GroupWep1040x20
NetworkManager::AccessPoint::GroupTkip0x40
NetworkManager::AccessPoint::GroupCcmp0x80
NetworkManager::AccessPoint::KeyMgmtPsk0x100
NetworkManager::AccessPoint::KeyMgmt8021x0x200
NetworkManager::AccessPoint::KeyMgmtSAE0x400
NetworkManager::AccessPoint::KeyMgmtOWE0x800
NetworkManager::AccessPoint::KeyMgmtOWETM0x1000
NetworkManager::AccessPoint::KeyMgmtEapSuiteB1920x2000

The WpaFlags type is a typedef for QFlags<WpaFlag>. It stores an OR combination of WpaFlag values.

Member Function Documentation

[explicit] AccessPoint::AccessPoint(const QString &path, QObject *parent = nullptr)

[since 6.12.0.] uint AccessPoint::bandwidth() const

The bandwidth announced by the access point in MHz.

This function was introduced in 6.12.0..

[signal, since 6.12.0] void AccessPoint::bandwidthChanged(uint bandwidth)

This signal is emitted when bandwidth announced by the access point changes.

lastSeen the bandwidth announced by the access point in MHz.

This function was introduced in 6.12.0.

[signal] void AccessPoint::bitRateChanged(int bitrate)

This signal is emitted when the bitrate of this network has changed.

bitrate the new bitrate value for this network

NetworkManager::AccessPoint::Capabilities AccessPoint::capabilities() const

Returns capabilities of an access point.

[signal] void AccessPoint::capabilitiesChanged(NetworkManager::AccessPoint::Capabilities caps)

This signal is emitted when the capabilities of this network have changed.

caps the new capabilities

[static] NetworkManager::AccessPoint::OperationMode AccessPoint::convertOperationMode(uint mode)

Helper method to convert wire representation of operation mode to enum.

uint AccessPoint::frequency() const

Returns The radio channel frequency in use by the access point, in MHz.

[signal] void AccessPoint::frequencyChanged(uint frequency)

This signal is emitted when the frequency used by this Access Point changes.

frequency the new frequency

QString AccessPoint::hardwareAddress() const

Returns The hardware address (BSSID) of the access point.

[since 5.14.0] int AccessPoint::lastSeen() const

Returns The timestamp (in CLOCK_BOOTTIME seconds) for the last time the access point was found in scan results. A value of -1 means the access point has never been found in scan results.

This function was introduced in 5.14.0.

[signal, since 5.14.0] void AccessPoint::lastSeenChanged(int lastSeen)

This signal is emitted when the timestamp for the last time the access point was found in scan results changes.

lastSeen the timestamp for the last time the access point was found in scan results.

This function was introduced in 5.14.0.

uint AccessPoint::maxBitRate() const

Returns The maximum bitrate this access point is capable of, in kilobits/second (Kb/s).

NetworkManager::AccessPoint::OperationMode AccessPoint::mode() const

Returns Describes the operating mode of the access point.

QByteArray AccessPoint::rawSsid() const

Returns raw SSID, encoded as a byte array.

NetworkManager::AccessPoint::WpaFlags AccessPoint::rsnFlags() const

Returns Flags describing the access point's capabilities according to the RSN (Robust Secure Network) protocol.

See also WpaFlag.

[signal] void AccessPoint::rsnFlagsChanged(NetworkManager::AccessPoint::WpaFlags flags)

This signal is emitted when the RSN(WPA2) flags in use by this access point change.

flags the new flags

int AccessPoint::signalStrength() const

Returns The current signal quality of the access point, in percent.

[signal] void AccessPoint::signalStrengthChanged(int strength)

This signal is emitted when the signal strength of this network has changed.

strength the new signal strength value for this network

QString AccessPoint::ssid() const

Returns The Service Set Identifier identifying the access point.

[signal] void AccessPoint::ssidChanged(const QString &ssid)

This signal is emitted when the ssid of this Access Point changes.

ssid the new SSID

QString AccessPoint::uni() const

Returns path of the access point.

NetworkManager::AccessPoint::WpaFlags AccessPoint::wpaFlags() const

Returns flags describing the access point's capabilities according to WPA (Wifi Protected Access).

See also WpaFlag.

[signal] void AccessPoint::wpaFlagsChanged(NetworkManager::AccessPoint::WpaFlags flags)

This signal is emitted when the WPA flags in use by this access point change.

flags the new flags