38 template<
typename Func>
41 _completionConnection = connect(sender, signal,
this, [
this]() {
48 template<
typename Func,
typename Slot>
49 void connectToCompletion(
typename QtPrivate::FunctionPointer<Func>::Object* sender, Func signal, Slot slot)
51 _completionConnection = connect(sender, signal,
this, slot);
61 QMetaObject::Connection _completionConnection;
void connectToCompletion(typename QtPrivate::FunctionPointer< Func >::Object *sender, Func signal)
void complete()
Call this to signal that the async operation has completed successfully.
void connectWaitSignal() override
Subclasses override to set up their signal connections.
void disconnectWaitSignal() override
Subclasses override to tear down their signal connections.
void onWaitEntered() override
Called when the state is entered - subclasses should call base implementation.
void fail()
Call this to signal that the async operation has failed.
void connectToCompletion(typename QtPrivate::FunctionPointer< Func >::Object *sender, Func signal, Slot slot)
std::function< void(AsyncFunctionState *state)> SetupFunction
QString stateName() const