6#include <PhosphorServiceNetwork/phosphorservicenetwork_export.h>
10#include <QAbstractListModel>
11#include <QDBusConnection>
12#include <QDBusObjectPath>
40 [[nodiscard]]
int rowCount(const QModelIndex& parent = {})
const override;
41 [[nodiscard]] QVariant
data(
const QModelIndex& index,
int role)
const override;
42 [[nodiscard]] QHash<int, QByteArray>
roleNames()
const override;
49 void _q_onNewConnection(
const QDBusObjectPath& path);
50 void _q_onConnectionRemoved(
const QDBusObjectPath& path);
54 quint64 m_generation = 0;
55 void addConnection(
const QString& path);
56 void removeConnection(
const QString& path);
59 QDBusConnection m_bus = QDBusConnection::systemBus();
61 QList<NetworkConnection*> m_rows;
int rowCount(const QModelIndex &parent={}) const override
Roles
Definition NetworkConnectionModel.h:29
@ ConnectionTypeRole
Definition NetworkConnectionModel.h:33
@ IdRole
Definition NetworkConnectionModel.h:31
@ ConnectionRole
Definition NetworkConnectionModel.h:30
@ UuidRole
Definition NetworkConnectionModel.h:32
NetworkConnectionModel(QObject *parent=nullptr)
QHash< int, QByteArray > roleNames() const override
QVariant data(const QModelIndex &index, int role) const override
PhosphorServiceNetwork::NetworkConnection * connectionAt(int index) const
One saved profile — an org.freedesktop.NetworkManager.Settings.Connection.
Definition NetworkConnection.h:20
Definition AccessPoint.h:13