NetworkManager::IpConfig
#include <ipconfig.h>
Public Member Functions | |
IpConfig () | |
IpConfig (const IpAddresses &addresses, const QList< QHostAddress > &nameservers, const QStringList &domains, const IpRoutes &routes) | |
IpConfig (const IpConfig &other) | |
~IpConfig () | |
NetworkManager::IpAddresses | addresses () const |
QStringList | dnsOptions () const |
QStringList | domains () const |
QString | gateway () const |
bool | isValid () const |
QList< QHostAddress > | nameservers () const |
IpConfig & | operator= (const IpConfig &other) |
IpRoutes | routes () const |
QStringList | searches () const |
void | setIPv4Path (const QString &path) |
void | setIPv6Path (const QString &path) |
Detailed Description
This class represents IP configuration.
Definition at line 27 of file ipconfig.h.
Constructor & Destructor Documentation
◆ IpConfig() [1/3]
NetworkManager::IpConfig::IpConfig | ( | const IpAddresses & | addresses, |
const QList< QHostAddress > & | nameservers, | ||
const QStringList & | domains, | ||
const IpRoutes & | routes ) |
Constructs an IP config object with a list of addresses
, nameservers
, domains
and routes
.
Definition at line 44 of file ipconfig.cpp.
◆ IpConfig() [2/3]
NetworkManager::IpConfig::IpConfig | ( | ) |
Constructs an empty IpConfig object.
Definition at line 49 of file ipconfig.cpp.
◆ ~IpConfig()
NetworkManager::IpConfig::~IpConfig | ( | ) |
Destroys this IpConfig object.
Definition at line 250 of file ipconfig.cpp.
◆ IpConfig() [3/3]
NetworkManager::IpConfig::IpConfig | ( | const IpConfig & | other | ) |
Constructs an IpConfig object that is a copy of the object other
.
Definition at line 54 of file ipconfig.cpp.
Member Function Documentation
◆ addresses()
NetworkManager::IpAddresses NetworkManager::IpConfig::addresses | ( | ) | const |
Returns a list of IP addresses and gateway related to this configuration.
Use IpAddress::ip() to access the IP address and IpAddress::gateway() to access the gateway address.
Definition at line 255 of file ipconfig.cpp.
◆ dnsOptions()
QStringList NetworkManager::IpConfig::dnsOptions | ( | ) | const |
Returns a list of DNS options that modify the behaviour of the DNS resolver.
- Since
- 5.14.0
Definition at line 285 of file ipconfig.cpp.
◆ domains()
QStringList NetworkManager::IpConfig::domains | ( | ) | const |
Returns a list of domains related to this configuration.
Definition at line 270 of file ipconfig.cpp.
◆ gateway()
QString NetworkManager::IpConfig::gateway | ( | ) | const |
◆ isValid()
bool NetworkManager::IpConfig::isValid | ( | ) | const |
Returns false if the list of IP addresses is empty.
Definition at line 300 of file ipconfig.cpp.
◆ nameservers()
QList< QHostAddress > NetworkManager::IpConfig::nameservers | ( | ) | const |
Returns a list of nameservers related to this configuration.
Definition at line 265 of file ipconfig.cpp.
◆ operator=()
NetworkManager::IpConfig & NetworkManager::IpConfig::operator= | ( | const IpConfig & | other | ) |
Makes a copy of the IpConfig object other
.
Definition at line 290 of file ipconfig.cpp.
◆ routes()
QList< NetworkManager::IpRoute > NetworkManager::IpConfig::routes | ( | ) | const |
Returns a list of static routes (not the default gateway) related to this configuration.
Use addresses() to retrieve the default gateway.
Definition at line 275 of file ipconfig.cpp.
◆ searches()
QStringList NetworkManager::IpConfig::searches | ( | ) | const |
◆ setIPv4Path()
void NetworkManager::IpConfig::setIPv4Path | ( | const QString & | path | ) |
Configure this class using the information on the following path
.
Definition at line 60 of file ipconfig.cpp.
◆ setIPv6Path()
void NetworkManager::IpConfig::setIPv6Path | ( | const QString & | path | ) |
Configure this class using the information on the following path
.
Definition at line 147 of file ipconfig.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:59:06 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.