NetworkManager::WireGuardSetting
#include <wireguardsetting.h>
Public Types | |
typedef QList< Ptr > | List |
typedef QSharedPointer< WireGuardSetting > | 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 | |
WireGuardSetting (const Ptr &other) | |
void | fromMap (const QVariantMap &setting) override |
quint32 | fwmark () const |
quint32 | listenPort () const |
quint32 | mtu () const |
QString | name () const override |
QStringList | needSecrets (bool requestNew=false) const override |
bool | peerRoutes () const |
NMVariantMapList | peers () const |
QString | privateKey () const |
SecretFlags | privateKeyFlags () const |
void | secretsFromMap (const QVariantMap &secrets) override |
void | secretsFromStringMap (const NMStringMap &map) override |
QVariantMap | secretsToMap () const override |
NMStringMap | secretsToStringMap () const override |
void | setFwmark (quint32 fwmark) |
void | setListenPort (quint32 port) |
void | setMtu (quint32 mtu) |
void | setPeerRoutes (bool peerRoutes) |
void | setPeers (const NMVariantMapList &peers) |
void | setPrivateKey (const QString &key) |
void | setPrivateKeyFlags (SecretFlags flags) |
QVariantMap | toMap () const override |
Public Member Functions inherited from NetworkManager::Setting | |
Setting (const Ptr &setting) | |
Setting (SettingType type) | |
bool | isNull () const |
void | setInitialized (bool initialized) |
void | setType (SettingType type) |
SettingType | type () const |
Protected Attributes | |
WireGuardSettingPrivate * | 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 generic setting.
Definition at line 22 of file wireguardsetting.h.
Member Typedef Documentation
◆ List
Definition at line 26 of file wireguardsetting.h.
◆ Ptr
Definition at line 25 of file wireguardsetting.h.
Constructor & Destructor Documentation
◆ WireGuardSetting() [1/2]
NetworkManager::WireGuardSetting::WireGuardSetting | ( | ) |
Definition at line 38 of file wireguardsetting.cpp.
◆ WireGuardSetting() [2/2]
|
explicit |
Definition at line 44 of file wireguardsetting.cpp.
◆ ~WireGuardSetting()
|
override |
Definition at line 57 of file wireguardsetting.cpp.
Member Function Documentation
◆ fromMap()
|
overridevirtual |
Must be reimplemented, default implementation does nothing.
Reimplemented from NetworkManager::Setting.
Definition at line 309 of file wireguardsetting.cpp.
◆ fwmark()
quint32 NetworkManager::WireGuardSetting::fwmark | ( | ) | const |
Definition at line 69 of file wireguardsetting.cpp.
◆ listenPort()
quint32 NetworkManager::WireGuardSetting::listenPort | ( | ) | const |
Definition at line 83 of file wireguardsetting.cpp.
◆ mtu()
quint32 NetworkManager::WireGuardSetting::mtu | ( | ) | const |
Definition at line 97 of file wireguardsetting.cpp.
◆ name()
|
overridevirtual |
Must be reimplemented, default implementationd does nothing.
Reimplemented from NetworkManager::Setting.
Definition at line 62 of file wireguardsetting.cpp.
◆ needSecrets()
|
overridevirtual |
Reimplemented from NetworkManager::Setting.
Definition at line 277 of file wireguardsetting.cpp.
◆ peerRoutes()
bool NetworkManager::WireGuardSetting::peerRoutes | ( | ) | const |
Definition at line 111 of file wireguardsetting.cpp.
◆ peers()
NMVariantMapList NetworkManager::WireGuardSetting::peers | ( | ) | const |
Definition at line 125 of file wireguardsetting.cpp.
◆ privateKey()
QString NetworkManager::WireGuardSetting::privateKey | ( | ) | const |
Definition at line 139 of file wireguardsetting.cpp.
◆ privateKeyFlags()
NetworkManager::Setting::SecretFlags NetworkManager::WireGuardSetting::privateKeyFlags | ( | ) | const |
Definition at line 153 of file wireguardsetting.cpp.
◆ secretsFromMap()
|
overridevirtual |
Reimplemented from NetworkManager::Setting.
Definition at line 167 of file wireguardsetting.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 219 of file wireguardsetting.cpp.
◆ secretsToMap()
|
overridevirtual |
Reimplemented from NetworkManager::Setting.
Definition at line 192 of file wireguardsetting.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 249 of file wireguardsetting.cpp.
◆ setFwmark()
void NetworkManager::WireGuardSetting::setFwmark | ( | quint32 | fwmark | ) |
Definition at line 76 of file wireguardsetting.cpp.
◆ setListenPort()
void NetworkManager::WireGuardSetting::setListenPort | ( | quint32 | port | ) |
Definition at line 90 of file wireguardsetting.cpp.
◆ setMtu()
void NetworkManager::WireGuardSetting::setMtu | ( | quint32 | mtu | ) |
Definition at line 104 of file wireguardsetting.cpp.
◆ setPeerRoutes()
void NetworkManager::WireGuardSetting::setPeerRoutes | ( | bool | peerRoutes | ) |
Definition at line 118 of file wireguardsetting.cpp.
◆ setPeers()
void NetworkManager::WireGuardSetting::setPeers | ( | const NMVariantMapList & | peers | ) |
Definition at line 132 of file wireguardsetting.cpp.
◆ setPrivateKey()
void NetworkManager::WireGuardSetting::setPrivateKey | ( | const QString & | key | ) |
Definition at line 146 of file wireguardsetting.cpp.
◆ setPrivateKeyFlags()
void NetworkManager::WireGuardSetting::setPrivateKeyFlags | ( | SecretFlags | flags | ) |
Definition at line 160 of file wireguardsetting.cpp.
◆ toMap()
|
overridevirtual |
Must be reimplemented, default implementationd does nothing.
Reimplemented from NetworkManager::Setting.
Definition at line 340 of file wireguardsetting.cpp.
Member Data Documentation
◆ d_ptr
|
protected |
Definition at line 73 of file wireguardsetting.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.