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 | |
QHostInfoRunnable (const QString &hn, int i, const QObject *receiver, QtPrivate::SlotObjUniquePtr slotObj) | |
~QHostInfoRunnable () override | |
void | run () override |
Implement this pure virtual function in your subclass. | |
Public Member Functions inherited from QRunnable | |
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 QRunnable * | create (Callable &&functionToRun) |
static QRunnable * | create (std::nullptr_t)=delete |
Definition at line 137 of file qhostinfo_p.h.
|
explicit |
Definition at line 823 of file qhostinfo.cpp.
References QRunnable::setAutoDelete().
|
overridedefault |
|
overridevirtual |
Implement this pure virtual function in your subclass.
Implements QRunnable.
Definition at line 834 of file qhostinfo.cpp.
References QNetworkAccessManager::cache(), QHostInfoAgent::fromName(), it, manager, QHostInfoResult::postResultsReady(), qScopeGuard(), resultEmitter, and toBeLookedUp.
int QHostInfoRunnable::id |
Definition at line 147 of file qhostinfo_p.h.
QHostInfoResult QHostInfoRunnable::resultEmitter |
Definition at line 148 of file qhostinfo_p.h.
Referenced by run().
QString QHostInfoRunnable::toBeLookedUp |
Definition at line 146 of file qhostinfo_p.h.
Referenced by run().