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
- IpRoute()
- IpRoute(const NetworkManager::IpRoute &other)
- ~IpRoute()
- bool isValid() const
- quint32 metric() const
- QHostAddress nextHop() const
- void setMetric(quint32 metric)
- void setNextHop(const QHostAddress &nextHop) const
- NetworkManager::IpRoute &IpRoute::operator=(const NetworkManager::IpRoute &other)
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.