NetworkManager::Ipv4Setting
#include <ipv4setting.h>
Public Types | |
enum | ConfigMethod { Automatic , LinkLocal , Manual , Shared , Disabled } |
typedef QList< Ptr > | List |
typedef QSharedPointer< Ipv4Setting > | Ptr |
Public Types inherited from NetworkManager::Setting | |
typedef QList< Ptr > | List |
enum | MacAddressRandomization { MacAddressRandomizationDefault = 0 , MacAddressRandomizationNever , MacAddressRandomizationAlways } |
typedef QSharedPointer< Setting > | Ptr |
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 | |
Ipv4Setting (const Ptr &other) | |
NMVariantMapList | addressData () const |
QList< NetworkManager::IpAddress > | addresses () const |
qint32 | dadTimeout () const |
QString | dhcpClientId () const |
QString | dhcpFqdn () const |
QString | dhcpHostname () const |
bool | dhcpSendHostname () const |
QList< QHostAddress > | dns () const |
QStringList | dnsOptions () const |
qint32 | dnsPriority () const |
QStringList | dnsSearch () const |
void | fromMap (const QVariantMap &setting) override |
QString | gateway () const |
bool | ignoreAutoDns () const |
bool | ignoreAutoRoutes () const |
bool | mayFail () const |
ConfigMethod | method () const |
QString | name () const override |
bool | neverDefault () const |
NMVariantMapList | routeData () const |
int | routeMetric () const |
QList< NetworkManager::IpRoute > | routes () const |
void | setAddressData (const NMVariantMapList &addressData) |
void | setAddresses (const QList< NetworkManager::IpAddress > &ipv4addresses) |
void | setDadTimeout (qint32 timeout) |
void | setDhcpClientId (const QString &id) |
void | setDhcpFqdn (const QString &fqdn) |
void | setDhcpHostname (const QString &hostname) |
void | setDhcpSendHostname (bool send) |
void | setDns (const QList< QHostAddress > &dns) |
void | setDnsOptions (const QStringList &options) |
void | setDnsPriority (qint32 priority) |
void | setDnsSearch (const QStringList &domains) |
void | setGateway (const QString &gateway) |
void | setIgnoreAutoDns (bool ignore) |
void | setIgnoreAutoRoutes (bool ignore) |
void | setMayFail (bool mayFail) |
void | setMethod (ConfigMethod method) |
void | setNeverDefault (bool neverDefault) |
void | setRouteData (const NMVariantMapList &routeData) |
void | setRouteMetric (int metric) |
void | setRoutes (const QList< NetworkManager::IpRoute > &ipv4routes) |
QVariantMap | toMap () const override |
Public Member Functions inherited from NetworkManager::Setting | |
Setting (const Ptr &setting) | |
Setting (SettingType type) | |
bool | isNull () 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) |
SettingType | type () const |
Protected Attributes | |
Ipv4SettingPrivate * | 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 ipv4 setting.
Definition at line 52 of file ipv4setting.h.
Member Typedef Documentation
◆ List
Definition at line 56 of file ipv4setting.h.
◆ Ptr
Definition at line 55 of file ipv4setting.h.
Member Enumeration Documentation
◆ ConfigMethod
enum NetworkManager::Ipv4Setting::ConfigMethod |
Definition at line 57 of file ipv4setting.h.
Constructor & Destructor Documentation
◆ Ipv4Setting() [1/2]
NetworkManager::Ipv4Setting::Ipv4Setting | ( | ) |
Definition at line 31 of file ipv4setting.cpp.
◆ Ipv4Setting() [2/2]
|
explicit |
Definition at line 37 of file ipv4setting.cpp.
◆ ~Ipv4Setting()
|
override |
Definition at line 62 of file ipv4setting.cpp.
Member Function Documentation
◆ addressData()
NMVariantMapList NetworkManager::Ipv4Setting::addressData | ( | ) | const |
Definition at line 333 of file ipv4setting.cpp.
◆ addresses()
QList< NetworkManager::IpAddress > NetworkManager::Ipv4Setting::addresses | ( | ) | const |
Definition at line 123 of file ipv4setting.cpp.
◆ dadTimeout()
qint32 NetworkManager::Ipv4Setting::dadTimeout | ( | ) | const |
Definition at line 263 of file ipv4setting.cpp.
◆ dhcpClientId()
QString NetworkManager::Ipv4Setting::dhcpClientId | ( | ) | const |
Definition at line 193 of file ipv4setting.cpp.
◆ dhcpFqdn()
QString NetworkManager::Ipv4Setting::dhcpFqdn | ( | ) | const |
Definition at line 277 of file ipv4setting.cpp.
◆ dhcpHostname()
QString NetworkManager::Ipv4Setting::dhcpHostname | ( | ) | const |
Definition at line 221 of file ipv4setting.cpp.
◆ dhcpSendHostname()
bool NetworkManager::Ipv4Setting::dhcpSendHostname | ( | ) | const |
Definition at line 207 of file ipv4setting.cpp.
◆ dns()
QList< QHostAddress > NetworkManager::Ipv4Setting::dns | ( | ) | const |
Definition at line 95 of file ipv4setting.cpp.
◆ dnsOptions()
QStringList NetworkManager::Ipv4Setting::dnsOptions | ( | ) | const |
Definition at line 291 of file ipv4setting.cpp.
◆ dnsPriority()
qint32 NetworkManager::Ipv4Setting::dnsPriority | ( | ) | const |
Definition at line 305 of file ipv4setting.cpp.
◆ dnsSearch()
QStringList NetworkManager::Ipv4Setting::dnsSearch | ( | ) | const |
Definition at line 109 of file ipv4setting.cpp.
◆ fromMap()
|
overridevirtual |
Must be reimplemented, default implementation does nothing.
Reimplemented from NetworkManager::Setting.
Definition at line 354 of file ipv4setting.cpp.
◆ gateway()
QString NetworkManager::Ipv4Setting::gateway | ( | ) | const |
Definition at line 319 of file ipv4setting.cpp.
◆ ignoreAutoDns()
bool NetworkManager::Ipv4Setting::ignoreAutoDns | ( | ) | const |
Definition at line 179 of file ipv4setting.cpp.
◆ ignoreAutoRoutes()
bool NetworkManager::Ipv4Setting::ignoreAutoRoutes | ( | ) | const |
Definition at line 165 of file ipv4setting.cpp.
◆ mayFail()
bool NetworkManager::Ipv4Setting::mayFail | ( | ) | const |
Definition at line 249 of file ipv4setting.cpp.
◆ method()
NetworkManager::Ipv4Setting::ConfigMethod NetworkManager::Ipv4Setting::method | ( | ) | const |
Definition at line 81 of file ipv4setting.cpp.
◆ name()
|
overridevirtual |
Must be reimplemented, default implementationd does nothing.
Reimplemented from NetworkManager::Setting.
Definition at line 67 of file ipv4setting.cpp.
◆ neverDefault()
bool NetworkManager::Ipv4Setting::neverDefault | ( | ) | const |
Definition at line 235 of file ipv4setting.cpp.
◆ routeData()
NMVariantMapList NetworkManager::Ipv4Setting::routeData | ( | ) | const |
Definition at line 347 of file ipv4setting.cpp.
◆ routeMetric()
int NetworkManager::Ipv4Setting::routeMetric | ( | ) | const |
Definition at line 151 of file ipv4setting.cpp.
◆ routes()
QList< NetworkManager::IpRoute > NetworkManager::Ipv4Setting::routes | ( | ) | const |
Definition at line 137 of file ipv4setting.cpp.
◆ setAddressData()
void NetworkManager::Ipv4Setting::setAddressData | ( | const NMVariantMapList & | addressData | ) |
Definition at line 326 of file ipv4setting.cpp.
◆ setAddresses()
void NetworkManager::Ipv4Setting::setAddresses | ( | const QList< NetworkManager::IpAddress > & | ipv4addresses | ) |
Definition at line 116 of file ipv4setting.cpp.
◆ setDadTimeout()
void NetworkManager::Ipv4Setting::setDadTimeout | ( | qint32 | timeout | ) |
Definition at line 256 of file ipv4setting.cpp.
◆ setDhcpClientId()
void NetworkManager::Ipv4Setting::setDhcpClientId | ( | const QString & | id | ) |
Definition at line 186 of file ipv4setting.cpp.
◆ setDhcpFqdn()
void NetworkManager::Ipv4Setting::setDhcpFqdn | ( | const QString & | fqdn | ) |
Definition at line 270 of file ipv4setting.cpp.
◆ setDhcpHostname()
void NetworkManager::Ipv4Setting::setDhcpHostname | ( | const QString & | hostname | ) |
Definition at line 214 of file ipv4setting.cpp.
◆ setDhcpSendHostname()
void NetworkManager::Ipv4Setting::setDhcpSendHostname | ( | bool | send | ) |
Definition at line 200 of file ipv4setting.cpp.
◆ setDns()
void NetworkManager::Ipv4Setting::setDns | ( | const QList< QHostAddress > & | dns | ) |
Definition at line 88 of file ipv4setting.cpp.
◆ setDnsOptions()
void NetworkManager::Ipv4Setting::setDnsOptions | ( | const QStringList & | options | ) |
Definition at line 284 of file ipv4setting.cpp.
◆ setDnsPriority()
void NetworkManager::Ipv4Setting::setDnsPriority | ( | qint32 | priority | ) |
Definition at line 298 of file ipv4setting.cpp.
◆ setDnsSearch()
void NetworkManager::Ipv4Setting::setDnsSearch | ( | const QStringList & | domains | ) |
Definition at line 102 of file ipv4setting.cpp.
◆ setGateway()
void NetworkManager::Ipv4Setting::setGateway | ( | const QString & | gateway | ) |
Definition at line 312 of file ipv4setting.cpp.
◆ setIgnoreAutoDns()
void NetworkManager::Ipv4Setting::setIgnoreAutoDns | ( | bool | ignore | ) |
Definition at line 172 of file ipv4setting.cpp.
◆ setIgnoreAutoRoutes()
void NetworkManager::Ipv4Setting::setIgnoreAutoRoutes | ( | bool | ignore | ) |
Definition at line 158 of file ipv4setting.cpp.
◆ setMayFail()
void NetworkManager::Ipv4Setting::setMayFail | ( | bool | mayFail | ) |
Definition at line 242 of file ipv4setting.cpp.
◆ setMethod()
void NetworkManager::Ipv4Setting::setMethod | ( | ConfigMethod | method | ) |
Definition at line 74 of file ipv4setting.cpp.
◆ setNeverDefault()
void NetworkManager::Ipv4Setting::setNeverDefault | ( | bool | neverDefault | ) |
Definition at line 228 of file ipv4setting.cpp.
◆ setRouteData()
void NetworkManager::Ipv4Setting::setRouteData | ( | const NMVariantMapList & | routeData | ) |
Definition at line 340 of file ipv4setting.cpp.
◆ setRouteMetric()
void NetworkManager::Ipv4Setting::setRouteMetric | ( | int | metric | ) |
Definition at line 144 of file ipv4setting.cpp.
◆ setRoutes()
void NetworkManager::Ipv4Setting::setRoutes | ( | const QList< NetworkManager::IpRoute > & | ipv4routes | ) |
Definition at line 130 of file ipv4setting.cpp.
◆ toMap()
|
overridevirtual |
Must be reimplemented, default implementationd does nothing.
Reimplemented from NetworkManager::Setting.
Definition at line 517 of file ipv4setting.cpp.
Member Data Documentation
◆ d_ptr
|
protected |
Definition at line 136 of file ipv4setting.h.
The documentation for this class was generated from the following files:
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.