NetworkManager::Setting

Search for usage in LXR

#include <setting.h>

Inheritance diagram for NetworkManager::Setting:

Public Types

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

 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

Base class for all kinds of setting.

Definition at line 29 of file setting.h.

Member Typedef Documentation

◆ List

Definition at line 33 of file setting.h.

◆ Ptr

◆ SecretFlags

Definition at line 81 of file setting.h.

Member Enumeration Documentation

◆ MacAddressRandomization

enum NetworkManager::Setting::MacAddressRandomization

Definition at line 83 of file setting.h.

◆ SecretFlagType

enum NetworkManager::Setting::SecretFlagType

Definition at line 75 of file setting.h.

◆ SettingType

enum NetworkManager::Setting::SettingType

Definition at line 34 of file setting.h.

Constructor & Destructor Documentation

◆ Setting() [1/2]

NetworkManager::Setting::Setting ( SettingType type)
explicit

Definition at line 258 of file setting.cpp.

◆ Setting() [2/2]

NetworkManager::Setting::Setting ( const Ptr & setting)
explicit

Definition at line 264 of file setting.cpp.

◆ ~Setting()

NetworkManager::Setting::~Setting ( )
virtual

Definition at line 271 of file setting.cpp.

Member Function Documentation

◆ fromMap()

◆ isNull()

bool NetworkManager::Setting::isNull ( ) const

Definition at line 336 of file setting.cpp.

◆ name()

◆ needSecrets()

QStringList NetworkManager::Setting::needSecrets ( bool requestNew = false) const
virtual

Definition at line 286 of file setting.cpp.

◆ secretsFromMap()

void NetworkManager::Setting::secretsFromMap ( const QVariantMap & map)
virtual

Definition at line 297 of file setting.cpp.

◆ secretsFromStringMap()

void NetworkManager::Setting::secretsFromStringMap ( const NMStringMap & map)
virtual

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

Parameters
mapto extract secrets from

Reimplemented in NetworkManager::VpnSetting, and NetworkManager::WireGuardSetting.

Definition at line 302 of file setting.cpp.

◆ secretsToMap()

QVariantMap NetworkManager::Setting::secretsToMap ( ) const
virtual

Definition at line 313 of file setting.cpp.

◆ secretsToStringMap()

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

◆ type()

NetworkManager::Setting::SettingType NetworkManager::Setting::type ( ) const

Definition at line 350 of file setting.cpp.

◆ typeAsString()

QString NetworkManager::Setting::typeAsString ( SettingType type)
static

Definition at line 67 of file setting.cpp.

◆ typeFromString()

NetworkManager::Setting::SettingType NetworkManager::Setting::typeFromString ( const QString & type)
static

Definition at line 181 of file setting.cpp.

Member Data Documentation

◆ d_ptr

SettingPrivate* NetworkManager::Setting::d_ptr
protected

Definition at line 139 of file setting.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 Fri Dec 6 2024 12:00:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.