NorMIT-nav  22.09
An IGT application
cxDicomPluginActivator.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 
12 #include "cxDicomPluginActivator.h"
13 
14 #include <QtPlugin>
15 #include <iostream>
16 
18 
19 #include "cxRegisteredService.h"
20 
21 
22 namespace cx
23 {
24 
26 {
27 // std::cout << "Created DicomPluginActivator" << std::endl;
28 }
29 
31 {
32 }
33 
34 void DicomPluginActivator::start(ctkPluginContext* context)
35 {
36 // std::cout << "Starting DicomPluginActivator" << std::endl;
37  mRegistration = RegisteredService::create<DicomGUIExtenderService>(context, GUIExtenderService_iid);
38 }
39 
40 void DicomPluginActivator::stop(ctkPluginContext* context)
41 {
42  mRegistration.reset();
43  // std::cout << "Stopped DicomPluginActivator" << std::endl;
44  Q_UNUSED(context);
45 }
46 
47 } // namespace cx
48 
49 
cx::DicomPluginActivator::stop
void stop(ctkPluginContext *context)
Definition: cxDicomPluginActivator.cpp:40
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::DicomPluginActivator::start
void start(ctkPluginContext *context)
Definition: cxDicomPluginActivator.cpp:34
cx::DicomPluginActivator::~DicomPluginActivator
~DicomPluginActivator()
Definition: cxDicomPluginActivator.cpp:30
cxDicomGUIExtenderService.h
cx::DicomPluginActivator::DicomPluginActivator
DicomPluginActivator()
Definition: cxDicomPluginActivator.cpp:25
cxDicomPluginActivator.h
cxRegisteredService.h
GUIExtenderService_iid
#define GUIExtenderService_iid
Definition: cxGUIExtenderService.h:23