Search for usage in LXR

NetworkManager::IpRoute Class Reference

#include <iproute.h>

Inheritance diagram for NetworkManager::IpRoute:

Public Member Functions

 IpRoute ()
 IpRoute (const IpRoute &other)
 ~IpRoute ()
bool isValid () const
quint32 metric () const
QHostAddress nextHop () const
IpRouteoperator= (const IpRoute &other)
void setMetric (quint32 metric)
void setNextHop (const QHostAddress &nextHop) const
- Public Member Functions inherited from QNetworkAddressEntry
 QNetworkAddressEntry (const QNetworkAddressEntry &other)
QHostAddress broadcast () const const
void clearAddressLifetime ()
DnsEligibilityStatus dnsEligibility () const const
QHostAddress ip () const const
bool isLifetimeKnown () const const
bool isPermanent () const const
bool isTemporary () const const
QHostAddress netmask () const const
bool operator!= (const QNetworkAddressEntry &other) const const
QDebug operator<< (QDebug debug, const QNetworkAddressEntry &entry)
QNetworkAddressEntryoperator= (const QNetworkAddressEntry &other)
bool operator== (const QNetworkAddressEntry &other) const const
QDeadlineTimer preferredLifetime () const const
int prefixLength () const const
void setAddressLifetime (QDeadlineTimer preferred, QDeadlineTimer validity)
void setBroadcast (const QHostAddress &newBroadcast)
void setDnsEligibility (DnsEligibilityStatus status)
void setIp (const QHostAddress &newIp)
void setNetmask (const QHostAddress &newNetmask)
void setPrefixLength (int length)
void swap (QNetworkAddressEntry &other)
QDeadlineTimer validityLifetime () const const

Additional Inherited Members

- Public Types inherited from QNetworkAddressEntry
enum  DnsEligibilityStatus
- Public Attributes inherited from QNetworkAddressEntry

Detailed Description

This class represents IP route.

Definition at line 21 of file iproute.h.

Constructor & Destructor Documentation

◆ IpRoute() [1/2]

NetworkManager::IpRoute::IpRoute ( )

Constructs an empty IpRoute object.

Definition at line 25 of file iproute.cpp.

◆ IpRoute() [2/2]

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

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

Definition at line 35 of file iproute.cpp.

◆ ~IpRoute()

NetworkManager::IpRoute::~IpRoute ( )

Destroys this IpRoute object.

Definition at line 30 of file iproute.cpp.

Member Function Documentation

◆ isValid()

bool NetworkManager::IpRoute::isValid ( ) const

Returns true if the route IP is defined.

Definition at line 74 of file iproute.cpp.

◆ metric()

quint32 NetworkManager::IpRoute::metric ( ) const

Returns the route metric number of the given route.

Definition at line 57 of file iproute.cpp.

◆ nextHop()

QHostAddress NetworkManager::IpRoute::nextHop ( ) const

Returns the next hop of the given route.

Definition at line 47 of file iproute.cpp.

◆ operator=()

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

Makes a copy of the IpRoute object other.

Definition at line 62 of file iproute.cpp.

◆ setMetric()

void NetworkManager::IpRoute::setMetric ( quint32 metric)

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

Definition at line 52 of file iproute.cpp.

◆ setNextHop()

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

Defines the next hop of the given route.

Definition at line 42 of file iproute.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 19 2024 11:56:22 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.