#pragma once #include #include "main.h" #include "MessageGlobals.h" #include "drydemoxmlstates.h" // TODO maybe the DryDemoStates in the scxml not needed? #define _StateController StateController::I() class StateController : public QObject { Q_OBJECT SINGLETON(StateController) public: void init(); // TODO these in slots void quit(); public slots: void onStateControllerUnhandledMsgReceived(const QVariantList &msg); private: drydemoXMLstates _dryDemo; QString _previoustStateName; quint16 REMOVE_THIS = 0; void buildRespondMessage(); void onIdleStateChange(bool active); void onTreatmentStateChange(bool active); void onDisinfectStateChange(bool active); };