NetworkManager::DnsConfiguration Class

class NetworkManager::DnsConfiguration

This class represents IP configuration. More...

Header: #include <NetworkManagerQt/DnsConfiguration>
CMake: find_package(KF6 REQUIRED COMPONENTS NetworkManagerQt)
target_link_libraries(mytarget PRIVATE KF6::NetworkManagerQt)

Public Functions

DnsConfiguration()
DnsConfiguration(const QStringList &searches, const QStringList &options, const QList<NetworkManager::DnsDomain> domains)
DnsConfiguration(const NetworkManager::DnsConfiguration &other)
~DnsConfiguration()
QList<NetworkManager::DnsDomain> domains() const
void fromMap(const QVariantMap &map)
QStringList options() const
QStringList searches() const
void setDomains(const QList<NetworkManager::DnsDomain> &domains)
void setOptions(const QStringList &list)
void setSearches(const QStringList &list)
QVariantMap toMap() const
NetworkManager::DnsConfiguration &operator=(const NetworkManager::DnsConfiguration &other)

Detailed Description

Member Function Documentation

DnsConfiguration::DnsConfiguration()

Constructs an empty DnsConfiguration object

DnsConfiguration::DnsConfiguration(const QStringList &searches, const QStringList &options, const QList<NetworkManager::DnsDomain> domains)

Constructs an initialized DnsConfiguration object

DnsConfiguration::DnsConfiguration(const NetworkManager::DnsConfiguration &other)

Constructs a DnsConfiguration object that is a copy of the object other.

[noexcept] DnsConfiguration::~DnsConfiguration()

Destroys this DnsConfiguration object.

QList<NetworkManager::DnsDomain> DnsConfiguration::domains() const

Returns the list of domains

See also setDomains().

void DnsConfiguration::fromMap(const QVariantMap &map)

De-marshall from a map

QStringList DnsConfiguration::options() const

Returns the list of resolver options

See also setOptions().

QStringList DnsConfiguration::searches() const

Returns the list of search domains

See also setSearches().

void DnsConfiguration::setDomains(const QList<NetworkManager::DnsDomain> &domains)

Sets the list of domains

See also domains().

void DnsConfiguration::setOptions(const QStringList &list)

Sets the list of resolver options

See also options().

void DnsConfiguration::setSearches(const QStringList &list)

Sets the list of search domains

See also searches().

QVariantMap DnsConfiguration::toMap() const

Marshall into a map

NetworkManager::DnsConfiguration &DnsConfiguration::operator=(const NetworkManager::DnsConfiguration &other)

Makes a copy of the DnsConfiguration object other.