NetworkManager::Setting Class
class NetworkManager::SettingBase 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
Constant | Value |
---|---|
NetworkManager::Setting::MacAddressRandomizationDefault | 0 |
NetworkManager::Setting::MacAddressRandomizationNever | 1 |
NetworkManager::Setting::MacAddressRandomizationAlways | 2 |
enum Setting::SecretFlagType
flags Setting::SecretFlags
Constant | Value |
---|---|
NetworkManager::Setting::None | 0 |
NetworkManager::Setting::AgentOwned | 0x01 |
NetworkManager::Setting::NotSaved | 0x02 |
NetworkManager::Setting::NotRequired | 0x04 |
The SecretFlags type is a typedef for QFlags<SecretFlagType>. It stores an OR combination of SecretFlagType values.
enum Setting::SettingType
Constant | Value |
---|---|
NetworkManager::Setting::Adsl | 0 |
NetworkManager::Setting::Cdma | 1 |
NetworkManager::Setting::Gsm | 2 |
NetworkManager::Setting::Infiniband | 3 |
NetworkManager::Setting::Ipv4 | 4 |
NetworkManager::Setting::Ipv6 | 5 |
NetworkManager::Setting::Ppp | 6 |
NetworkManager::Setting::Pppoe | 7 |
NetworkManager::Setting::Security8021x | 8 |
NetworkManager::Setting::Serial | 9 |
NetworkManager::Setting::Vpn | 10 |
NetworkManager::Setting::Wired | 11 |
NetworkManager::Setting::Wireless | 12 |
NetworkManager::Setting::WirelessSecurity | 13 |
NetworkManager::Setting::Bluetooth | 14 |
NetworkManager::Setting::OlpcMesh | 15 |
NetworkManager::Setting::Vlan | 16 |
NetworkManager::Setting::Wimax | 17 |
NetworkManager::Setting::Bond | 18 |
NetworkManager::Setting::Bridge | 19 |
NetworkManager::Setting::BridgePort | 20 |
NetworkManager::Setting::Team | 21 |
NetworkManager::Setting::Generic | 22 |
NetworkManager::Setting::Tun | 23 |
NetworkManager::Setting::Vxlan | 24 |
NetworkManager::Setting::IpTunnel | 25 |
NetworkManager::Setting::Proxy | 26 |
NetworkManager::Setting::User | 27 |
NetworkManager::Setting::OvsBridge | 28 |
NetworkManager::Setting::OvsInterface | 29 |
NetworkManager::Setting::OvsPatch | 30 |
NetworkManager::Setting::OvsPort | 31 |
NetworkManager::Setting::Match | 32 |
NetworkManager::Setting::Tc | 33 |
NetworkManager::Setting::TeamPort | 34 |
NetworkManager::Setting::Macsec | 35 |
NetworkManager::Setting::Dcb | 36 |
NetworkManager::Setting::WireGuard | 37 |
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().