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>.
|
#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 152 of file qhostinfo_p.h.
QHostInfoLookupManager::QHostInfoLookupManager | ( | ) |
Definition at line 890 of file qhostinfo.cpp.
References QObject::connect(), QObject::destroyed(), Qt::DirectConnection, and QCoreApplication::instance().
QHostInfoLookupManager::~QHostInfoLookupManager | ( | ) |
Definition at line 900 of file qhostinfo.cpp.
References clear(), mutex, QMutexLocker< Mutex >::unlock(), and wasDeleted.
void QHostInfoLookupManager::abortLookup | ( | int | id | ) |
Definition at line 1001 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 910 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 1045 of file qhostinfo.cpp.
References QList< T >::append(), finishedLookups, mutex, and wasDeleted.
void QHostInfoLookupManager::scheduleLookup | ( | QHostInfoRunnable * | r | ) |
Definition at line 989 of file qhostinfo.cpp.
References QQueue< T >::enqueue(), mutex, scheduledLookups, and wasDeleted.
bool QHostInfoLookupManager::wasAborted | ( | int | id | ) |
Definition at line 1034 of file qhostinfo.cpp.
References abortedLookups, QListSpecialMethodsBase< T >::contains(), mutex, and wasDeleted.
|
friend |
Definition at line 170 of file qhostinfo_p.h.
|
protected |
Definition at line 178 of file qhostinfo_p.h.
Referenced by abortLookup(), and wasAborted().
QHostInfoCache QHostInfoLookupManager::cache |
Definition at line 168 of file qhostinfo_p.h.
Referenced by clear().
|
protected |
Definition at line 177 of file qhostinfo_p.h.
Referenced by clear(), and lookupFinished().
|
protected |
Definition at line 183 of file qhostinfo_p.h.
Referenced by ~QHostInfoLookupManager(), abortLookup(), clear(), lookupFinished(), scheduleLookup(), and wasAborted().
|
protected |
Definition at line 176 of file qhostinfo_p.h.
Referenced by abortLookup(), clear(), and scheduleLookup().
|
protected |
Definition at line 185 of file qhostinfo_p.h.
Referenced by ~QHostInfoLookupManager(), abortLookup(), lookupFinished(), scheduleLookup(), and wasAborted().