The state created by ErrorRecoveryBuilder.
More...
#include <ErrorRecoveryBuilder.h>
|
| | ErrorRecoveryState (const QString &stateName, QState *parent) |
| |
| void | setAction (Action action) |
| |
| void | setFallback (Action fallback) |
| |
| void | setRollback (VoidAction rollback) |
| |
| void | setRetry (int maxRetries, int delayMsecs) |
| |
| void | setTimeout (int timeoutMsecs) |
| |
| void | setExhaustedBehavior (ErrorRecoveryBuilder::ExhaustedBehavior behavior) |
| |
| QString | successPhase () const |
| | Get the phase that succeeded (if any)
|
| |
| | QGCState (const QString &stateName, QState *parentState) |
| |
| template<typename PointerToMemberFunction > |
| QSignalTransition * | addThisTransition (PointerToMemberFunction signal, QAbstractState *target) |
| | Simpler version of QState::addTransition which assumes the sender is this.
|
| |
| void | setLocalErrorState (QAbstractState *errorState) |
| |
| QAbstractState * | localErrorState () const |
| | Get the per-state error state (nullptr if using global)
|
| |
| void | setProperty (QObject *object, const char *name, const QVariant &value) |
| |
| void | setEnabled (QObject *object, bool enabled) |
| | Convenience overload for setting enabled state on widgets/controls.
|
| |
| void | setVisible (QObject *object, bool visible) |
| | Convenience overload for setting visible state on widgets/controls.
|
| |
| | QGCAbstractState (const QString &stateName, QState *parent) |
| |
| QGCStateMachine * | machine () const |
| |
| Vehicle * | vehicle () const |
| |
| QString | stateName () const |
| |
| class StateContext * | context () const |
| |
| void | setOnEntry (EntryCallback callback) |
| | Set a callback to be invoked when the state is entered.
|
| |
| void | setOnExit (ExitCallback callback) |
| | Set a callback to be invoked when the state is exited.
|
| |
| void | setCallbacks (EntryCallback onEntry, ExitCallback onExit=nullptr) |
| | Set both entry and exit callbacks.
|
| |
| void | setEventHandler (EventHandler handler) |
| | Set a custom event handler for this state.
|
| |
|
| void | onEnter () override |
| | Override to perform actions on state entry.
|
| |
| virtual void | onLeave () |
| | Override to perform actions on state exit.
|
| |
| void | onEntry (QEvent *event) override |
| |
| void | onExit (QEvent *event) override |
| |
| bool | event (QEvent *event) override |
| |
The state created by ErrorRecoveryBuilder.
Definition at line 78 of file ErrorRecoveryBuilder.h.
◆ Action
◆ VoidAction
◆ ErrorRecoveryState()
| ErrorRecoveryState::ErrorRecoveryState |
( |
const QString & |
stateName, |
|
|
QState * |
parent |
|
) |
| |
◆ exhausted
| void ErrorRecoveryState::exhausted |
( |
| ) |
|
|
signal |
◆ onEnter()
| void ErrorRecoveryState::onEnter |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ retrying
| void ErrorRecoveryState::retrying |
( |
int |
attempt, |
|
|
int |
maxAttempts |
|
) |
| |
|
signal |
◆ rollingBack
| void ErrorRecoveryState::rollingBack |
( |
| ) |
|
|
signal |
◆ setAction()
| void ErrorRecoveryState::setAction |
( |
Action |
action | ) |
|
|
inline |
◆ setExhaustedBehavior()
◆ setFallback()
| void ErrorRecoveryState::setFallback |
( |
Action |
fallback | ) |
|
|
inline |
◆ setRetry()
| void ErrorRecoveryState::setRetry |
( |
int |
maxRetries, |
|
|
int |
delayMsecs |
|
) |
| |
◆ setRollback()
| void ErrorRecoveryState::setRollback |
( |
VoidAction |
rollback | ) |
|
|
inline |
◆ setTimeout()
| void ErrorRecoveryState::setTimeout |
( |
int |
timeoutMsecs | ) |
|
◆ succeeded
| void ErrorRecoveryState::succeeded |
( |
| ) |
|
|
signal |
◆ successPhase()
| QString ErrorRecoveryState::successPhase |
( |
| ) |
const |
|
inline |
◆ tryingFallback
| void ErrorRecoveryState::tryingFallback |
( |
| ) |
|
|
signal |
The documentation for this class was generated from the following files: