NorMIT-nav  18.04
An IGT application
cxStatePluginActivator.cpp
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 #include "cxStatePluginActivator.h"
12 
13 #include <QtPlugin>
14 #include <iostream>
15 
16 #include "cxStateServiceImpl.h"
17 #include "cxRegisteredService.h"
18 
19 namespace cx
20 {
21 
23 {
24 }
25 
27 {
28 }
29 
30 void StatePluginActivator::start(ctkPluginContext* context)
31 {
32  mStateService = RegisteredService::create<StateServiceImpl>(context, StateService_iid);
33 }
34 
35 void StatePluginActivator::stop(ctkPluginContext* context)
36 {
37  mStateService.reset();
38  Q_UNUSED(context);
39 }
40 
41 } // namespace cx
42 
void start(ctkPluginContext *context)
#define StateService_iid
void stop(ctkPluginContext *context)
Namespace for all CustusX production code.