List model over the saved connection profiles NetworkManager knows about (org.freedesktop.NetworkManager.Settings). More...
#include <PhosphorServiceNetwork/NetworkConnectionModel.h>
Public Types | |
| enum | Roles { ConnectionRole = Qt::UserRole + 1 , IdRole , UuidRole , ConnectionTypeRole } |
Signals | |
| void | countChanged () |
Public Member Functions | |
| NetworkConnectionModel (QObject *parent=nullptr) | |
| ~NetworkConnectionModel () override | |
| int | rowCount (const QModelIndex &parent={}) const override |
| QVariant | data (const QModelIndex &index, int role) const override |
| QHash< int, QByteArray > | roleNames () const override |
| PhosphorServiceNetwork::NetworkConnection * | connectionAt (int index) const |
List model over the saved connection profiles NetworkManager knows about (org.freedesktop.NetworkManager.Settings).
Self-contained: it binds the Settings object on construction, lists existing connections, and tracks NewConnection / ConnectionRemoved. Owns the NetworkConnection row objects (parented to it). No host binding needed; just instantiate it.
|
explicit |
|
override |
| PhosphorServiceNetwork::NetworkConnection * PhosphorServiceNetwork::NetworkConnectionModel::connectionAt | ( | int | index | ) | const |
|
signal |
|
nodiscardoverride |
|
nodiscardoverride |
|
nodiscardoverride |