QHostInfo Class Reference

#include <qhostinfo.h>

Class Description

Definition at line 58 of file qhostinfo.h.

Public Types

enum  HostInfoError { NoError, HostNotFound, UnknownError }
 

Public Member Functions

 QHostInfo (int lookupId=-1)
 
 QHostInfo (const QHostInfo &d)
 
QHostInfooperator= (const QHostInfo &d)
 
 ~QHostInfo ()
 
QString hostName () const
 
void setHostName (const QString &name)
 
QList< QHostAddressaddresses () const
 
void setAddresses (const QList< QHostAddress > &addresses)
 
HostInfoError error () const
 
void setError (HostInfoError error)
 
QString errorString () const
 
void setErrorString (const QString &errorString)
 
void setLookupId (int id)
 
int lookupId () const
 

Static Public Member Functions

static int lookupHost (const QString &name, QObject *receiver, const char *member)
 
static void abortHostLookup (int lookupId)
 
static QHostInfo fromName (const QString &name)
 
static QString localHostName ()
 
static QString localDomainName ()
 

Member Enumeration Documentation

Enumerator
NoError 
HostNotFound 
UnknownError 

Definition at line 61 of file qhostinfo.h.

Constructor & Destructor Documentation

QHostInfo ( int  lookupId = -1)
QHostInfo ( const QHostInfo d)
~QHostInfo ( )

Member Function Documentation

QHostInfo& operator= ( const QHostInfo d)
QString hostName ( ) const
void setHostName ( const QString name)
QList<QHostAddress> addresses ( ) const
void setAddresses ( const QList< QHostAddress > &  addresses)
HostInfoError error ( ) const
void setError ( HostInfoError  error)
QString errorString ( ) const
void setErrorString ( const QString errorString)
void setLookupId ( int  id)
int lookupId ( ) const
static int lookupHost ( const QString name,
QObject receiver,
const char *  member 
)
static
static void abortHostLookup ( int  lookupId)
static
static QHostInfo fromName ( const QString name)
static
static QString localHostName ( )
static
static QString localDomainName ( )
static

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