NorMIT-nav  22.09
An IGT application
cxHelpPluginActivator.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 
12 #ifndef CXHELPPLUGINACTIVATOR_H_
13 #define CXHELPPLUGINACTIVATOR_H_
14 
15 #include <ctkPluginActivator.h>
16 #include "boost/shared_ptr.hpp"
17 
18 namespace cx
19 {
28 typedef boost::shared_ptr<class RegisteredService> RegisteredServicePtr;
29 typedef boost::shared_ptr<class HelpEngine> HelpEnginePtr;
30 
39 class HelpPluginActivator : public QObject, public ctkPluginActivator
40 {
41  Q_OBJECT
42  Q_INTERFACES(ctkPluginActivator)
43  Q_PLUGIN_METADATA(IID "org_custusx_help")
44 
45 public:
46 
49 
50  void start(ctkPluginContext* context);
51  void stop(ctkPluginContext* context);
52 
53 private:
54  RegisteredServicePtr mGUIExtender;
55  HelpEnginePtr mEngine;
56 };
57 
58 } // namespace cx
59 
60 #endif /* CXHELPPLUGINACTIVATOR_H_ */
cx::HelpEnginePtr
boost::shared_ptr< HelpEngine > HelpEnginePtr
Definition: cxHelpEngine.h:61
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::HelpPluginActivator
Definition: cxHelpPluginActivator.h:39
cx::RegisteredServicePtr
boost::shared_ptr< class RegisteredService > RegisteredServicePtr
Definition: cxAcquisitionServicePluginActivator.h:31
cx::HelpPluginActivator::stop
void stop(ctkPluginContext *context)
Definition: cxHelpPluginActivator.cpp:40
cx::HelpPluginActivator::~HelpPluginActivator
~HelpPluginActivator()
Definition: cxHelpPluginActivator.cpp:29
cx::HelpPluginActivator::HelpPluginActivator
HelpPluginActivator()
Definition: cxHelpPluginActivator.cpp:24
cx::HelpPluginActivator::start
void start(ctkPluginContext *context)
Definition: cxHelpPluginActivator.cpp:32