Pages
API Documentation
On this page

NetworkManager::IpRoute Class

This class represents IP route. More...

  • Header: #include <NetworkManagerQt/IpRoute>
  • 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

IpRoute::IpRoute()

Constructs an empty IpRoute object.

IpRoute::IpRoute(const NetworkManager::IpRoute &other)

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

[noexcept] IpRoute::~IpRoute()

Destroys this IpRoute object.

bool IpRoute::isValid() const

Returns true if the route IP is defined.

quint32 IpRoute::metric() const

Returns the route metric number of the given route.

See also setMetric()

QHostAddress IpRoute::nextHop() const

Returns the next hop of the given route.

See also setNextHop()

void IpRoute::setMetric(quint32 metric)

Defines the metric of the given route, lower values have higher priority.

See also metric()

void IpRoute::setNextHop(const QHostAddress &nextHop) const

Defines the next hop of the given route.

See also nextHop()

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

Makes a copy of the IpRoute 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.