Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QHostInfoCache Class Reference

#include <qhostinfo_p.h>

+ Collaboration diagram for QHostInfoCache:

Public Member Functions

 QHostInfoCache ()
 
QHostInfo get (const QString &name, bool *valid)
 
void put (const QString &name, const QHostInfo &info)
 
void clear ()
 
bool isEnabled ()
 
void setEnabled (bool e)
 

Public Attributes

const int max_age
 

Detailed Description

Definition at line 111 of file qhostinfo_p.h.

Constructor & Destructor Documentation

◆ QHostInfoCache()

QHostInfoCache::QHostInfoCache ( )

Definition at line 1110 of file qhostinfo.cpp.

Member Function Documentation

◆ clear()

void QHostInfoCache::clear ( )

Definition at line 1150 of file qhostinfo.cpp.

References cache, and mutex.

Referenced by QHostInfoLookupManager::clear().

+ Here is the caller graph for this function:

◆ get()

QHostInfo QHostInfoCache::get ( const QString & name,
bool * valid )

Definition at line 1117 of file qhostinfo.cpp.

References cache, max_age, and mutex.

◆ isEnabled()

bool QHostInfoCache::isEnabled ( )
inline

Definition at line 121 of file qhostinfo_p.h.

◆ put()

void QHostInfoCache::put ( const QString & name,
const QHostInfo & info )

Definition at line 1135 of file qhostinfo.cpp.

References cache, QHostInfo::error(), info, mutex, QHostInfo::NoError, and QElapsedTimer::start().

+ Here is the call graph for this function:

◆ setEnabled()

void QHostInfoCache::setEnabled ( bool e)
inline

Definition at line 124 of file qhostinfo_p.h.

Member Data Documentation

◆ max_age

const int QHostInfoCache::max_age

Definition at line 115 of file qhostinfo_p.h.

Referenced by get().


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