ModemManager::IpConfig Class

class ModemManager::IpConfig

This class represents IP configuration. More...

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

Public Functions

IpConfig()
IpConfig(const ModemManager::IpConfig &other)
~IpConfig()
QString address() const
QString dns1() const
QString dns2() const
QString dns3() const
QString gateway() const
MMBearerIpMethod method() const
uint prefix() const
void setAddress(const QString &address)
void setDns1(const QString &dns1)
void setDns2(const QString &dns2)
void setDns3(const QString &dns3)
void setGateway(const QString &gateway)
void setMethod(MMBearerIpMethod method)
void setPrefix(uint prefix)
ModemManager::IpConfig &operator=(const ModemManager::IpConfig &other)

Detailed Description

Member Function Documentation

IpConfig::IpConfig()

Constructs an empty IP config object

IpConfig::IpConfig(const ModemManager::IpConfig &other)

Constructs an IpConfig object that is a copy of the object other.

[noexcept] IpConfig::~IpConfig()

Destroys this IpConfig object.

QString IpConfig::address() const

Returns the IP address

See also setAddress().

QString IpConfig::dns1() const

Returns the IP address of the first DNS server

See also setDns1().

QString IpConfig::dns2() const

Returns the IP address of the second DNS server

See also setDns2().

QString IpConfig::dns3() const

Returns the IP address of the third DNS server

See also setDns3().

QString IpConfig::gateway() const

Returns the IP address of the default gateway

See also setGateway().

MMBearerIpMethod IpConfig::method() const

Returns the MMBearerIpMethod

See also setMethod().

uint IpConfig::prefix() const

Returns the numeric CIDR network prefix (ie, 24, 32, etc)

See also setPrefix().

void IpConfig::setAddress(const QString &address)

Sets the IP address

See also address().

void IpConfig::setDns1(const QString &dns1)

Sets the IP address of the first DNS server

See also dns1().

void IpConfig::setDns2(const QString &dns2)

Sets the IP address of the second DNS server

See also dns2().

void IpConfig::setDns3(const QString &dns3)

Sets the IP address of the third DNS server

See also dns3().

void IpConfig::setGateway(const QString &gateway)

Sets the IP address of the default gateway

See also gateway().

void IpConfig::setMethod(MMBearerIpMethod method)

Sets the MMBearerIpMethod

See also method().

void IpConfig::setPrefix(uint prefix)

Sets the numeric CIDR network prefix

See also prefix().

ModemManager::IpConfig &IpConfig::operator=(const ModemManager::IpConfig &other)

Makes a copy of the IpConfig object other.