33 #ifndef CXWORKFLOWSTATE_H_
34 #define CXWORKFLOWSTATE_H_
36 #include "cxResourceExport.h"
40 #include <QStateMachine>
45 #include "boost/shared_ptr.hpp"
74 mEnableAction(enableAction)
79 virtual void onEntry(QEvent * event);
80 virtual void onExit(QEvent * event);
82 virtual QString
getUid()
const {
return mUid; }
83 virtual QString
getName()
const {
return mName; }
85 std::vector<WorkflowState*> getChildStates();
86 QAction* createAction(QActionGroup* group);
88 virtual void enableAction(
bool enable);
98 virtual bool canEnter()
const = 0;
99 virtual QIcon getIcon()
const = 0;
100 void autoStartHardware();
121 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, bool enableAction=true)