NetworkManager::VpnSetting
#include <vpnsetting.h>
Public Types | |
typedef QList< Ptr > | List |
typedef QSharedPointer< VpnSetting > | Ptr |
Public Types inherited from NetworkManager::Setting | |
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 | |
VpnSetting (const Ptr &other) | |
NMStringMap | data () const |
void | fromMap (const QVariantMap &setting) override |
QString | name () const override |
bool | persistent () const |
NMStringMap | secrets () const |
void | secretsFromMap (const QVariantMap &secrets) override |
void | secretsFromStringMap (const NMStringMap &map) override |
QVariantMap | secretsToMap () const override |
NMStringMap | secretsToStringMap () const override |
QString | serviceType () const |
void | setData (const NMStringMap &data) |
void | setPersistent (bool persistent) |
void | setSecrets (const NMStringMap &secrets) |
void | setServiceType (const QString &type) |
void | setTimeout (uint timeout) |
void | setUsername (const QString &username) |
uint | timeout () const |
QVariantMap | toMap () const override |
QString | username () const |
Public Member Functions inherited from NetworkManager::Setting | |
Setting (const Ptr &setting) | |
Setting (SettingType type) | |
bool | isNull () const |
virtual QStringList | needSecrets (bool requestNew=false) const |
void | setInitialized (bool initialized) |
void | setType (SettingType type) |
SettingType | type () const |
Protected Attributes | |
VpnSettingPrivate * | d_ptr |
Protected Attributes inherited from NetworkManager::Setting | |
SettingPrivate * | d_ptr |
Additional Inherited Members | |
Static Public Member Functions inherited from NetworkManager::Setting | |
static QString | typeAsString (SettingType type) |
static SettingType | typeFromString (const QString &type) |
Detailed Description
Represents vpn setting.
Definition at line 22 of file vpnsetting.h.
Member Typedef Documentation
◆ List
Definition at line 26 of file vpnsetting.h.
◆ Ptr
Definition at line 25 of file vpnsetting.h.
Constructor & Destructor Documentation
◆ VpnSetting() [1/2]
NetworkManager::VpnSetting::VpnSetting | ( | ) |
Definition at line 18 of file vpnsetting.cpp.
◆ VpnSetting() [2/2]
|
explicit |
Definition at line 24 of file vpnsetting.cpp.
◆ ~VpnSetting()
|
override |
Definition at line 36 of file vpnsetting.cpp.
Member Function Documentation
◆ data()
NMStringMap NetworkManager::VpnSetting::data | ( | ) | const |
Definition at line 111 of file vpnsetting.cpp.
◆ fromMap()
|
overridevirtual |
Must be reimplemented, default implementation does nothing.
Reimplemented from NetworkManager::Setting.
Definition at line 150 of file vpnsetting.cpp.
◆ name()
|
overridevirtual |
Must be reimplemented, default implementationd does nothing.
Reimplemented from NetworkManager::Setting.
Definition at line 41 of file vpnsetting.cpp.
◆ persistent()
bool NetworkManager::VpnSetting::persistent | ( | ) | const |
Definition at line 48 of file vpnsetting.cpp.
◆ secrets()
NMStringMap NetworkManager::VpnSetting::secrets | ( | ) | const |
Definition at line 125 of file vpnsetting.cpp.
◆ secretsFromMap()
|
overridevirtual |
Reimplemented from NetworkManager::Setting.
Definition at line 132 of file vpnsetting.cpp.
◆ secretsFromStringMap()
|
overridevirtual |
secretsFromStringMap is a convenience function to set the secrets from a map of strings.
- Parameters
-
map to extract secrets from
Reimplemented from NetworkManager::Setting.
Definition at line 203 of file vpnsetting.cpp.
◆ secretsToMap()
|
overridevirtual |
Reimplemented from NetworkManager::Setting.
Definition at line 139 of file vpnsetting.cpp.
◆ secretsToStringMap()
|
overridevirtual |
secretsToStringMap is a convenience function to get the secrets to map of strings.
- Returns
- string map with current secrets
Reimplemented from NetworkManager::Setting.
Definition at line 220 of file vpnsetting.cpp.
◆ serviceType()
QString NetworkManager::VpnSetting::serviceType | ( | ) | const |
Definition at line 83 of file vpnsetting.cpp.
◆ setData()
void NetworkManager::VpnSetting::setData | ( | const NMStringMap & | data | ) |
Definition at line 104 of file vpnsetting.cpp.
◆ setPersistent()
void NetworkManager::VpnSetting::setPersistent | ( | bool | persistent | ) |
Definition at line 55 of file vpnsetting.cpp.
◆ setSecrets()
void NetworkManager::VpnSetting::setSecrets | ( | const NMStringMap & | secrets | ) |
Definition at line 118 of file vpnsetting.cpp.
◆ setServiceType()
void NetworkManager::VpnSetting::setServiceType | ( | const QString & | type | ) |
Definition at line 76 of file vpnsetting.cpp.
◆ setTimeout()
void NetworkManager::VpnSetting::setTimeout | ( | uint | timeout | ) |
Definition at line 69 of file vpnsetting.cpp.
◆ setUsername()
void NetworkManager::VpnSetting::setUsername | ( | const QString & | username | ) |
Definition at line 90 of file vpnsetting.cpp.
◆ timeout()
uint NetworkManager::VpnSetting::timeout | ( | ) | const |
Definition at line 62 of file vpnsetting.cpp.
◆ toMap()
|
overridevirtual |
Must be reimplemented, default implementationd does nothing.
Reimplemented from NetworkManager::Setting.
Definition at line 177 of file vpnsetting.cpp.
◆ username()
QString NetworkManager::VpnSetting::username | ( | ) | const |
Definition at line 97 of file vpnsetting.cpp.
Member Data Documentation
◆ d_ptr
|
protected |
Definition at line 62 of file vpnsetting.h.
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.