libquentier 0.8.0
The library for rich desktop clients of Evernote service
Loading...
Searching...
No Matches
QPromise< T > Class Template Reference

Public Member Functions

 QPromise (QPromise< T > &&other) noexcept
 QPromise (QFutureInterface< T > &other)
QPromiseoperator= (QPromise< T > &&other) noexcept
QFuture< T > future () const
template<typename U, typename = std::enable_if_t< std::is_same_v<U, T> || std::is_convertible_v<U, T>>>
void addResult (U &&result, int index=-1)
void setException (const QException &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