Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryPlugin.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef BERRYPLUGIN_H_
18 #define BERRYPLUGIN_H_
19 
21 
22 #include <ctkPluginActivator.h>
23 
24 namespace berry {
25 
26 struct ILog;
27 
28 class org_blueberry_core_runtime_EXPORT Plugin : public QObject, public ctkPluginActivator
29 {
30  Q_OBJECT
31  Q_INTERFACES(ctkPluginActivator)
32 
33 public:
34 
35  Plugin();
36 
37  void start(ctkPluginContext* context) override;
38  void stop(ctkPluginContext* context) override;
39 
40  QSharedPointer<ctkPlugin> GetPlugin() const;
41 
48  ILog* GetLog() const;
49 
67  QString GetStateLocation() const;
68 
69 protected:
70 
71  ctkPluginContext* m_Context;
72 
73 };
74 
75 }
76 
77 #endif /*BERRYPLUGIN_H_*/
#define org_blueberry_core_runtime_EXPORT
ctkPluginContext * m_Context
Definition: berryPlugin.h:71