List model over the access points a single Wi-Fi NetworkDevice last scanned. More...
#include <PhosphorServiceNetwork/AccessPointModel.h>
Public Types | |
| enum | Roles { AccessPointRole = Qt::UserRole + 1 , SsidRole , StrengthRole , FrequencyRole , BssidRole , SecurityRole , SecuredRole } |
Signals | |
| void | deviceChanged () |
| void | countChanged () |
Public Member Functions | |
| AccessPointModel (QObject *parent=nullptr) | |
| ~AccessPointModel () override | |
| NetworkDevice * | device () const |
| void | setDevice (NetworkDevice *device) |
| int | rowCount (const QModelIndex &parent={}) const override |
| QVariant | data (const QModelIndex &index, int role) const override |
| QHash< int, QByteArray > | roleNames () const override |
| PhosphorServiceNetwork::AccessPoint * | accessPointAt (int index) const |
List model over the access points a single Wi-Fi NetworkDevice last scanned.
Bind device to a Wi-Fi device, call NetworkHost::scanWifi() to refresh, and drive a list view off the rows. The model owns the AccessPoint row objects (parented to it) and keeps them live via the device's wireless-interface AccessPointAdded / AccessPointRemoved signals. Rows are in NetworkManager's enumeration order; sort by strength in a proxy/delegate if a signal-ordered list is wanted.
|
explicit |
|
override |
| PhosphorServiceNetwork::AccessPoint * PhosphorServiceNetwork::AccessPointModel::accessPointAt | ( | int | index | ) | const |
|
signal |
|
nodiscardoverride |
|
nodiscard |
|
signal |
|
nodiscardoverride |
|
nodiscardoverride |
| void PhosphorServiceNetwork::AccessPointModel::setDevice | ( | NetworkDevice * | device | ) |