NetworkManager::Setting
#include <setting.h>
Public Types | |
typedef QList< Ptr > | List |
enum | MacAddressRandomization { MacAddressRandomizationDefault = 0 , MacAddressRandomizationNever , MacAddressRandomizationAlways } |
typedef QSharedPointer< Setting > | Ptr |
typedef QFlags< SecretFlagType > | SecretFlags |
enum | SecretFlagType { None = 0 , AgentOwned = 0x01 , NotSaved = 0x02 , NotRequired = 0x04 } |
enum | SettingType { Adsl , Cdma , Gsm , Infiniband , Ipv4 , Ipv6 , Ppp , Pppoe , Security8021x , Serial , Vpn , Wired , Wireless , WirelessSecurity , Bluetooth , OlpcMesh , Vlan , Wimax , Bond , Bridge , BridgePort , Team , Generic , Tun , Vxlan , IpTunnel , Proxy , User , OvsBridge , OvsInterface , OvsPatch , OvsPort , Match , Tc , TeamPort , Macsec , Dcb , WireGuard } |
Public Member Functions | |
Setting (const Ptr &setting) | |
Setting (SettingType type) | |
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 NMStringMap &map) |
virtual QVariantMap | secretsToMap () const |
virtual NMStringMap | secretsToStringMap () const |
void | setInitialized (bool initialized) |
void | setType (SettingType type) |
virtual QVariantMap | toMap () const |
SettingType | type () const |
Static Public Member Functions | |
static QString | typeAsString (SettingType type) |
static SettingType | typeFromString (const QString &type) |
Protected Attributes | |
SettingPrivate * | d_ptr |
Detailed Description
Member Typedef Documentation
◆ List
◆ Ptr
◆ SecretFlags
QFlags< SecretFlagType > NetworkManager::Setting::SecretFlags |
Member Enumeration Documentation
◆ MacAddressRandomization
◆ SecretFlagType
◆ SettingType
Constructor & Destructor Documentation
◆ Setting() [1/2]
|
explicit |
Definition at line 258 of file setting.cpp.
◆ Setting() [2/2]
|
explicit |
Definition at line 264 of file setting.cpp.
◆ ~Setting()
|
virtual |
Definition at line 271 of file setting.cpp.
Member Function Documentation
◆ fromMap()
|
virtual |
Must be reimplemented, default implementation does nothing.
Reimplemented in NetworkManager::AdslSetting, NetworkManager::BluetoothSetting, NetworkManager::BondSetting, NetworkManager::BridgePortSetting, NetworkManager::BridgeSetting, NetworkManager::CdmaSetting, NetworkManager::DcbSetting, NetworkManager::GenericSetting, NetworkManager::GsmSetting, NetworkManager::InfinibandSetting, NetworkManager::IpTunnelSetting, NetworkManager::Ipv4Setting, NetworkManager::Ipv6Setting, NetworkManager::MacsecSetting, NetworkManager::MatchSetting, NetworkManager::OlpcMeshSetting, NetworkManager::OvsBridgeSetting, NetworkManager::OvsInterfaceSetting, NetworkManager::OvsPatchSetting, NetworkManager::OvsPortSetting, NetworkManager::PppoeSetting, NetworkManager::PppSetting, NetworkManager::ProxySetting, NetworkManager::Security8021xSetting, NetworkManager::SerialSetting, NetworkManager::TcSetting, NetworkManager::TeamPortSetting, NetworkManager::TeamSetting, NetworkManager::TemplateSetting, NetworkManager::TunSetting, NetworkManager::UserSetting, NetworkManager::VlanSetting, NetworkManager::VpnSetting, NetworkManager::VxlanSetting, NetworkManager::WimaxSetting, NetworkManager::WiredSetting, NetworkManager::WireGuardSetting, NetworkManager::WirelessSecuritySetting, and NetworkManager::WirelessSetting.
Definition at line 276 of file setting.cpp.
◆ isNull()
bool NetworkManager::Setting::isNull | ( | ) | const |
Definition at line 336 of file setting.cpp.
◆ name()
|
virtual |
Must be reimplemented, default implementationd does nothing.
Reimplemented in NetworkManager::AdslSetting, NetworkManager::BluetoothSetting, NetworkManager::BondSetting, NetworkManager::BridgePortSetting, NetworkManager::BridgeSetting, NetworkManager::CdmaSetting, NetworkManager::DcbSetting, NetworkManager::GenericSetting, NetworkManager::GsmSetting, NetworkManager::InfinibandSetting, NetworkManager::IpTunnelSetting, NetworkManager::Ipv4Setting, NetworkManager::Ipv6Setting, NetworkManager::MacsecSetting, NetworkManager::MatchSetting, NetworkManager::OlpcMeshSetting, NetworkManager::OvsBridgeSetting, NetworkManager::OvsInterfaceSetting, NetworkManager::OvsPatchSetting, NetworkManager::OvsPortSetting, NetworkManager::PppoeSetting, NetworkManager::PppSetting, NetworkManager::ProxySetting, NetworkManager::Security8021xSetting, NetworkManager::SerialSetting, NetworkManager::TcSetting, NetworkManager::TeamPortSetting, NetworkManager::TeamSetting, NetworkManager::TemplateSetting, NetworkManager::TunSetting, NetworkManager::UserSetting, NetworkManager::VlanSetting, NetworkManager::VpnSetting, NetworkManager::VxlanSetting, NetworkManager::WimaxSetting, NetworkManager::WiredSetting, NetworkManager::WireGuardSetting, NetworkManager::WirelessSecuritySetting, and NetworkManager::WirelessSetting.
Definition at line 292 of file setting.cpp.
◆ needSecrets()
|
virtual |
Definition at line 286 of file setting.cpp.
◆ secretsFromMap()
|
virtual |
Definition at line 297 of file setting.cpp.
◆ secretsFromStringMap()
|
virtual |
secretsFromStringMap is a convenience function to set the secrets from a map of strings.
- Parameters
-
map to extract secrets from
Reimplemented in NetworkManager::VpnSetting, and NetworkManager::WireGuardSetting.
Definition at line 302 of file setting.cpp.
◆ secretsToMap()
|
virtual |
Definition at line 313 of file setting.cpp.
◆ secretsToStringMap()
|
virtual |
secretsToStringMap is a convenience function to get the secrets to map of strings.
- Returns
- string map with current secrets
Reimplemented in NetworkManager::VpnSetting, and NetworkManager::WireGuardSetting.
Definition at line 318 of file setting.cpp.
◆ setInitialized()
void NetworkManager::Setting::setInitialized | ( | bool | initialized | ) |
Definition at line 329 of file setting.cpp.
◆ setType()
void NetworkManager::Setting::setType | ( | SettingType | type | ) |
Definition at line 343 of file setting.cpp.
◆ toMap()
|
virtual |
Must be reimplemented, default implementationd does nothing.
Reimplemented in NetworkManager::AdslSetting, NetworkManager::BluetoothSetting, NetworkManager::BondSetting, NetworkManager::BridgePortSetting, NetworkManager::BridgeSetting, NetworkManager::CdmaSetting, NetworkManager::DcbSetting, NetworkManager::GenericSetting, NetworkManager::GsmSetting, NetworkManager::InfinibandSetting, NetworkManager::IpTunnelSetting, NetworkManager::Ipv4Setting, NetworkManager::Ipv6Setting, NetworkManager::MacsecSetting, NetworkManager::MatchSetting, NetworkManager::OlpcMeshSetting, NetworkManager::OvsBridgeSetting, NetworkManager::OvsInterfaceSetting, NetworkManager::OvsPatchSetting, NetworkManager::OvsPortSetting, NetworkManager::PppoeSetting, NetworkManager::PppSetting, NetworkManager::ProxySetting, NetworkManager::Security8021xSetting, NetworkManager::SerialSetting, NetworkManager::TcSetting, NetworkManager::TeamPortSetting, NetworkManager::TeamSetting, NetworkManager::TemplateSetting, NetworkManager::TunSetting, NetworkManager::UserSetting, NetworkManager::VlanSetting, NetworkManager::VpnSetting, NetworkManager::VxlanSetting, NetworkManager::WimaxSetting, NetworkManager::WiredSetting, NetworkManager::WireGuardSetting, NetworkManager::WirelessSecuritySetting, and NetworkManager::WirelessSetting.
Definition at line 281 of file setting.cpp.
◆ type()
NetworkManager::Setting::SettingType NetworkManager::Setting::type | ( | ) | const |
Definition at line 350 of file setting.cpp.
◆ typeAsString()
|
static |
Definition at line 67 of file setting.cpp.
◆ typeFromString()
|
static |
Definition at line 181 of file setting.cpp.
Member Data Documentation
◆ d_ptr
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.