CustusX  22.04-rc3
An IGT application
cxStatePluginActivator.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 #ifndef CXSTATEPLUGINACTIVATOR_H
12 #define CXSTATEPLUGINACTIVATOR_H
13 
14 #include <ctkPluginActivator.h>
15 #include "boost/shared_ptr.hpp"
16 
17 namespace cx
18 {
27 typedef boost::shared_ptr<class RegisteredService> RegisteredServicePtr;
28 
36 class StatePluginActivator : public QObject, public ctkPluginActivator
37 {
38  Q_OBJECT
39  Q_INTERFACES(ctkPluginActivator)
40  Q_PLUGIN_METADATA(IID "org_custusx_core_state")
41 
42 public:
43 
46 
47  void start(ctkPluginContext* context);
48  void stop(ctkPluginContext* context);
49 
50 private:
51  RegisteredServicePtr mStateService;
52 };
53 
54 } // namespace cx
55 
56 #endif // CXSTATEPLUGINACTIVATOR_H
void start(ctkPluginContext *context)
boost::shared_ptr< class RegisteredService > RegisteredServicePtr
void stop(ctkPluginContext *context)
Namespace for all CustusX production code.