NetworkManager::Setting Class

class NetworkManager::Setting

Base class for all kinds of setting. More...

Public Types

enum MacAddressRandomization { MacAddressRandomizationDefault, MacAddressRandomizationNever, MacAddressRandomizationAlways }
enum SecretFlagType { None, AgentOwned, NotSaved, NotRequired }
flags SecretFlags
enum SettingType { Adsl, Cdma, Gsm, Infiniband, Ipv4, …, WireGuard }

Public Functions

Setting(NetworkManager::Setting::SettingType type)
Setting(const NetworkManager::Setting::Ptr &setting)
virtual ~Setting()
virtual void fromMap(const QVariantMap &map)
bool isNull() const
virtual QString name() const
virtual QStringList needSecrets(bool requestNew = false) const
virtual void secretsFromMap(const QVariantMap &map)
virtual void secretsFromStringMap(const int &map)
virtual QVariantMap secretsToMap() const
int secretsToStringMap() const
void setInitialized(bool initialized)
void setType(NetworkManager::Setting::SettingType type)
virtual QVariantMap toMap() const
NetworkManager::Setting::SettingType type() const

Static Public Members

QString typeAsString(NetworkManager::Setting::SettingType type)
NetworkManager::Setting::SettingType typeFromString(const QString &type)

Detailed Description

Member Type Documentation

enum Setting::MacAddressRandomization

ConstantValue
NetworkManager::Setting::MacAddressRandomizationDefault0
NetworkManager::Setting::MacAddressRandomizationNever1
NetworkManager::Setting::MacAddressRandomizationAlways2

enum Setting::SecretFlagType
flags Setting::SecretFlags

ConstantValue
NetworkManager::Setting::None0
NetworkManager::Setting::AgentOwned0x01
NetworkManager::Setting::NotSaved0x02
NetworkManager::Setting::NotRequired0x04

The SecretFlags type is a typedef for QFlags<SecretFlagType>. It stores an OR combination of SecretFlagType values.

enum Setting::SettingType

ConstantValue
NetworkManager::Setting::Adsl0
NetworkManager::Setting::Cdma1
NetworkManager::Setting::Gsm2
NetworkManager::Setting::Infiniband3
NetworkManager::Setting::Ipv44
NetworkManager::Setting::Ipv65
NetworkManager::Setting::Ppp6
NetworkManager::Setting::Pppoe7
NetworkManager::Setting::Security8021x8
NetworkManager::Setting::Serial9
NetworkManager::Setting::Vpn10
NetworkManager::Setting::Wired11
NetworkManager::Setting::Wireless12
NetworkManager::Setting::WirelessSecurity13
NetworkManager::Setting::Bluetooth14
NetworkManager::Setting::OlpcMesh15
NetworkManager::Setting::Vlan16
NetworkManager::Setting::Wimax17
NetworkManager::Setting::Bond18
NetworkManager::Setting::Bridge19
NetworkManager::Setting::BridgePort20
NetworkManager::Setting::Team21
NetworkManager::Setting::Generic22
NetworkManager::Setting::Tun23
NetworkManager::Setting::Vxlan24
NetworkManager::Setting::IpTunnel25
NetworkManager::Setting::Proxy26
NetworkManager::Setting::User27
NetworkManager::Setting::OvsBridge28
NetworkManager::Setting::OvsInterface29
NetworkManager::Setting::OvsPatch30
NetworkManager::Setting::OvsPort31
NetworkManager::Setting::Match32
NetworkManager::Setting::Tc33
NetworkManager::Setting::TeamPort34
NetworkManager::Setting::Macsec35
NetworkManager::Setting::Dcb36
NetworkManager::Setting::WireGuard37

Member Function Documentation

[explicit] Setting::Setting(NetworkManager::Setting::SettingType type)

[explicit] Setting::Setting(const NetworkManager::Setting::Ptr &setting)

[virtual noexcept] Setting::~Setting()

[virtual] void Setting::fromMap(const QVariantMap &map)

Must be reimplemented, default implementation does nothing.

bool Setting::isNull() const

[virtual] QString Setting::name() const

Must be reimplemented, default implementationd does nothing.

[virtual] QStringList Setting::needSecrets(bool requestNew = false) const

[virtual] void Setting::secretsFromMap(const QVariantMap &map)

[virtual] void Setting::secretsFromStringMap(const int &map)

secretsFromStringMap is a convenience function to set the secrets from a map of strings. map to extract secrets from

[virtual] QVariantMap Setting::secretsToMap() const

int Setting::secretsToStringMap() const

secretsToStringMap is a convenience function to get the secrets to map of strings. Returns string map with current secrets

void Setting::setInitialized(bool initialized)

void Setting::setType(NetworkManager::Setting::SettingType type)

See also type().

[virtual] QVariantMap Setting::toMap() const

Must be reimplemented, default implementationd does nothing.

NetworkManager::Setting::SettingType Setting::type() const

See also setType().

[static] QString Setting::typeAsString(NetworkManager::Setting::SettingType type)

[static] NetworkManager::Setting::SettingType Setting::typeFromString(const QString &type)