Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 115 of file qhostinfo_p.h.

Constructor & Destructor Documentation

◆ QHostInfoCache()

QHostInfoCache::QHostInfoCache ( )

Definition at line 1092 of file qhostinfo.cpp.

Member Function Documentation

◆ clear()

void QHostInfoCache::clear ( )

Definition at line 1132 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 1099 of file qhostinfo.cpp.

References cache, max_age, and mutex.

◆ isEnabled()

bool QHostInfoCache::isEnabled ( )
inline

Definition at line 125 of file qhostinfo_p.h.

◆ put()

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

Definition at line 1117 of file qhostinfo.cpp.

References cache, info, mutex, and QHostInfo::NoError.

◆ setEnabled()

void QHostInfoCache::setEnabled ( bool  e)
inline

Definition at line 128 of file qhostinfo_p.h.

References e.

Member Data Documentation

◆ max_age

const int QHostInfoCache::max_age

Definition at line 119 of file qhostinfo_p.h.

Referenced by get().


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