54 void addSteps(
const QList<Step>& steps);
76 void _executeNextStep();
80 int _currentStep = -1;
QString stateName() const
void stepCompleted(const QString &stepName, int index)
Emitted after each step completes successfully.
std::function< bool()> StepAction
Step action - returns true to continue, false to stop with error.
int currentStepIndex() const
Get the current step index.
int stepCount() const
Get the total number of steps.
void addStep(const QString &name, StepAction action)
QString currentStepName() const
Get the current step name.
QString failedStepName() const
Get the name of the step that failed (valid after error())
void addSteps(const QList< Step > &steps)
Add multiple steps at once.
void onEnter() override
Override to perform actions on state entry.