Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QHostInfoRunnable Class Reference

#include <qhostinfo_p.h>

+ Inheritance diagram for QHostInfoRunnable:
+ Collaboration diagram for QHostInfoRunnable:

Public Member Functions

 QHostInfoRunnable (const QString &hn, int i, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj)
 
void run () override
 Implement this pure virtual function in your subclass.
 
- Public Member Functions inherited from QRunnable
virtual void run ()=0
 Implement this pure virtual function in your subclass.
 
constexpr QRunnable () noexcept=default
 Constructs a QRunnable.
 
virtual ~QRunnable ()
 QRunnable virtual destructor.
 
bool autoDelete () const
 Returns true is auto-deletion is enabled; false otherwise.
 
void setAutoDelete (bool autoDelete)
 Enables auto-deletion if autoDelete is true; otherwise auto-deletion is disabled.
 
template<typename Callable , if_callable< Callable > = true>
 QGenericRunnable (Callable &&c)
 
 ~QGenericRunnable () override
 
void run () override
 

Public Attributes

QString toBeLookedUp
 
int id
 
QHostInfoResult resultEmitter
 

Additional Inherited Members

- Public Types inherited from QRunnable
template<typename Callable >
using if_callable = std::enable_if_t< std::is_invocable_r_v< void, Callable >, bool >
 
- Static Public Member Functions inherited from QRunnable
template<typename Callable , if_callable< Callable > = true>
static QRunnablecreate (Callable &&functionToRun)
 
static QRunnablecreate (std::nullptr_t)=delete
 

Detailed Description

Definition at line 141 of file qhostinfo_p.h.

Constructor & Destructor Documentation

◆ QHostInfoRunnable()

QHostInfoRunnable::QHostInfoRunnable ( const QString hn,
int  i,
const QObject receiver,
QtPrivate::QSlotObjectBase slotObj 
)

Definition at line 811 of file qhostinfo.cpp.

References QRunnable::setAutoDelete().

+ Here is the call graph for this function:

Member Function Documentation

◆ run()

void QHostInfoRunnable::run ( )
overridevirtual

Implement this pure virtual function in your subclass.

Implements QRunnable.

Definition at line 819 of file qhostinfo.cpp.

References QNetworkAccessManager::cache(), QHostInfoAgent::fromName(), id, it, manager, QHostInfoResult::postResultsReady(), qScopeGuard(), resultEmitter, QHostInfo::setLookupId(), and toBeLookedUp.

+ Here is the call graph for this function:

Member Data Documentation

◆ id

int QHostInfoRunnable::id

Definition at line 149 of file qhostinfo_p.h.

Referenced by run().

◆ resultEmitter

QHostInfoResult QHostInfoRunnable::resultEmitter

Definition at line 150 of file qhostinfo_p.h.

Referenced by run().

◆ toBeLookedUp

QString QHostInfoRunnable::toBeLookedUp

Definition at line 148 of file qhostinfo_p.h.

Referenced by run().


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