Search for usage in LXR

NetworkManager::IpAddress Class Reference

#include <ipaddress.h>

Inheritance diagram for NetworkManager::IpAddress:

Public Member Functions

 IpAddress ()
 IpAddress (const IpAddress &other)
 ~IpAddress ()
QHostAddress gateway () const
bool isValid () const
IpAddressoperator= (const IpAddress &other)
void setGateway (const QHostAddress &gateway)
- Public Member Functions inherited from QNetworkAddressEntry
 QNetworkAddressEntry (const QNetworkAddressEntry &other)
QHostAddress broadcast () const const
void clearAddressLifetime ()
QNetworkAddressEntry::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
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 (QNetworkAddressEntry::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 address.

Definition at line 20 of file ipaddress.h.

Constructor & Destructor Documentation

◆ IpAddress() [1/2]

NetworkManager::IpAddress::IpAddress ( )

Constructs an empty IpAddress object.

Definition at line 20 of file ipaddress.cpp.

◆ IpAddress() [2/2]

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

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

Definition at line 30 of file ipaddress.cpp.

◆ ~IpAddress()

NetworkManager::IpAddress::~IpAddress ( )

Destroys this IpAddress object.

Definition at line 25 of file ipaddress.cpp.

Member Function Documentation

◆ gateway()

QHostAddress NetworkManager::IpAddress::gateway ( ) const

Returns the default gateway of this object.

Definition at line 47 of file ipaddress.cpp.

◆ isValid()

bool NetworkManager::IpAddress::isValid ( ) const

Return if the IP address is defined.

Definition at line 37 of file ipaddress.cpp.

◆ operator=()

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

Makes a copy of the IpAddress object other.

Definition at line 52 of file ipaddress.cpp.

◆ setGateway()

void NetworkManager::IpAddress::setGateway ( const QHostAddress gateway)

Defines the default gateway of this object.

Definition at line 42 of file ipaddress.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 04:05:36 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.