6#include <PhosphorServiceNetwork/phosphorservicenetwork_export.h>
11#include <QAbstractListModel>
12#include <QDBusConnection>
13#include <QDBusObjectPath>
49 [[nodiscard]]
int rowCount(const QModelIndex& parent = {})
const override;
50 [[nodiscard]] QVariant
data(
const QModelIndex& index,
int role)
const override;
51 [[nodiscard]] QHash<int, QByteArray>
roleNames()
const override;
59 void _q_onAccessPointAdded(
const QDBusObjectPath& path);
60 void _q_onAccessPointRemoved(
const QDBusObjectPath& path);
67 void addAccessPoint(
const QString& path);
68 void removeAccessPoint(
const QString& path);
76 QString m_subscribedPath;
77 QDBusConnection m_bus = QDBusConnection::systemBus();
80 QList<AccessPoint*> m_rows;
AccessPointModel(QObject *parent=nullptr)
QVariant data(const QModelIndex &index, int role) const override
void setDevice(NetworkDevice *device)
QHash< int, QByteArray > roleNames() const override
Roles
Definition AccessPointModel.h:32
@ SecurityRole
Definition AccessPointModel.h:38
@ SecuredRole
Definition AccessPointModel.h:39
@ SsidRole
Definition AccessPointModel.h:34
@ FrequencyRole
Definition AccessPointModel.h:36
@ StrengthRole
Definition AccessPointModel.h:35
@ BssidRole
Definition AccessPointModel.h:37
@ AccessPointRole
Definition AccessPointModel.h:33
PhosphorServiceNetwork::AccessPoint * accessPointAt(int index) const
NetworkDevice * device() const
int rowCount(const QModelIndex &parent={}) const override
One org.freedesktop.NetworkManager.AccessPoint — a Wi-Fi network as seen by a wireless device's last ...
Definition AccessPoint.h:22
One org.freedesktop.NetworkManager.Device object.
Definition NetworkDevice.h:23
Definition AccessPoint.h:13