Pages
API Documentation
On this page

NetworkManager::IpAddress Class

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

List of all members, including inherited members

Public Functions

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.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.