Qt 6.x
The Qt SDK
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 154 of file qhostinfo_p.h.

Constructor & Destructor Documentation

◆ QHostInfoLookupManager()

QHostInfoLookupManager::QHostInfoLookupManager ( )

Definition at line 875 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 885 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 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.

+ Here is the call graph for this function:

◆ clear()

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

+ 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 1027 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 974 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 1016 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 172 of file qhostinfo_p.h.

Member Data Documentation

◆ abortedLookups

QList<int> QHostInfoLookupManager::abortedLookups
protected

Definition at line 180 of file qhostinfo_p.h.

Referenced by abortLookup(), and wasAborted().

◆ cache

QHostInfoCache QHostInfoLookupManager::cache

Definition at line 170 of file qhostinfo_p.h.

Referenced by clear().

◆ finishedLookups

QList<QHostInfoRunnable*> QHostInfoLookupManager::finishedLookups
protected

Definition at line 179 of file qhostinfo_p.h.

Referenced by clear(), and lookupFinished().

◆ mutex

QMutex QHostInfoLookupManager::mutex
protected

◆ scheduledLookups

QQueue<QHostInfoRunnable*> QHostInfoLookupManager::scheduledLookups
protected

Definition at line 178 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: