NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkDataSourcesViewActivator.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef DataSourcesViewActivator_h
16 #define DataSourcesViewActivator_h
17 
18 #include <ctkPluginActivator.h>
19 
20 namespace niftk
21 {
22 
24  public QObject, public ctkPluginActivator
25 {
26  Q_OBJECT
27  Q_INTERFACES(ctkPluginActivator)
28 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
29  Q_PLUGIN_METADATA(IID "uk_ac_ucl_cmic_igidatasources")
30 #endif
31 
32 public:
33 
34  void start(ctkPluginContext* context) override;
35  void stop(ctkPluginContext* context) override;
36  static ctkPluginContext* getContext();
37 
38 private:
39  static ctkPluginContext* m_PluginContext;
40 
41 };
42 
43 } // end namespace
44 
45 #endif
Definition: niftkDataSourcesViewActivator.h:23
static ctkPluginContext * getContext()
Definition: niftkDataSourcesViewActivator.cxx:43
void stop(ctkPluginContext *context) override
Definition: niftkDataSourcesViewActivator.cxx:35
Definition: niftkExceptionObject.h:21
void start(ctkPluginContext *context) override
Definition: niftkDataSourcesViewActivator.cxx:26