QHostAddress Class Reference

#include <qhostaddress.h>

Class Description

Definition at line 70 of file qhostaddress.h.

Public Types

enum  SpecialAddress {
  Null, Broadcast, LocalHost, LocalHostIPv6,
  Any, AnyIPv6
}
 

Public Member Functions

 QHostAddress ()
 
 QHostAddress (quint32 ip4Addr)
 
 QHostAddress (quint8 *ip6Addr)
 
 QHostAddress (const Q_IPV6ADDR &ip6Addr)
 
 QHostAddress (const sockaddr *sockaddr)
 
 QHostAddress (const QString &address)
 
 QHostAddress (const QHostAddress &copy)
 
 QHostAddress (SpecialAddress address)
 
 ~QHostAddress ()
 
QHostAddressoperator= (const QHostAddress &other)
 
QHostAddressoperator= (const QString &address)
 
void setAddress (quint32 ip4Addr)
 
void setAddress (quint8 *ip6Addr)
 
void setAddress (const Q_IPV6ADDR &ip6Addr)
 
void setAddress (const sockaddr *sockaddr)
 
bool setAddress (const QString &address)
 
QAbstractSocket::NetworkLayerProtocol protocol () const
 
quint32 toIPv4Address () const
 
Q_IPV6ADDR toIPv6Address () const
 
QString toString () const
 
QString scopeId () const
 
void setScopeId (const QString &id)
 
bool operator== (const QHostAddress &address) const
 
bool operator== (SpecialAddress address) const
 
bool operator!= (const QHostAddress &address) const
 
bool operator!= (SpecialAddress address) const
 
bool isNull () const
 
void clear ()
 
bool isInSubnet (const QHostAddress &subnet, int netmask) const
 
bool isInSubnet (const QPair< QHostAddress, int > &subnet) const
 

Static Public Member Functions

static QPair< QHostAddress, intparseSubnet (const QString &subnet)
 

Protected Attributes

QScopedPointer< QHostAddressPrivate > d
 

Member Enumeration Documentation

Enumerator
Null 
Broadcast 
LocalHost 
LocalHostIPv6 
Any 
AnyIPv6 

Definition at line 73 of file qhostaddress.h.

Constructor & Destructor Documentation

QHostAddress ( quint32  ip4Addr)
explicit
QHostAddress ( quint8 ip6Addr)
explicit
QHostAddress ( const Q_IPV6ADDR ip6Addr)
explicit
QHostAddress ( const sockaddr *  sockaddr)
explicit
QHostAddress ( const QString address)
explicit
QHostAddress ( const QHostAddress copy)

Member Function Documentation

QHostAddress& operator= ( const QHostAddress other)
QHostAddress& operator= ( const QString address)
void setAddress ( quint32  ip4Addr)
void setAddress ( quint8 ip6Addr)
void setAddress ( const Q_IPV6ADDR ip6Addr)
void setAddress ( const sockaddr *  sockaddr)
bool setAddress ( const QString address)
quint32 toIPv4Address ( ) const
Q_IPV6ADDR toIPv6Address ( ) const
QString toString ( ) const
QString scopeId ( ) const
void setScopeId ( const QString id)
bool operator== ( const QHostAddress address) const
bool operator== ( SpecialAddress  address) const
bool operator!= ( const QHostAddress address) const
inline

Definition at line 112 of file qhostaddress.h.

113  { return !operator==(address); }
bool operator==(const QHostAddress &address) const
bool operator!= ( SpecialAddress  address) const
inline

Definition at line 114 of file qhostaddress.h.

115  { return !operator==(address); }
bool operator==(const QHostAddress &address) const
GLuint address
Definition: GLee.h:6558
bool isNull ( ) const
void clear ( )
bool isInSubnet ( const QHostAddress subnet,
int  netmask 
) const
bool isInSubnet ( const QPair< QHostAddress, int > &  subnet) const
static QPair<QHostAddress, int> parseSubnet ( const QString subnet)
static

Member Data Documentation

QScopedPointer<QHostAddressPrivate> d
protected

Definition at line 134 of file qhostaddress.h.


The documentation for this class was generated from the following file: