Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorServiceNetwork::AccessPoint Class Reference

One org.freedesktop.NetworkManager.AccessPoint — a Wi-Fi network as seen by a wireless device's last scan. More...

#include <PhosphorServiceNetwork/AccessPoint.h>

Inheritance diagram for PhosphorServiceNetwork::AccessPoint:
[legend]

Signals

void ssidChanged ()
void strengthChanged ()
void frequencyChanged ()
void bssidChanged ()
void securityChanged ()

Public Member Functions

 AccessPoint (const QString &dbusPath, QObject *parent=nullptr)
 The object path this access point was built from.
 ~AccessPoint () override
QString dbusPath () const
QString ssid () const
int strength () const
int frequency () const
QString bssid () const
QString security () const
bool secured () const

Detailed Description

One org.freedesktop.NetworkManager.AccessPoint — a Wi-Fi network as seen by a wireless device's last scan.

Owned by an AccessPointModel (parented to it), vended to consumers via the model's rows. Reads its SSID / signal strength / frequency / BSSID / security flags asynchronously via Properties.GetAll and keeps the live-varying strength current through a PropertiesChanged subscription.

Constructor & Destructor Documentation

◆ AccessPoint()

PhosphorServiceNetwork::AccessPoint::AccessPoint ( const QString & dbusPath,
QObject * parent = nullptr )
explicit

The object path this access point was built from.

CONSTANT: an AccessPoint is constructed for one path and never re-targeted.

Exposed to QML so a consumer can compare a row against NetworkDevice::activeAccessPointPath and mark the associated network. The accessor below already existed for C++ callers; only the Q_PROPERTY is new, since a bare accessor is invisible to QML. Human-readable security label derived from the AP's flag triple: "" (open), "WEP", "WPA", "WPA2", "WPA3", or "802.1X". Recomputed whenever any underlying flag changes.

◆ ~AccessPoint()

PhosphorServiceNetwork::AccessPoint::~AccessPoint ( )
override

Member Function Documentation

◆ bssid()

QString PhosphorServiceNetwork::AccessPoint::bssid ( ) const
nodiscard

◆ bssidChanged

void PhosphorServiceNetwork::AccessPoint::bssidChanged ( )
signal

◆ dbusPath()

QString PhosphorServiceNetwork::AccessPoint::dbusPath ( ) const
nodiscard

◆ frequency()

int PhosphorServiceNetwork::AccessPoint::frequency ( ) const
nodiscard

◆ frequencyChanged

void PhosphorServiceNetwork::AccessPoint::frequencyChanged ( )
signal

◆ secured()

bool PhosphorServiceNetwork::AccessPoint::secured ( ) const
nodiscard

◆ security()

QString PhosphorServiceNetwork::AccessPoint::security ( ) const
nodiscard

◆ securityChanged

void PhosphorServiceNetwork::AccessPoint::securityChanged ( )
signal

◆ ssid()

QString PhosphorServiceNetwork::AccessPoint::ssid ( ) const
nodiscard

◆ ssidChanged

void PhosphorServiceNetwork::AccessPoint::ssidChanged ( )
signal

◆ strength()

int PhosphorServiceNetwork::AccessPoint::strength ( ) const
nodiscard

◆ strengthChanged

void PhosphorServiceNetwork::AccessPoint::strengthChanged ( )
signal

The documentation for this class was generated from the following file:
  • phosphor-service-network/include/PhosphorServiceNetwork/AccessPoint.h