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
QHostInfoLookupManager Class Reference

#include <qhostinfo_p.h>

+ Collaboration diagram for QHostInfoLookupManager:

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
 

Detailed Description

Definition at line 152 of file qhostinfo_p.h.

Constructor & Destructor Documentation

◆ QHostInfoLookupManager()

QHostInfoLookupManager::QHostInfoLookupManager ( )

Definition at line 890 of file qhostinfo.cpp.

References QObject::connect(), QObject::destroyed(), Qt::DirectConnection, and QCoreApplication::instance().

+ Here is the call graph for this function:

◆ ~QHostInfoLookupManager()

QHostInfoLookupManager::~QHostInfoLookupManager ( )

Definition at line 900 of file qhostinfo.cpp.

References clear(), mutex, QMutexLocker< Mutex >::unlock(), and wasDeleted.

+ Here is the call graph for this function:

Member Function Documentation

◆ abortLookup()

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.

+ Here is the call graph for this function:

◆ clear()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lookupFinished()

void QHostInfoLookupManager::lookupFinished ( QHostInfoRunnable * r)

Definition at line 1045 of file qhostinfo.cpp.

References QList< T >::append(), finishedLookups, mutex, and wasDeleted.

+ Here is the call graph for this function:

◆ scheduleLookup()

void QHostInfoLookupManager::scheduleLookup ( QHostInfoRunnable * r)

Definition at line 989 of file qhostinfo.cpp.

References QQueue< T >::enqueue(), mutex, scheduledLookups, and wasDeleted.

+ Here is the call graph for this function:

◆ wasAborted()

bool QHostInfoLookupManager::wasAborted ( int id)

Definition at line 1034 of file qhostinfo.cpp.

References abortedLookups, QListSpecialMethodsBase< T >::contains(), mutex, and wasDeleted.

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ QHostInfoRunnable

friend class QHostInfoRunnable
friend

Definition at line 170 of file qhostinfo_p.h.

Member Data Documentation

◆ abortedLookups

QList<int> QHostInfoLookupManager::abortedLookups
protected

Definition at line 178 of file qhostinfo_p.h.

Referenced by abortLookup(), and wasAborted().

◆ cache

QHostInfoCache QHostInfoLookupManager::cache

Definition at line 168 of file qhostinfo_p.h.

Referenced by clear().

◆ finishedLookups

QList<QHostInfoRunnable*> QHostInfoLookupManager::finishedLookups
protected

Definition at line 177 of file qhostinfo_p.h.

Referenced by clear(), and lookupFinished().

◆ mutex

QMutex QHostInfoLookupManager::mutex
protected

◆ scheduledLookups

QQueue<QHostInfoRunnable*> QHostInfoLookupManager::scheduledLookups
protected

Definition at line 176 of file qhostinfo_p.h.

Referenced by abortLookup(), clear(), and scheduleLookup().

◆ wasDeleted

bool QHostInfoLookupManager::wasDeleted
protected

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