![]() |
Qt 6.x
The Qt SDK
|
#include <qhostinfo_p.h>
Public Member Functions | |
QHostInfoLookupManager () | |
~QHostInfoLookupManager () | |
void | clear () |
void | scheduleLookup (QHostInfoRunnable *r) |
void | abortLookup (int id) |
void | lookupFinished (QHostInfoRunnable *r) |
bool | wasAborted (int id) |
Public Attributes | |
QHostInfoCache | cache |
Protected Attributes | |
QQueue< QHostInfoRunnable * > | scheduledLookups |
QList< QHostInfoRunnable * > | finishedLookups |
QList< int > | abortedLookups |
QMutex | mutex |
bool | wasDeleted |
Friends | |
class | QHostInfoRunnable |
Definition at line 154 of file qhostinfo_p.h.
QHostInfoLookupManager::QHostInfoLookupManager | ( | ) |
Definition at line 875 of file qhostinfo.cpp.
References QObject::connect(), QObject::destroyed(), Qt::DirectConnection, and QCoreApplication::instance().
QHostInfoLookupManager::~QHostInfoLookupManager | ( | ) |
Definition at line 885 of file qhostinfo.cpp.
References clear(), mutex, QMutexLocker< Mutex >::unlock(), and wasDeleted.
void QHostInfoLookupManager::abortLookup | ( | int | id | ) |
Definition at line 986 of file qhostinfo.cpp.
References abortedLookups, QList< T >::append(), QList< T >::at(), QListSpecialMethodsBase< T >::contains(), i, mutex, scheduledLookups, QList< T >::size(), QList< T >::takeAt(), and wasDeleted.
void QHostInfoLookupManager::clear | ( | ) |
Definition at line 895 of file qhostinfo.cpp.
References cache, QList< T >::clear(), QHostInfoCache::clear(), finishedLookups, mutex, qDeleteAll(), and scheduledLookups.
Referenced by ~QHostInfoLookupManager().
void QHostInfoLookupManager::lookupFinished | ( | QHostInfoRunnable * | r | ) |
Definition at line 1027 of file qhostinfo.cpp.
References QList< T >::append(), finishedLookups, mutex, and wasDeleted.
void QHostInfoLookupManager::scheduleLookup | ( | QHostInfoRunnable * | r | ) |
Definition at line 974 of file qhostinfo.cpp.
References QQueue< T >::enqueue(), mutex, scheduledLookups, and wasDeleted.
bool QHostInfoLookupManager::wasAborted | ( | int | id | ) |
Definition at line 1016 of file qhostinfo.cpp.
References abortedLookups, QListSpecialMethodsBase< T >::contains(), mutex, and wasDeleted.
|
friend |
Definition at line 172 of file qhostinfo_p.h.
|
protected |
Definition at line 180 of file qhostinfo_p.h.
Referenced by abortLookup(), and wasAborted().
QHostInfoCache QHostInfoLookupManager::cache |
Definition at line 170 of file qhostinfo_p.h.
Referenced by clear().
|
protected |
Definition at line 179 of file qhostinfo_p.h.
Referenced by clear(), and lookupFinished().
|
protected |
Definition at line 185 of file qhostinfo_p.h.
Referenced by ~QHostInfoLookupManager(), abortLookup(), clear(), lookupFinished(), scheduleLookup(), and wasAborted().
|
protected |
Definition at line 178 of file qhostinfo_p.h.
Referenced by abortLookup(), clear(), and scheduleLookup().
|
protected |
Definition at line 187 of file qhostinfo_p.h.
Referenced by ~QHostInfoLookupManager(), abortLookup(), lookupFinished(), scheduleLookup(), and wasAborted().