6#include <PhosphorServiceNetwork/phosphorservicenetwork_export.h>
11#include <QAbstractListModel>
42 [[nodiscard]]
int rowCount(const QModelIndex& parent = {})
const override;
43 [[nodiscard]] QVariant
data(
const QModelIndex& index,
int role)
const override;
44 [[nodiscard]] QHash<int, QByteArray>
roleNames()
const override;
72 QList<NetworkDevice*> m_rows;
void setHost(NetworkHost *host)
Roles
Definition NetworkDeviceModel.h:27
@ DeviceRole
Definition NetworkDeviceModel.h:28
@ ManagedRole
Definition NetworkDeviceModel.h:32
@ InterfaceNameRole
Definition NetworkDeviceModel.h:29
@ DeviceTypeRole
Definition NetworkDeviceModel.h:30
@ StateRole
Definition NetworkDeviceModel.h:31
QVariant data(const QModelIndex &index, int role) const override
NetworkHost * host() const
QHash< int, QByteArray > roleNames() const override
NetworkDeviceModel(QObject *parent=nullptr)
int rowCount(const QModelIndex &parent={}) const override
One org.freedesktop.NetworkManager.Device object.
Definition NetworkDevice.h:23
Root of the NetworkManager surface.
Definition NetworkHost.h:30
Definition AccessPoint.h:13