Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorServiceNetwork::NetworkConnection Class Reference

One saved profile — an org.freedesktop.NetworkManager.Settings.Connection. More...

#include <PhosphorServiceNetwork/NetworkConnection.h>

Inheritance diagram for PhosphorServiceNetwork::NetworkConnection:
[legend]

Signals

void idChanged ()
void uuidChanged ()
void connectionTypeChanged ()
void settingsChanged ()

Public Member Functions

 NetworkConnection (const QString &dbusPath, QObject *parent=nullptr)
 ~NetworkConnection () override
QString dbusPath () const
QString id () const
QString uuid () const
QString connectionType () const
 The NetworkManager connection type token, e.g.
QString ssid () const
QString security () const
bool autoConnect () const

Detailed Description

One saved profile — an org.freedesktop.NetworkManager.Settings.Connection.

Owned by a NetworkConnectionModel (parented to it), vended via the model's rows. Reads its id / uuid / type from the connection group of GetSettings() and refreshes on the connection's Updated signal.

Constructor & Destructor Documentation

◆ NetworkConnection()

PhosphorServiceNetwork::NetworkConnection::NetworkConnection ( const QString & dbusPath,
QObject * parent = nullptr )
explicit

◆ ~NetworkConnection()

PhosphorServiceNetwork::NetworkConnection::~NetworkConnection ( )
override

Member Function Documentation

◆ autoConnect()

bool PhosphorServiceNetwork::NetworkConnection::autoConnect ( ) const
nodiscard

◆ connectionType()

QString PhosphorServiceNetwork::NetworkConnection::connectionType ( ) const
nodiscard

The NetworkManager connection type token, e.g.

"802-11-wireless", "802-3-ethernet", "vpn".

◆ connectionTypeChanged

void PhosphorServiceNetwork::NetworkConnection::connectionTypeChanged ( )
signal

◆ dbusPath()

QString PhosphorServiceNetwork::NetworkConnection::dbusPath ( ) const
nodiscard

◆ id()

QString PhosphorServiceNetwork::NetworkConnection::id ( ) const
nodiscard

◆ idChanged

void PhosphorServiceNetwork::NetworkConnection::idChanged ( )
signal

◆ security()

QString PhosphorServiceNetwork::NetworkConnection::security ( ) const
nodiscard

◆ settingsChanged

void PhosphorServiceNetwork::NetworkConnection::settingsChanged ( )
signal

◆ ssid()

QString PhosphorServiceNetwork::NetworkConnection::ssid ( ) const
nodiscard

◆ uuid()

QString PhosphorServiceNetwork::NetworkConnection::uuid ( ) const
nodiscard

◆ uuidChanged

void PhosphorServiceNetwork::NetworkConnection::uuidChanged ( )
signal

The documentation for this class was generated from the following file: