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
}
 
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 58 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 64 of file connectionsettings.h.

◆ Mdns

enum NetworkManager::ConnectionSettings::Mdns

Definition at line 80 of file connectionsettings.h.

◆ Metered

enum NetworkManager::ConnectionSettings::Metered

Definition at line 72 of file connectionsettings.h.

Constructor & Destructor Documentation

◆ ConnectionSettings() [1/4]

NetworkManager::ConnectionSettings::ConnectionSettings ( )

Definition at line 457 of file connectionsettings.cpp.

◆ ConnectionSettings() [2/4]

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

Definition at line 462 of file connectionsettings.cpp.

◆ ConnectionSettings() [3/4]

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

Definition at line 468 of file connectionsettings.cpp.

◆ ConnectionSettings() [4/4]

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

Definition at line 496 of file connectionsettings.cpp.

◆ ~ConnectionSettings()

NetworkManager::ConnectionSettings::~ConnectionSettings ( )
virtual

Definition at line 502 of file connectionsettings.cpp.

Member Function Documentation

◆ addToPermissions()

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

Definition at line 827 of file connectionsettings.cpp.

◆ autoconnect()

bool NetworkManager::ConnectionSettings::autoconnect ( ) const

Definition at line 855 of file connectionsettings.cpp.

◆ autoconnectPriority()

int NetworkManager::ConnectionSettings::autoconnectPriority ( ) const

Definition at line 869 of file connectionsettings.cpp.

◆ autoconnectRetries()

int NetworkManager::ConnectionSettings::autoconnectRetries ( ) const

Definition at line 981 of file connectionsettings.cpp.

◆ autoconnectSlaves()

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

Definition at line 995 of file connectionsettings.cpp.

◆ connectionType()

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

Definition at line 820 of file connectionsettings.cpp.

◆ createNewUuid()

QString NetworkManager::ConnectionSettings::createNewUuid ( )
static

Definition at line 452 of file connectionsettings.cpp.

◆ fromMap()

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

Definition at line 509 of file connectionsettings.cpp.

◆ fromMeCard()

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

Definition at line 621 of file connectionsettings.cpp.

◆ gatewayPingTimeout()

quint32 NetworkManager::ConnectionSettings::gatewayPingTimeout ( ) const

Definition at line 974 of file connectionsettings.cpp.

◆ id()

QString NetworkManager::ConnectionSettings::id ( ) const

Definition at line 777 of file connectionsettings.cpp.

◆ interfaceName()

QString NetworkManager::ConnectionSettings::interfaceName ( ) const

Definition at line 805 of file connectionsettings.cpp.

◆ isSlave()

bool NetworkManager::ConnectionSettings::isSlave ( ) const

Definition at line 918 of file connectionsettings.cpp.

◆ lldp()

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

Definition at line 1009 of file connectionsettings.cpp.

◆ master()

QString NetworkManager::ConnectionSettings::master ( ) const

Definition at line 932 of file connectionsettings.cpp.

◆ mdns()

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

Definition at line 1037 of file connectionsettings.cpp.

◆ metered()

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

Definition at line 1023 of file connectionsettings.cpp.

◆ name()

QString NetworkManager::ConnectionSettings::name ( ) const

Definition at line 763 of file connectionsettings.cpp.

◆ permissions()

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

Definition at line 841 of file connectionsettings.cpp.

◆ readOnly()

bool NetworkManager::ConnectionSettings::readOnly ( ) const

Definition at line 897 of file connectionsettings.cpp.

◆ secondaries()

QStringList NetworkManager::ConnectionSettings::secondaries ( ) const

Definition at line 960 of file connectionsettings.cpp.

◆ setAutoconnect()

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

Definition at line 848 of file connectionsettings.cpp.

◆ setAutoconnectPriority()

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

Definition at line 862 of file connectionsettings.cpp.

◆ setAutoconnectRetries()

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

Definition at line 988 of file connectionsettings.cpp.

◆ setAutoconnectSlaves()

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

Definition at line 1002 of file connectionsettings.cpp.

◆ setConnectionType()

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

Definition at line 812 of file connectionsettings.cpp.

◆ setGatewayPingTimeout()

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

Definition at line 967 of file connectionsettings.cpp.

◆ setId()

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

Definition at line 770 of file connectionsettings.cpp.

◆ setInterfaceName()

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

Definition at line 798 of file connectionsettings.cpp.

◆ setLldp()

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

Definition at line 1016 of file connectionsettings.cpp.

◆ setMaster()

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

Definition at line 925 of file connectionsettings.cpp.

◆ setMdns()

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

Definition at line 1044 of file connectionsettings.cpp.

◆ setMetered()

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

Definition at line 1030 of file connectionsettings.cpp.

◆ setPermissions()

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

Definition at line 834 of file connectionsettings.cpp.

◆ setReadOnly()

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

Definition at line 890 of file connectionsettings.cpp.

◆ setSecondaries()

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

Definition at line 953 of file connectionsettings.cpp.

◆ setSlaveType()

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

Definition at line 939 of file connectionsettings.cpp.

◆ setStableId()

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

Definition at line 1058 of file connectionsettings.cpp.

◆ setTimestamp()

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

Definition at line 876 of file connectionsettings.cpp.

◆ setting() [1/2]

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

Definition at line 1077 of file connectionsettings.cpp.

◆ setting() [2/2]

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

Definition at line 1065 of file connectionsettings.cpp.

◆ settings()

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

Definition at line 1082 of file connectionsettings.cpp.

◆ setUuid()

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

Definition at line 784 of file connectionsettings.cpp.

◆ setZone()

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

Definition at line 904 of file connectionsettings.cpp.

◆ slaveType()

QString NetworkManager::ConnectionSettings::slaveType ( ) const

Definition at line 946 of file connectionsettings.cpp.

◆ stableId()

QString NetworkManager::ConnectionSettings::stableId ( ) const

Definition at line 1051 of file connectionsettings.cpp.

◆ timestamp()

QDateTime NetworkManager::ConnectionSettings::timestamp ( ) const

Definition at line 883 of file connectionsettings.cpp.

◆ toMap()

NMVariantMapMap NetworkManager::ConnectionSettings::toMap ( ) const

Definition at line 665 of file connectionsettings.cpp.

◆ typeAsString()

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

Definition at line 383 of file connectionsettings.cpp.

◆ typeFromString()

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

Definition at line 336 of file connectionsettings.cpp.

◆ uuid()

QString NetworkManager::ConnectionSettings::uuid ( ) const

Definition at line 791 of file connectionsettings.cpp.

◆ zone()

QString NetworkManager::ConnectionSettings::zone ( ) const

Definition at line 911 of file connectionsettings.cpp.

Member Data Documentation

◆ d_ptr

ConnectionSettingsPrivate* NetworkManager::ConnectionSettings::d_ptr
protected

Definition at line 173 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 Fri Jun 14 2024 12:00:32 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.