NetworkManager::WireGuardSetting

Search for usage in LXR

NetworkManager::WireGuardSetting Class Reference

#include <wireguardsetting.h>

Inheritance diagram for NetworkManager::WireGuardSetting:

Public Types

typedef QList< PtrList
 
typedef QSharedPointer< WireGuardSettingPtr
 
- Public Types inherited from NetworkManager::Setting
typedef QList< PtrList
 
enum  MacAddressRandomization { MacAddressRandomizationDefault = 0 , MacAddressRandomizationNever , MacAddressRandomizationAlways }
 
typedef QSharedPointer< SettingPtr
 
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

◆ Ptr

Constructor & Destructor Documentation

◆ WireGuardSetting() [1/2]

NetworkManager::WireGuardSetting::WireGuardSetting ( )

Definition at line 38 of file wireguardsetting.cpp.

◆ WireGuardSetting() [2/2]

NetworkManager::WireGuardSetting::WireGuardSetting ( const Ptr & other)
explicit

Definition at line 44 of file wireguardsetting.cpp.

◆ ~WireGuardSetting()

NetworkManager::WireGuardSetting::~WireGuardSetting ( )
override

Definition at line 57 of file wireguardsetting.cpp.

Member Function Documentation

◆ fromMap()

void NetworkManager::WireGuardSetting::fromMap ( const QVariantMap & map)
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()

QString NetworkManager::WireGuardSetting::name ( ) const
overridevirtual

Must be reimplemented, default implementationd does nothing.

Reimplemented from NetworkManager::Setting.

Definition at line 62 of file wireguardsetting.cpp.

◆ needSecrets()

QStringList NetworkManager::WireGuardSetting::needSecrets ( bool requestNew = false) const
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()

void NetworkManager::WireGuardSetting::secretsFromMap ( const QVariantMap & secrets)
overridevirtual

Reimplemented from NetworkManager::Setting.

Definition at line 167 of file wireguardsetting.cpp.

◆ secretsFromStringMap()

void NetworkManager::WireGuardSetting::secretsFromStringMap ( const NMStringMap & map)
overridevirtual

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

Parameters
mapto extract secrets from

Reimplemented from NetworkManager::Setting.

Definition at line 219 of file wireguardsetting.cpp.

◆ secretsToMap()

QVariantMap NetworkManager::WireGuardSetting::secretsToMap ( ) const
overridevirtual

Reimplemented from NetworkManager::Setting.

Definition at line 192 of file wireguardsetting.cpp.

◆ secretsToStringMap()

NMStringMap NetworkManager::WireGuardSetting::secretsToStringMap ( ) const
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()

QVariantMap NetworkManager::WireGuardSetting::toMap ( ) const
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

WireGuardSettingPrivate* NetworkManager::WireGuardSetting::d_ptr
protected

Definition at line 73 of file wireguardsetting.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.