NorMIT-nav  22.09
An IGT application
cxTrackingPluginActivator.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 CXTRACKINGPLUGINACTIVATOR_H_
13 #define CXTRACKINGPLUGINACTIVATOR_H_
14 
15 #include <ctkPluginActivator.h>
16 #include "boost/shared_ptr.hpp"
17 
18 namespace cx
19 {
20 
31 typedef boost::shared_ptr<class RegisteredService> RegisteredServicePtr;
32 
40 class TrackingPluginActivator : public QObject, public ctkPluginActivator
41 {
42  Q_OBJECT
43  Q_INTERFACES(ctkPluginActivator)
44  Q_PLUGIN_METADATA(IID "org_custusx_core_tracking")
45 
46 public:
47 
50 
51  void start(ctkPluginContext* context);
52  void stop(ctkPluginContext* context);
53 
54 private:
55  RegisteredServicePtr mRegistration;
56 };
57 
58 } // namespace cx
59 
60 #endif /* CXTRACKINGPLUGINACTIVATOR_H_ */
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::TrackingPluginActivator::stop
void stop(ctkPluginContext *context)
Definition: cxTrackingPluginActivator.cpp:36
cx::TrackingPluginActivator::start
void start(ctkPluginContext *context)
Definition: cxTrackingPluginActivator.cpp:31
cx::RegisteredServicePtr
boost::shared_ptr< class RegisteredService > RegisteredServicePtr
Definition: cxAcquisitionServicePluginActivator.h:31
cx::TrackingPluginActivator
Definition: cxTrackingPluginActivator.h:40
cx::TrackingPluginActivator::~TrackingPluginActivator
~TrackingPluginActivator()
Definition: cxTrackingPluginActivator.cpp:27
cx::TrackingPluginActivator::TrackingPluginActivator
TrackingPluginActivator()
Definition: cxTrackingPluginActivator.cpp:23