13 #include "boost/bind.hpp" 25 mPluginContext(pluginContext),
28 this->initServiceListener();
31 void StateServiceProxy::initServiceListener()
35 boost::bind(&StateServiceProxy::onServiceAdded,
this, _1),
37 boost::bind(&StateServiceProxy::onServiceRemoved,
this, _1)
39 mServiceListener->open();
41 void StateServiceProxy::onServiceAdded(
StateService* service)
54 void StateServiceProxy::onServiceRemoved(
StateService *service)
71 return mService->getVersionName();
81 return mService->getApplicationStateName();
86 return mService->getAllApplicationStateNames();
91 return mService->getWorkflowActions();
96 mService->setWorkFlowState(uid);
101 return mService->getActiveDesktop();
106 mService->saveDesktop(desktop);
111 mService->resetDesktop();
117 return mService->getWorkflow();
virtual QStringList getAllApplicationStateNames() const
void applicationStateChanged()
boost::shared_ptr< class StateService > StateServicePtr
virtual WorkflowStateMachinePtr getWorkflow()
virtual QString getVersionName()
virtual void setWorkFlowState(QString uid)
virtual QActionGroup * getWorkflowActions()
virtual QString getApplicationStateName() const
virtual void resetDesktop()
void workflowStateAboutToChange()
Workflow states for CustusX.
static StateServicePtr create(ctkPluginContext *pluginContext)
boost::shared_ptr< class WorkflowStateMachine > WorkflowStateMachinePtr
StateServiceProxy(ctkPluginContext *pluginContext)
static StateServicePtr getNullObject()
Helper class for listening to services being added, modified and removed.
void workflowStateChanged()
Data class for CustusX desktop.
virtual Desktop getActiveDesktop()
virtual void saveDesktop(Desktop desktop)
Namespace for all CustusX production code.