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 Function Documentation

◆ fromMap()

◆ name()

◆ secretsFromStringMap()

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

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

mapto extract secrets from

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

Definition at line 302 of file setting.cpp.

◆ secretsToStringMap()

NMStringMap NetworkManager::Setting::secretsToStringMap ( ) const

secretsToStringMap is a convenience function to get the secrets to map of strings.

string map with current secrets

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

Definition at line 318 of file setting.cpp.

◆ toMap()

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 04:06:37 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.