Qt 4.8
Public Functions | Static Public Functions | Public Variables | List of all members
QHostInfoPrivate Class Reference

#include <qhostinfo_p.h>

Public Functions

 QHostInfoPrivate ()
 

Static Public Functions

static QHostInfo fromName (const QString &hostName, QSharedPointer< QNetworkSession > networkSession)
 

Public Variables

QList< QHostAddressaddrs
 
QHostInfo::HostInfoError err
 
QString errorStr
 
QString hostName
 
int lookupId
 

Detailed Description

Definition at line 114 of file qhostinfo_p.h.

Constructors and Destructors

◆ QHostInfoPrivate()

QHostInfoPrivate::QHostInfoPrivate ( )
inline

Definition at line 117 of file qhostinfo_p.h.

119  errorStr(QLatin1String(QT_TRANSLATE_NOOP("QHostInfo", "Unknown error"))),
120  lookupId(0)
121  {
122  }
#define QT_TRANSLATE_NOOP(scope, x)
Marks the string literal sourceText for dynamic translation in the given context; i...
Definition: qglobal.h:2487
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QHostInfo::HostInfoError err
Definition: qhostinfo_p.h:128

Functions

◆ fromName()

QHostInfo QHostInfoPrivate::fromName ( const QString hostName,
QSharedPointer< QNetworkSession networkSession 
)
static

Definition at line 286 of file qhostinfo.cpp.

Referenced by QAbstractSocket::waitForConnected().

287 {
288 #if defined QHOSTINFO_DEBUG
289  qDebug("QHostInfoPrivate::fromName(\"%s\") with session %p",name.toLatin1().constData(), session.data());
290 #endif
291 
292  QHostInfo hostInfo = QHostInfoAgent::fromName(name, session);
293  QAbstractHostInfoLookupManager* manager = theHostInfoLookupManager();
294  manager->cache.put(name, hostInfo);
295  return hostInfo;
296 }
void put(const QString &name, const QHostInfo &info)
Definition: qhostinfo.cpp:804
Q_CORE_EXPORT void qDebug(const char *,...)
const char * name
The QHostInfo class provides static functions for host name lookups.
Definition: qhostinfo.h:58
static QHostInfo fromName(const QString &hostName)

Properties

◆ addrs

QList<QHostAddress> QHostInfoPrivate::addrs

Definition at line 130 of file qhostinfo_p.h.

Referenced by QHostInfo::addresses(), and QHostInfo::setAddresses().

◆ err

QHostInfo::HostInfoError QHostInfoPrivate::err

Definition at line 128 of file qhostinfo_p.h.

Referenced by QHostInfo::error(), and QHostInfo::setError().

◆ errorStr

QString QHostInfoPrivate::errorStr

Definition at line 129 of file qhostinfo_p.h.

Referenced by QHostInfo::errorString(), and QHostInfo::setErrorString().

◆ hostName

QString QHostInfoPrivate::hostName

Definition at line 131 of file qhostinfo_p.h.

Referenced by QHostInfo::hostName(), and QHostInfo::setHostName().

◆ lookupId

int QHostInfoPrivate::lookupId

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