33 #ifndef CXWORKFLOWSTATE_H_
34 #define CXWORKFLOWSTATE_H_
36 #include "cxResourceExport.h"
40 #include <QStateMachine>
45 #include "boost/shared_ptr.hpp"
78 virtual void onEntry(QEvent * event);
79 virtual void onExit(QEvent * event);
81 virtual QString
getUid()
const {
return mUid; }
82 virtual QString
getName()
const {
return mName; }
84 std::vector<WorkflowState*> getChildStates();
85 QAction* createAction(QActionGroup* group);
95 virtual bool canEnter()
const = 0;
96 virtual QIcon getIcon()
const = 0;
97 void autoStartHardware();
115 virtual QIcon
getIcon()
const {
return QIcon(
""); }
virtual bool canEnter() const
virtual void onEntry(QEvent *event)
virtual QString getName() const
CoreServicesPtr mServices
virtual QString getUid() const
ParentWorkflowState(QState *parent, CoreServicesPtr services)
virtual void onExit(QEvent *event)
virtual QIcon getIcon() const
virtual ~ParentWorkflowState()
State in a WorkflowStateMachine.
boost::shared_ptr< class CoreServices > CoreServicesPtr
WorkflowState(QState *parent, QString uid, QString name, CoreServicesPtr services)