29 #ifndef __ARCSSTATEMACHINE_H__
30 #define __ARCSSTATEMACHINE_H__
34 #include <QStringList>
63 void renameSheet(QString oldName,QString newName );
68 bool hasError() {
return error; }
69 void addTransition(QString bState, QString token, QString eState);
70 void getTransitions(QStringList & bState, QStringList & token, QStringList & eState);
72 bool hasFinished() {
return (currentSheetName == lastSheetName); }
78 void setToken(QString s);
82 void sendSheet(QString s);
88 QHash<QString,QHash<QString,QString> > transitions;
89 QString firstSheetName;
90 QString lastSheetName;
91 QString currentSheetName;
98 #endif //__ARCSSTATEMACHINE_H__
QString getCurrentSheetName()
Returns the name of the current activated sheet in the statemachine.
QString getFirstSheetName()
Returns the name of the first state activated in the statemachine.
QString getLastSheetName()
Returns the name of the last state activated in the statemachine.
void setFirstSheetName(QString s)
Sets the name of the first sheet i.e. the starting node of the statemachine.
Class describing a state machine in order to control an application.
void setLastSheetName(QString s)
Sets the name of the last sheet i.e. the node ending the statemachine.