NetworkManager::ConnectionSettings

Search for usage in LXR

#include <connectionsettings.h>

Public Types

enum  AutoconnectSlaves { SlavesDefault = -1 , DoNotConnectSlaves = 0 , ConnectAllSlaves = 1 }
 
enum  ConnectionType {
  Unknown = 0 , Adsl , Bluetooth , Bond ,
  Bridge , Cdma , Gsm , Infiniband ,
  OLPCMesh , Pppoe , Vlan , Vpn ,
  Wimax , Wired , Wireless , Team ,
  Generic , Tun , IpTunnel , WireGuard ,
  Loopback
}
 
typedef QList< PtrList
 
enum  Lldp { LldpDefault = -1 , LldpDisable = 0 , LldpEnableRx = 1 }
 
enum  Mdns { MdnsDefault = -1 , MdnsNo = 0 , MdnsResolve = 1 , MdnsResolveAndRespond = 2 }
 
enum  Metered {
  MeteredUnknown = 0 , MeteredYes = 1 , MeteredNo = 2 , MeteredGuessYes = 3 ,
  MeteredGuessNo = 4
}
 
typedef QSharedPointer< ConnectionSettingsPtr
 

Public Member Functions

 ConnectionSettings (ConnectionType type, NMBluetoothCapabilities bt_cap=NM_BT_CAPABILITY_DUN)
 
 ConnectionSettings (const ConnectionSettings::Ptr &other)
 
 ConnectionSettings (const NMVariantMapMap &map)
 
void addToPermissions (const QString &user, const QString &type)
 
bool autoconnect () const
 
int autoconnectPriority () const
 
int autoconnectRetries () const
 
AutoconnectSlaves autoconnectSlaves () const
 
ConnectionType connectionType () const
 
void fromMap (const NMVariantMapMap &map)
 
void fromMeCard (const QVariantMap &map)
 
quint32 gatewayPingTimeout () const
 
QString id () const
 
QString interfaceName () const
 
bool isSlave () const
 
Lldp lldp () const
 
QString master () const
 
Mdns mdns () const
 
Metered metered () const
 
QString name () const
 
QHash< QString, QStringpermissions () const
 
bool readOnly () const
 
QStringList secondaries () const
 
void setAutoconnect (bool autoconnect)
 
void setAutoconnectPriority (int priority)
 
void setAutoconnectRetries (int retries)
 
void setAutoconnectSlaves (AutoconnectSlaves autoconnectSlaves)
 
void setConnectionType (ConnectionType type, NMBluetoothCapabilities bt_cap=NM_BT_CAPABILITY_DUN)
 
void setGatewayPingTimeout (quint32 timeout)
 
void setId (const QString &id)
 
void setInterfaceName (const QString &interfaceName)
 
void setLldp (Lldp lldp)
 
void setMaster (const QString &master)
 
void setMdns (Mdns mdns)
 
void setMetered (Metered metered)
 
void setPermissions (const QHash< QString, QString > &perm)
 
void setReadOnly (bool readonly)
 
void setSecondaries (const QStringList &secondaries)
 
void setSlaveType (const QString &type)
 
void setStableId (const QString &stableId)
 
void setTimestamp (const QDateTime &timestamp)
 
Setting::Ptr setting (const QString &type) const
 
Setting::Ptr setting (Setting::SettingType type) const
 
Setting::List settings () const
 
void setUuid (const QString &uuid)
 
void setZone (const QString &zone)
 
QString slaveType () const
 
QString stableId () const
 
QDateTime timestamp () const
 
NMVariantMapMap toMap () const
 
QString uuid () const
 
QString zone () const
 

Static Public Member Functions

static QString createNewUuid ()
 
static QString typeAsString (const ConnectionType type)
 
static ConnectionType typeFromString (const QString &typeString)
 

Protected Attributes

ConnectionSettingsPrivate * d_ptr
 

Detailed Description

Represents collection of all connection settings.

Definition at line 29 of file connectionsettings.h.

Member Typedef Documentation

◆ List

◆ Ptr

Member Enumeration Documentation

◆ AutoconnectSlaves

enum NetworkManager::ConnectionSettings::AutoconnectSlaves

Definition at line 59 of file connectionsettings.h.

◆ ConnectionType

enum NetworkManager::ConnectionSettings::ConnectionType

Definition at line 35 of file connectionsettings.h.

◆ Lldp

enum NetworkManager::ConnectionSettings::Lldp

Definition at line 65 of file connectionsettings.h.

◆ Mdns

enum NetworkManager::ConnectionSettings::Mdns

Definition at line 81 of file connectionsettings.h.

◆ Metered

enum NetworkManager::ConnectionSettings::Metered

Definition at line 73 of file connectionsettings.h.

Constructor & Destructor Documentation

◆ ConnectionSettings() [1/4]

NetworkManager::ConnectionSettings::ConnectionSettings ( )

Definition at line 473 of file connectionsettings.cpp.

◆ ConnectionSettings() [2/4]

NetworkManager::ConnectionSettings::ConnectionSettings ( ConnectionType type,
NMBluetoothCapabilities bt_cap = NM_BT_CAPABILITY_DUN )
explicit

Definition at line 478 of file connectionsettings.cpp.

◆ ConnectionSettings() [3/4]

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

Definition at line 484 of file connectionsettings.cpp.

◆ ConnectionSettings() [4/4]

NetworkManager::ConnectionSettings::ConnectionSettings ( const NMVariantMapMap & map)
explicit

Definition at line 512 of file connectionsettings.cpp.

◆ ~ConnectionSettings()

NetworkManager::ConnectionSettings::~ConnectionSettings ( )
virtual

Definition at line 518 of file connectionsettings.cpp.

Member Function Documentation

◆ addToPermissions()

void NetworkManager::ConnectionSettings::addToPermissions ( const QString & user,
const QString & type )

Definition at line 847 of file connectionsettings.cpp.

◆ autoconnect()

bool NetworkManager::ConnectionSettings::autoconnect ( ) const

Definition at line 875 of file connectionsettings.cpp.

◆ autoconnectPriority()

int NetworkManager::ConnectionSettings::autoconnectPriority ( ) const

Definition at line 889 of file connectionsettings.cpp.

◆ autoconnectRetries()

int NetworkManager::ConnectionSettings::autoconnectRetries ( ) const

Definition at line 1001 of file connectionsettings.cpp.

◆ autoconnectSlaves()

NetworkManager::ConnectionSettings::AutoconnectSlaves NetworkManager::ConnectionSettings::autoconnectSlaves ( ) const

Definition at line 1015 of file connectionsettings.cpp.

◆ connectionType()

NetworkManager::ConnectionSettings::ConnectionType NetworkManager::ConnectionSettings::connectionType ( ) const

Definition at line 840 of file connectionsettings.cpp.

◆ createNewUuid()

QString NetworkManager::ConnectionSettings::createNewUuid ( )
static

Definition at line 468 of file connectionsettings.cpp.

◆ fromMap()

void NetworkManager::ConnectionSettings::fromMap ( const NMVariantMapMap & map)

Definition at line 525 of file connectionsettings.cpp.

◆ fromMeCard()

void NetworkManager::ConnectionSettings::fromMeCard ( const QVariantMap & map)

Definition at line 637 of file connectionsettings.cpp.

◆ gatewayPingTimeout()

quint32 NetworkManager::ConnectionSettings::gatewayPingTimeout ( ) const

Definition at line 994 of file connectionsettings.cpp.

◆ id()

QString NetworkManager::ConnectionSettings::id ( ) const

Definition at line 797 of file connectionsettings.cpp.

◆ interfaceName()

QString NetworkManager::ConnectionSettings::interfaceName ( ) const

Definition at line 825 of file connectionsettings.cpp.

◆ isSlave()

bool NetworkManager::ConnectionSettings::isSlave ( ) const

Definition at line 938 of file connectionsettings.cpp.

◆ lldp()

NetworkManager::ConnectionSettings::Lldp NetworkManager::ConnectionSettings::lldp ( ) const

Definition at line 1029 of file connectionsettings.cpp.

◆ master()

QString NetworkManager::ConnectionSettings::master ( ) const

Definition at line 952 of file connectionsettings.cpp.

◆ mdns()

NetworkManager::ConnectionSettings::Mdns NetworkManager::ConnectionSettings::mdns ( ) const

Definition at line 1057 of file connectionsettings.cpp.

◆ metered()

NetworkManager::ConnectionSettings::Metered NetworkManager::ConnectionSettings::metered ( ) const

Definition at line 1043 of file connectionsettings.cpp.

◆ name()

QString NetworkManager::ConnectionSettings::name ( ) const

Definition at line 783 of file connectionsettings.cpp.

◆ permissions()

QHash< QString, QString > NetworkManager::ConnectionSettings::permissions ( ) const

Definition at line 861 of file connectionsettings.cpp.

◆ readOnly()

bool NetworkManager::ConnectionSettings::readOnly ( ) const

Definition at line 917 of file connectionsettings.cpp.

◆ secondaries()

QStringList NetworkManager::ConnectionSettings::secondaries ( ) const

Definition at line 980 of file connectionsettings.cpp.

◆ setAutoconnect()

void NetworkManager::ConnectionSettings::setAutoconnect ( bool autoconnect)

Definition at line 868 of file connectionsettings.cpp.

◆ setAutoconnectPriority()

void NetworkManager::ConnectionSettings::setAutoconnectPriority ( int priority)

Definition at line 882 of file connectionsettings.cpp.

◆ setAutoconnectRetries()

void NetworkManager::ConnectionSettings::setAutoconnectRetries ( int retries)

Definition at line 1008 of file connectionsettings.cpp.

◆ setAutoconnectSlaves()

void NetworkManager::ConnectionSettings::setAutoconnectSlaves ( AutoconnectSlaves autoconnectSlaves)

Definition at line 1022 of file connectionsettings.cpp.

◆ setConnectionType()

void NetworkManager::ConnectionSettings::setConnectionType ( ConnectionType type,
NMBluetoothCapabilities bt_cap = NM_BT_CAPABILITY_DUN )

Definition at line 832 of file connectionsettings.cpp.

◆ setGatewayPingTimeout()

void NetworkManager::ConnectionSettings::setGatewayPingTimeout ( quint32 timeout)

Definition at line 987 of file connectionsettings.cpp.

◆ setId()

void NetworkManager::ConnectionSettings::setId ( const QString & id)

Definition at line 790 of file connectionsettings.cpp.

◆ setInterfaceName()

void NetworkManager::ConnectionSettings::setInterfaceName ( const QString & interfaceName)

Definition at line 818 of file connectionsettings.cpp.

◆ setLldp()

void NetworkManager::ConnectionSettings::setLldp ( Lldp lldp)

Definition at line 1036 of file connectionsettings.cpp.

◆ setMaster()

void NetworkManager::ConnectionSettings::setMaster ( const QString & master)

Definition at line 945 of file connectionsettings.cpp.

◆ setMdns()

void NetworkManager::ConnectionSettings::setMdns ( Mdns mdns)

Definition at line 1064 of file connectionsettings.cpp.

◆ setMetered()

void NetworkManager::ConnectionSettings::setMetered ( Metered metered)

Definition at line 1050 of file connectionsettings.cpp.

◆ setPermissions()

void NetworkManager::ConnectionSettings::setPermissions ( const QHash< QString, QString > & perm)

Definition at line 854 of file connectionsettings.cpp.

◆ setReadOnly()

void NetworkManager::ConnectionSettings::setReadOnly ( bool readonly)

Definition at line 910 of file connectionsettings.cpp.

◆ setSecondaries()

void NetworkManager::ConnectionSettings::setSecondaries ( const QStringList & secondaries)

Definition at line 973 of file connectionsettings.cpp.

◆ setSlaveType()

void NetworkManager::ConnectionSettings::setSlaveType ( const QString & type)

Definition at line 959 of file connectionsettings.cpp.

◆ setStableId()

void NetworkManager::ConnectionSettings::setStableId ( const QString & stableId)

Definition at line 1078 of file connectionsettings.cpp.

◆ setTimestamp()

void NetworkManager::ConnectionSettings::setTimestamp ( const QDateTime & timestamp)

Definition at line 896 of file connectionsettings.cpp.

◆ setting() [1/2]

NetworkManager::Setting::Ptr NetworkManager::ConnectionSettings::setting ( const QString & type) const

Definition at line 1097 of file connectionsettings.cpp.

◆ setting() [2/2]

NetworkManager::Setting::Ptr NetworkManager::ConnectionSettings::setting ( Setting::SettingType type) const

Definition at line 1085 of file connectionsettings.cpp.

◆ settings()

NetworkManager::Setting::List NetworkManager::ConnectionSettings::settings ( ) const

Definition at line 1102 of file connectionsettings.cpp.

◆ setUuid()

void NetworkManager::ConnectionSettings::setUuid ( const QString & uuid)

Definition at line 804 of file connectionsettings.cpp.

◆ setZone()

void NetworkManager::ConnectionSettings::setZone ( const QString & zone)

Definition at line 924 of file connectionsettings.cpp.

◆ slaveType()

QString NetworkManager::ConnectionSettings::slaveType ( ) const

Definition at line 966 of file connectionsettings.cpp.

◆ stableId()

QString NetworkManager::ConnectionSettings::stableId ( ) const

Definition at line 1071 of file connectionsettings.cpp.

◆ timestamp()

QDateTime NetworkManager::ConnectionSettings::timestamp ( ) const

Definition at line 903 of file connectionsettings.cpp.

◆ toMap()

NMVariantMapMap NetworkManager::ConnectionSettings::toMap ( ) const

Definition at line 685 of file connectionsettings.cpp.

◆ typeAsString()

QString NetworkManager::ConnectionSettings::typeAsString ( const ConnectionType type)
static

Definition at line 396 of file connectionsettings.cpp.

◆ typeFromString()

NetworkManager::ConnectionSettings::ConnectionType NetworkManager::ConnectionSettings::typeFromString ( const QString & typeString)
static

Definition at line 347 of file connectionsettings.cpp.

◆ uuid()

QString NetworkManager::ConnectionSettings::uuid ( ) const

Definition at line 811 of file connectionsettings.cpp.

◆ zone()

QString NetworkManager::ConnectionSettings::zone ( ) const

Definition at line 931 of file connectionsettings.cpp.

Member Data Documentation

◆ d_ptr

ConnectionSettingsPrivate* NetworkManager::ConnectionSettings::d_ptr
protected

Definition at line 174 of file connectionsettings.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 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.