NorMIT-nav  22.09
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 
cx::StatePluginActivator::stop
void stop(ctkPluginContext *context)
Definition: cxStatePluginActivator.cpp:35
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxStatePluginActivator.h
cxStateServiceImpl.h
StateService_iid
#define StateService_iid
Definition: cxStateService.h:23
cx::StatePluginActivator::StatePluginActivator
StatePluginActivator()
Definition: cxStatePluginActivator.cpp:22
cx::StatePluginActivator::~StatePluginActivator
~StatePluginActivator()
Definition: cxStatePluginActivator.cpp:26
cxRegisteredService.h
cx::StatePluginActivator::start
void start(ctkPluginContext *context)
Definition: cxStatePluginActivator.cpp:30