Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
berryPlugin.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef BERRYPLUGIN_H_
14 #define BERRYPLUGIN_H_
15 
17 
18 #include <ctkPluginActivator.h>
19 
20 namespace berry {
21 
22 struct ILog;
23 
24 class org_blueberry_core_runtime_EXPORT Plugin : public QObject, public ctkPluginActivator
25 {
26  Q_OBJECT
27  Q_INTERFACES(ctkPluginActivator)
28 
29 public:
30 
31  Plugin();
32 
33  void start(ctkPluginContext* context) override;
34  void stop(ctkPluginContext* context) override;
35 
36  QSharedPointer<ctkPlugin> GetPlugin() const;
37 
44  ILog* GetLog() const;
45 
63  QString GetStateLocation() const;
64 
65 protected:
66 
67  ctkPluginContext* m_Context;
68 
69 };
70 
71 }
72 
73 #endif /*BERRYPLUGIN_H_*/
org_blueberry_core_runtime_Export.h
org_blueberry_core_runtime_EXPORT
#define org_blueberry_core_runtime_EXPORT
Definition: org_blueberry_core_runtime_Export.h:26
berry::Plugin
Definition: berryPlugin.h:24
QSharedPointer
Definition: berryILog.h:16
berry::ILog
Definition: berryILog.h:36
berry::Plugin::m_Context
ctkPluginContext * m_Context
Definition: berryPlugin.h:67
berry
Definition: QmitkPropertyItemModel.h:24