Fraxinus  22.04-rc3
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 
void stop(ctkPluginContext *context)
void start(ctkPluginContext *context)
#define GUIExtenderService_iid
Namespace for all CustusX production code.