NetworkManager::IpAddress Class

class NetworkManager::IpAddress

This class represents IP address. More...

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

Public Functions

IpAddress()
IpAddress(const NetworkManager::IpAddress &other)
~IpAddress()
QHostAddress gateway() const
bool isValid() const
void setGateway(const QHostAddress &gateway)
NetworkManager::IpAddress &operator=(const NetworkManager::IpAddress &other)

Detailed Description

Member Function Documentation

IpAddress::IpAddress()

Constructs an empty IpAddress object.

IpAddress::IpAddress(const NetworkManager::IpAddress &other)

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

[noexcept] IpAddress::~IpAddress()

Destroys this IpAddress object.

QHostAddress IpAddress::gateway() const

Returns the default gateway of this object.

See also setGateway().

bool IpAddress::isValid() const

Return if the IP address is defined.

void IpAddress::setGateway(const QHostAddress &gateway)

Defines the default gateway of this object.

See also gateway().

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

Makes a copy of the IpAddress object other.