NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cxStateServiceImpl.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXSTATESERVICEIMPL_H
13 #define CXSTATESERVICEIMPL_H
14 
15 #include "org_custusx_core_state_Export.h"
16 #include "cxStateService.h"
17 
18 namespace cx
19 {
20 typedef boost::shared_ptr<class ApplicationStateMachine> ApplicationStateMachinePtr;
21 typedef boost::shared_ptr<class WorkflowStateMachine> WorkflowStateMachinePtr;
22 
23 
29 class org_custusx_core_state_EXPORT StateServiceImpl: public StateService
30 {
31 Q_OBJECT
32 
33 public:
34  virtual ~StateServiceImpl();
35  StateServiceImpl(ctkPluginContext* context);
36 
37  virtual QString getVersionName();
38  virtual QString getApplicationStateName() const;
39  virtual QStringList getAllApplicationStateNames() const;
40 
41  virtual QActionGroup* getWorkflowActions();
42  virtual void setWorkFlowState(QString uid);
43 
44  virtual Desktop getActiveDesktop();
45  virtual void saveDesktop(Desktop desktop);
46  virtual void resetDesktop();
47  virtual WorkflowStateMachinePtr getWorkflow();
48 
49  virtual bool isNull();
50 
51 private:
52  void initialize();
53 
54  WorkflowStateMachinePtr mWorkflowStateMachine;
55  VisServicesPtr mServices;
56 };
57 
58 }
59 
60 #endif // CXSTATESERVICEIMPL_H
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::VisServicesPtr
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
cx::WorkflowStateMachinePtr
boost::shared_ptr< class WorkflowStateMachine > WorkflowStateMachinePtr
Definition: cxStateServiceImpl.h:21
cx::ApplicationStateMachinePtr
boost::shared_ptr< class ApplicationStateMachine > ApplicationStateMachinePtr
Definition: cxStateServiceImpl.h:20
cx::StateServiceImpl
Definition: cxStateServiceImpl.h:29
cxStateService.h
cx::Desktop
Data class for CustusX desktop.
Definition: cxStateService.h:43
cx::StateService
Workflow states for CustusX.
Definition: cxStateService.h:102