21#ifndef __ctkWorkflowStep_h
22#define __ctkWorkflowStep_h
30#include "ctkWorkflow_p.h"
33#include "ctkCoreExport.h"
37class ctkWorkflowStepPrivate;
61 void setId(
const QString& newStepId);
205 virtual void validate(
const QString& desiredBranchId = QString());
244 QScopedPointer<ctkWorkflowStepPrivate>
d_ptr;
250 friend class ctkWorkflowPrivate;
ctkWorkflowStep is the basis for a workflow step.
void invokeValidateCommand(const QString &desiredBranchId=QString()) const
Signal (emitted by the private implementation) indicating that validation of this step's processing s...
QString statusText() const
Get statusText.
QString description() const
Set/get description.
QState * processingState() const
Get the step's processing state.
ctkWorkflowIntrastepTransition * validationTransition() const
Get the step's validation transition.
bool hasValidateCommand() const
void validationComplete(bool validationSuceeded, const QString &branchId=QString()) const
Signal (emitted by the private implementation) indicating that validation of this step's processing h...
QState * validationState() const
Get the step's validation state.
virtual void onExit(const ctkWorkflowStep *goingTo, const ctkWorkflowInterstepTransition::InterstepTransitionType transitionType)
Reimplement this function for step-specific processing when exiting a step.
void setWorkflow(ctkWorkflow *newWorkflow)
Set workflow.
bool hasOnExitCommand() const
void setHasOnEntryCommand(bool newHasOnEntryCommand)
void onExitComplete() const
Signal (emitted by the private implementation) indicating that the step's 'onExit' processing has com...
void setName(const QString &newName)
void setId(const QString &newStepId)
ctkWorkflowIntrastepTransition * validationFailedTransition() const
Get the step's validation failed transition.
ctkWorkflowStep(ctkWorkflowStepPrivate *pimpl, const QString &newId)
ctkWorkflow * workflow() const
Get the workflow associated with this step.
virtual void validate(const QString &desiredBranchId=QString())
Validates the computation performed in this step's processing state.
void invokeOnExitCommand(const ctkWorkflowStep *goingTo, const ctkWorkflowInterstepTransition::InterstepTransitionType transitionType) const
Signal (emitted by the private implementation) indicating that the step's 'onExit' processing should ...
QObject * ctkWorkflowStepQObject()
Get QObject associated with this step, to connect signals/slots.
bool isWidgetType() const
Returns true if the object is a widget; otherwise returns false.
void setHasOnExitCommand(bool newHasOnExitCommand)
void invokeOnEntryCommand(const ctkWorkflowStep *comingFrom, const ctkWorkflowInterstepTransition::InterstepTransitionType transitionType) const
Signal (emitted by the private implementation) indicating that the step's 'onEntry' processing should...
QString id() const
Get id.
void onEntryComplete() const
Signal (emitted by the private implementation) indicating that the step's 'onEntry' processing has co...
QString name() const
Set/get name.
QScopedPointer< ctkWorkflowStepPrivate > d_ptr
virtual void onEntry(const ctkWorkflowStep *comingFrom, const ctkWorkflowInterstepTransition::InterstepTransitionType transitionType)
Reimplement this function for step-specific processing when entering a step.
virtual ~ctkWorkflowStep()
void setHasValidateCommand(bool newHasValidateCommand)
ctkWorkflowStep(const QString &newId)
void setDescription(const QString &newDescription)
bool hasOnEntryCommand() const
void setStatusText(const QString &newText)
ctkWorkflow is the basis for a workflow engine, i.e. a state machine with enhancements to support ctk...