Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxPatientModelPluginActivator.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 CXPATIENTMODELPLUGINACTIVATOR_H_
13 #define CXPATIENTMODELPLUGINACTIVATOR_H_
14 
15 #include "org_custusx_core_patientmodel_Export.h"
16 
17 #include <ctkPluginActivator.h>
18 #include "boost/shared_ptr.hpp"
19 
20 namespace cx
21 {
32 typedef boost::shared_ptr<class RegisteredService> RegisteredServicePtr;
33 
41 class org_custusx_core_patientmodel_EXPORT PatientModelPluginActivator : public QObject, public ctkPluginActivator
42 {
43  Q_OBJECT
44  Q_INTERFACES(ctkPluginActivator)
45  Q_PLUGIN_METADATA(IID "org_custusx_core_patientmodel")
46 
47 public:
48 
51 
52  void start(ctkPluginContext* context);
53  void stop(ctkPluginContext* context);
54 
55 private:
56  RegisteredServicePtr mSessionStorage;
57  RegisteredServicePtr mPatientModel;
58 };
59 
60 } // namespace cx
61 
62 #endif /* CXPATIENTMODELPLUGINACTIVATOR_H_ */
boost::shared_ptr< class RegisteredService > RegisteredServicePtr
Namespace for all CustusX production code.