Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIExtensionTracker.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 The Medical Imaging Interaction Toolkit (MITK)
18 
19 Copyright (c) German Cancer Research Center,
20 Division of Medical and Biological Informatics.
21 All rights reserved.
22 
23 This software is distributed WITHOUT ANY WARRANTY; without
24 even the implied warranty of MERCHANTABILITY or FITNESS FOR
25 A PARTICULAR PURPOSE.
26 
27 See LICENSE.txt or http://www.mitk.org for details.
28 
29 ===================================================================*/
30 
31 #ifndef BERRYIEXTENSIONTRACKER_H
32 #define BERRYIEXTENSIONTRACKER_H
33 
35 
36 #include "berrySmartPointer.h"
37 
38 #include <QList>
39 
40 namespace berry {
41 
42 struct IExtension;
43 struct IExtensionChangeHandler;
44 struct IExtensionPointFilter;
45 
46 class Object;
47 
60 {
61 
67 
71  REF_WEAK
72  };
73 
74  virtual ~IExtensionTracker();
75 
82  virtual void RegisterHandler(IExtensionChangeHandler* handler, const IExtensionPointFilter& filter) = 0;
83 
90  virtual void RegisterHandler(IExtensionChangeHandler *handler, const QString& extensionPointId = QString()) = 0;
91 
97  virtual void UnregisterHandler(IExtensionChangeHandler* handler) = 0;
98 
108  virtual void RegisterObject(const SmartPointer<IExtension>& extension,
109  const SmartPointer<Object>& object, ReferenceType referenceType) = 0;
110 
117  virtual void UnregisterObject(const SmartPointer<IExtension>& extension,
118  const SmartPointer<Object>& object) = 0;
119 
127  virtual QList<SmartPointer<Object> > UnregisterObject(const SmartPointer<IExtension>& extension) = 0;
128 
138  virtual QList<SmartPointer<Object> > GetObjects(const SmartPointer<IExtension>& extension) const = 0;
139 
143  virtual void Close() = 0;
144 };
145 
146 }
147 
148 #endif // BERRYIEXTENSIONTRACKER_H
static MsgHandler handler
Definition: usUtils.cpp:261
Implements transparent reference counting.
#define org_blueberry_core_runtime_EXPORT