NetworkManager::ConnectionSettings Class
class NetworkManager::ConnectionSettingsRepresents 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 ×tamp) |
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
Constant | Value |
---|---|
NetworkManager::ConnectionSettings::SlavesDefault | -1 |
NetworkManager::ConnectionSettings::DoNotConnectSlaves | 0 |
NetworkManager::ConnectionSettings::ConnectAllSlaves | 1 |
enum ConnectionSettings::ConnectionType
Constant | Value |
---|---|
NetworkManager::ConnectionSettings::Unknown | 0 |
NetworkManager::ConnectionSettings::Adsl | 1 |
NetworkManager::ConnectionSettings::Bluetooth | 2 |
NetworkManager::ConnectionSettings::Bond | 3 |
NetworkManager::ConnectionSettings::Bridge | 4 |
NetworkManager::ConnectionSettings::Cdma | 5 |
NetworkManager::ConnectionSettings::Gsm | 6 |
NetworkManager::ConnectionSettings::Infiniband | 7 |
NetworkManager::ConnectionSettings::OLPCMesh | 8 |
NetworkManager::ConnectionSettings::Pppoe | 9 |
NetworkManager::ConnectionSettings::Vlan | 10 |
NetworkManager::ConnectionSettings::Vpn | 11 |
NetworkManager::ConnectionSettings::Wimax | 12 |
NetworkManager::ConnectionSettings::Wired | 13 |
NetworkManager::ConnectionSettings::Wireless | 14 |
NetworkManager::ConnectionSettings::Team | 15 |
NetworkManager::ConnectionSettings::Generic | 16 |
NetworkManager::ConnectionSettings::Tun | 17 |
NetworkManager::ConnectionSettings::IpTunnel | 18 |
NetworkManager::ConnectionSettings::WireGuard | 19 |
NetworkManager::ConnectionSettings::Loopback | 20 |
ConnectionSettings::List
enum ConnectionSettings::Lldp
Constant | Value |
---|---|
NetworkManager::ConnectionSettings::LldpDefault | -1 |
NetworkManager::ConnectionSettings::LldpDisable | 0 |
NetworkManager::ConnectionSettings::LldpEnableRx | 1 |
enum ConnectionSettings::Mdns
Constant | Value |
---|---|
NetworkManager::ConnectionSettings::MdnsDefault | -1 |
NetworkManager::ConnectionSettings::MdnsNo | 0 |
NetworkManager::ConnectionSettings::MdnsResolve | 1 |
NetworkManager::ConnectionSettings::MdnsResolveAndRespond | 2 |
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
Constant | Value |
---|---|
NetworkManager::ConnectionSettings::MeteredUnknown | 0 |
NetworkManager::ConnectionSettings::MeteredYes | 1 |
NetworkManager::ConnectionSettings::MeteredNo | 2 |
NetworkManager::ConnectionSettings::MeteredGuessYes | 3 |
NetworkManager::ConnectionSettings::MeteredGuessNo | 4 |
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 ×tamp)
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().