![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qpromise.h>
Public Member Functions | |
QPromise ()=default | |
QPromise (QPromise< T > &&other)=default | |
QPromise (const QFutureInterface< T > &other) | |
QPromise (QFutureInterface< T > &&other) noexcept | |
~QPromise () | |
QFuture< T > | future () const |
template<typename... Args, std::enable_if_t< std::is_constructible_v< T, Args... >, bool > = true> | |
bool | emplaceResultAt (int index, Args &&...args) |
template<typename... Args, std::enable_if_t< std::is_constructible_v< T, Args... >, bool > = true> | |
bool | emplaceResult (Args &&...args) |
template<typename U = T, typename = QtPrivate::EnableIfSameOrConvertible<U, T>> | |
bool | addResult (U &&result, int index=-1) |
bool | addResults (const QList< T > &result) |
void | setException (const QException &e) |
void | setException (const std::exception_ptr &e) |
void | start () |
void | finish () |
void | suspendIfRequested () |
bool | isCanceled () const |
void | setProgressRange (int minimum, int maximum) |
void | setProgressValue (int progressValue) |
void | setProgressValueAndText (int progressValue, const QString &progressText) |
void | swap (QPromise< T > &other) noexcept |
Definition at line 24 of file qpromise.h.
|
default |
|
default |
|
inline |
Definition at line 33 of file qpromise.h.
Referenced by QPromise< Arg > &::QPromise().
|
inlinenoexcept |
Definition at line 34 of file qpromise.h.
Definition at line 36 of file qpromise.h.
|
inline |
Definition at line 60 of file qpromise.h.
Definition at line 64 of file qpromise.h.
|
inline |
Definition at line 55 of file qpromise.h.
|
inline |
Definition at line 50 of file qpromise.h.
Definition at line 75 of file qpromise.h.
Definition at line 48 of file qpromise.h.
|
inline |
Definition at line 79 of file qpromise.h.
|
inline |
Definition at line 67 of file qpromise.h.
Definition at line 71 of file qpromise.h.
Definition at line 82 of file qpromise.h.
Definition at line 83 of file qpromise.h.
|
inline |
Definition at line 84 of file qpromise.h.
Definition at line 74 of file qpromise.h.
Definition at line 77 of file qpromise.h.
Definition at line 89 of file qpromise.h.