CustusX  22.04-rc5
An IGT application
cxWebServerPluginActivator.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 CXNETWORKPLUGINACTIVATOR_H_
13 #define CXNETWORKPLUGINACTIVATOR_H_
14 
15 #include <ctkPluginActivator.h>
16 #include "boost/shared_ptr.hpp"
17 
18 namespace cx
19 {
20 typedef boost::shared_ptr<class RegisteredService> RegisteredServicePtr;
21 
24 class NetworkPluginActivator : public QObject, public ctkPluginActivator
25 {
26  Q_OBJECT
27  Q_INTERFACES(ctkPluginActivator)
28  Q_PLUGIN_METADATA(IID "org_custusx_webserver")
29 
30 public:
31 
34 
35  void start(ctkPluginContext* context);
36  void stop(ctkPluginContext* context);
37 
38 
39 private:
40  RegisteredServicePtr mRegistration;
41 };
42 
43 } // namespace cx
44 
45 #endif /* CXNETWORKPLUGINACTIVATOR_H_ */
void stop(ctkPluginContext *context)
boost::shared_ptr< class RegisteredService > RegisteredServicePtr
void start(ctkPluginContext *context)
Namespace for all CustusX production code.