NetworkManager::ConnectionSettings Class

class NetworkManager::ConnectionSettings

Represents collection of all connection settings. More...

Header: #include <NetworkManagerQt/ConnectionSettings>
CMake: find_package(KF6 REQUIRED COMPONENTS NetworkManagerQt)
target_link_libraries(mytarget PRIVATE KF6::NetworkManagerQt)

Public Types

enum AutoconnectSlaves { SlavesDefault, DoNotConnectSlaves, ConnectAllSlaves }
enum ConnectionType { Unknown, Adsl, Bluetooth, Bond, Bridge, …, Loopback }
List
enum Lldp { LldpDefault, LldpDisable, LldpEnableRx }
enum Mdns { MdnsDefault, MdnsNo, MdnsResolve, MdnsResolveAndRespond }
enum Metered { MeteredUnknown, MeteredYes, MeteredNo, MeteredGuessYes, MeteredGuessNo }
Ptr

Public Functions

ConnectionSettings()
ConnectionSettings(const NetworkManager::ConnectionSettings::Ptr &other)
ConnectionSettings(const int &map)
ConnectionSettings(NetworkManager::ConnectionSettings::ConnectionType type, NMBluetoothCapabilities bt_cap = NM_BT_CAPABILITY_DUN)
virtual ~ConnectionSettings()
void addToPermissions(const QString &user, const QString &type)
bool autoconnect() const
int autoconnectPriority() const
int autoconnectRetries() const
NetworkManager::ConnectionSettings::AutoconnectSlaves autoconnectSlaves() const
NetworkManager::ConnectionSettings::ConnectionType connectionType() const
void fromMap(const int &map)
void fromMeCard(const QVariantMap &map)
quint32 gatewayPingTimeout() const
QString id() const
QString interfaceName() const
bool isSlave() const
NetworkManager::ConnectionSettings::Lldp lldp() const
QString master() const
NetworkManager::ConnectionSettings::Mdns mdns() const
NetworkManager::ConnectionSettings::Metered metered() const
QString name() const
QHash<QString, QString> permissions() const
bool readOnly() const
QStringList secondaries() const
void setAutoconnect(bool autoconnect)
void setAutoconnectPriority(int priority)
void setAutoconnectRetries(int retries)
void setAutoconnectSlaves(NetworkManager::ConnectionSettings::AutoconnectSlaves autoconnectSlaves)
void setConnectionType(NetworkManager::ConnectionSettings::ConnectionType type, NMBluetoothCapabilities bt_cap = NM_BT_CAPABILITY_DUN)
void setGatewayPingTimeout(quint32 timeout)
void setId(const QString &id)
void setInterfaceName(const QString &interfaceName)
void setLldp(NetworkManager::ConnectionSettings::Lldp lldp)
void setMaster(const QString &master)
void setMdns(NetworkManager::ConnectionSettings::Mdns mdns)
void setMetered(NetworkManager::ConnectionSettings::Metered metered)
void setPermissions(const QHash<QString, QString> &perm)
void setReadOnly(bool readonly)
void setSecondaries(const QStringList &secondaries)
void setSlaveType(const QString &type)
void setStableId(const QString &stableId)
void setTimestamp(const QDateTime &timestamp)
void setUuid(const QString &uuid)
void setZone(const QString &zone)
NetworkManager::Setting::Ptr setting(NetworkManager::Setting::SettingType type) const
NetworkManager::Setting::Ptr setting(const QString &type) const
NetworkManager::Setting::List settings() const
QString slaveType() const
QString stableId() const
QDateTime timestamp() const
int toMap() const
QString uuid() const
QString zone() const

Static Public Members

QString createNewUuid()
QString typeAsString(const NetworkManager::ConnectionSettings::ConnectionType type)
NetworkManager::ConnectionSettings::ConnectionType typeFromString(const QString &typeString)

Detailed Description

Member Type Documentation

enum ConnectionSettings::AutoconnectSlaves

ConstantValue
NetworkManager::ConnectionSettings::SlavesDefault-1
NetworkManager::ConnectionSettings::DoNotConnectSlaves0
NetworkManager::ConnectionSettings::ConnectAllSlaves1

enum ConnectionSettings::ConnectionType

ConstantValue
NetworkManager::ConnectionSettings::Unknown0
NetworkManager::ConnectionSettings::Adsl1
NetworkManager::ConnectionSettings::Bluetooth2
NetworkManager::ConnectionSettings::Bond3
NetworkManager::ConnectionSettings::Bridge4
NetworkManager::ConnectionSettings::Cdma5
NetworkManager::ConnectionSettings::Gsm6
NetworkManager::ConnectionSettings::Infiniband7
NetworkManager::ConnectionSettings::OLPCMesh8
NetworkManager::ConnectionSettings::Pppoe9
NetworkManager::ConnectionSettings::Vlan10
NetworkManager::ConnectionSettings::Vpn11
NetworkManager::ConnectionSettings::Wimax12
NetworkManager::ConnectionSettings::Wired13
NetworkManager::ConnectionSettings::Wireless14
NetworkManager::ConnectionSettings::Team15
NetworkManager::ConnectionSettings::Generic16
NetworkManager::ConnectionSettings::Tun17
NetworkManager::ConnectionSettings::IpTunnel18
NetworkManager::ConnectionSettings::WireGuard19
NetworkManager::ConnectionSettings::Loopback20

ConnectionSettings::List

enum ConnectionSettings::Lldp

ConstantValue
NetworkManager::ConnectionSettings::LldpDefault-1
NetworkManager::ConnectionSettings::LldpDisable0
NetworkManager::ConnectionSettings::LldpEnableRx1

enum ConnectionSettings::Mdns

ConstantValue
NetworkManager::ConnectionSettings::MdnsDefault-1
NetworkManager::ConnectionSettings::MdnsNo0
NetworkManager::ConnectionSettings::MdnsResolve1
NetworkManager::ConnectionSettings::MdnsResolveAndRespond2

enum ConnectionSettings::Metered

FIXME same enum as in device.h, unfortunately it's not possible to use that one maybe in future move all enums into one header so they can be used across all classes

ConstantValue
NetworkManager::ConnectionSettings::MeteredUnknown0
NetworkManager::ConnectionSettings::MeteredYes1
NetworkManager::ConnectionSettings::MeteredNo2
NetworkManager::ConnectionSettings::MeteredGuessYes3
NetworkManager::ConnectionSettings::MeteredGuessNo4

ConnectionSettings::Ptr

Member Function Documentation

ConnectionSettings::ConnectionSettings()

[explicit] ConnectionSettings::ConnectionSettings(const NetworkManager::ConnectionSettings::Ptr &other)

[explicit] ConnectionSettings::ConnectionSettings(const int &map)

[explicit] ConnectionSettings::ConnectionSettings(NetworkManager::ConnectionSettings::ConnectionType type, NMBluetoothCapabilities bt_cap = NM_BT_CAPABILITY_DUN)

[virtual noexcept] ConnectionSettings::~ConnectionSettings()

void ConnectionSettings::addToPermissions(const QString &user, const QString &type)

bool ConnectionSettings::autoconnect() const

See also setAutoconnect().

int ConnectionSettings::autoconnectPriority() const

See also setAutoconnectPriority().

int ConnectionSettings::autoconnectRetries() const

See also setAutoconnectRetries().

NetworkManager::ConnectionSettings::AutoconnectSlaves ConnectionSettings::autoconnectSlaves() const

See also setAutoconnectSlaves().

NetworkManager::ConnectionSettings::ConnectionType ConnectionSettings::connectionType() const

See also setConnectionType().

[static] QString ConnectionSettings::createNewUuid()

void ConnectionSettings::fromMap(const int &map)

void ConnectionSettings::fromMeCard(const QVariantMap &map)

quint32 ConnectionSettings::gatewayPingTimeout() const

See also setGatewayPingTimeout().

QString ConnectionSettings::id() const

See also setId().

QString ConnectionSettings::interfaceName() const

See also setInterfaceName().

bool ConnectionSettings::isSlave() const

NetworkManager::ConnectionSettings::Lldp ConnectionSettings::lldp() const

See also setLldp().

QString ConnectionSettings::master() const

See also setMaster().

NetworkManager::ConnectionSettings::Mdns ConnectionSettings::mdns() const

See also setMdns().

NetworkManager::ConnectionSettings::Metered ConnectionSettings::metered() const

See also setMetered().

QString ConnectionSettings::name() const

QHash<QString, QString> ConnectionSettings::permissions() const

See also setPermissions().

bool ConnectionSettings::readOnly() const

See also setReadOnly().

QStringList ConnectionSettings::secondaries() const

See also setSecondaries().

void ConnectionSettings::setAutoconnect(bool autoconnect)

See also autoconnect().

void ConnectionSettings::setAutoconnectPriority(int priority)

See also autoconnectPriority().

void ConnectionSettings::setAutoconnectRetries(int retries)

See also autoconnectRetries().

void ConnectionSettings::setAutoconnectSlaves(NetworkManager::ConnectionSettings::AutoconnectSlaves autoconnectSlaves)

See also autoconnectSlaves().

void ConnectionSettings::setConnectionType(NetworkManager::ConnectionSettings::ConnectionType type, NMBluetoothCapabilities bt_cap = NM_BT_CAPABILITY_DUN)

See also connectionType().

void ConnectionSettings::setGatewayPingTimeout(quint32 timeout)

See also gatewayPingTimeout().

void ConnectionSettings::setId(const QString &id)

See also id().

void ConnectionSettings::setInterfaceName(const QString &interfaceName)

See also interfaceName().

void ConnectionSettings::setLldp(NetworkManager::ConnectionSettings::Lldp lldp)

See also lldp().

void ConnectionSettings::setMaster(const QString &master)

See also master().

void ConnectionSettings::setMdns(NetworkManager::ConnectionSettings::Mdns mdns)

See also mdns().

void ConnectionSettings::setMetered(NetworkManager::ConnectionSettings::Metered metered)

See also metered().

void ConnectionSettings::setPermissions(const QHash<QString, QString> &perm)

See also permissions().

void ConnectionSettings::setReadOnly(bool readonly)

See also readOnly().

void ConnectionSettings::setSecondaries(const QStringList &secondaries)

See also secondaries().

void ConnectionSettings::setSlaveType(const QString &type)

See also slaveType().

void ConnectionSettings::setStableId(const QString &stableId)

See also stableId().

void ConnectionSettings::setTimestamp(const QDateTime &timestamp)

See also timestamp().

void ConnectionSettings::setUuid(const QString &uuid)

See also uuid().

void ConnectionSettings::setZone(const QString &zone)

See also zone().

NetworkManager::Setting::Ptr ConnectionSettings::setting(NetworkManager::Setting::SettingType type) const

NetworkManager::Setting::Ptr ConnectionSettings::setting(const QString &type) const

NetworkManager::Setting::List ConnectionSettings::settings() const

QString ConnectionSettings::slaveType() const

See also setSlaveType().

QString ConnectionSettings::stableId() const

See also setStableId().

QDateTime ConnectionSettings::timestamp() const

See also setTimestamp().

int ConnectionSettings::toMap() const

[static] QString ConnectionSettings::typeAsString(const NetworkManager::ConnectionSettings::ConnectionType type)

[static] NetworkManager::ConnectionSettings::ConnectionType ConnectionSettings::typeFromString(const QString &typeString)

QString ConnectionSettings::uuid() const

See also setUuid().

QString ConnectionSettings::zone() const

See also setZone().