Medical Imaging Interaction Toolkit  2023.12.99-29da53b2
Medical Imaging Interaction Toolkit
berryIExtensionRegistry.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 
14 #ifndef BERRYIEXTENSIONREGISTRY_H
15 #define BERRYIEXTENSIONREGISTRY_H
16 
18 
19 #include <berrySmartPointer.h>
20 
21 #include <QList>
22 #include <QtPlugin>
23 
24 class QTranslator;
25 
26 namespace berry {
27 
28 struct IConfigurationElement;
29 struct IContributor;
30 struct IExtension;
31 struct IExtensionPoint;
32 struct IExtensionPointFilter;
33 struct IRegistryEventListener;
34 
73 {
74 
75  virtual ~IExtensionRegistry();
76 
87  virtual QList<SmartPointer<IConfigurationElement> > GetConfigurationElementsFor(
88  const QString& extensionPointId) const = 0;
89 
102  virtual QList<SmartPointer<IConfigurationElement> > GetConfigurationElementsFor(
103  const QString& namespaze, const QString& extensionPointName) const = 0;
104 
118  virtual QList<SmartPointer<IConfigurationElement> > GetConfigurationElementsFor(
119  const QString& namespaze, const QString& extensionPointName, const QString& extensionId) const = 0;
120 
129  virtual SmartPointer<IExtension> GetExtension(const QString& extensionId) const = 0;
130 
143  virtual SmartPointer<IExtension> GetExtension(const QString& extensionPointId,
144  const QString& extensionId) const = 0;
145 
160  virtual SmartPointer<IExtension> GetExtension(const QString& namespaze,
161  const QString& extensionPointName,
162  const QString& extensionId) const = 0;
163 
173  virtual SmartPointer<IExtensionPoint> GetExtensionPoint(const QString& extensionPointId) const = 0;
174 
186  virtual SmartPointer<IExtensionPoint> GetExtensionPoint(const QString& namespaze,
187  const QString& extensionPointName) const = 0;
188 
195  virtual QList<SmartPointer<IExtensionPoint> > GetExtensionPoints() const = 0;
196 
205  virtual QList<SmartPointer<IExtensionPoint> > GetExtensionPoints(const QString& namespaze) const = 0;
206 
216  virtual QList<SmartPointer<IExtensionPoint> > GetExtensionPoints(
217  const SmartPointer<IContributor>& contributor) const = 0;
218 
227  virtual QList<SmartPointer<IExtension> > GetExtensions(const QString& namespaze) const = 0;
228 
236  virtual QList<SmartPointer<IExtension> > GetExtensions(const SmartPointer<IContributor>& contributor) const = 0;
237 
250  virtual QList<QString> GetNamespaces() const = 0;
251 
280  virtual bool AddContribution(QIODevice* is, const SmartPointer<IContributor>& contributor,
281  bool persist, const QString& name, QTranslator* translationBundle, QObject* token) = 0;
282 
297  virtual bool RemoveExtension(const SmartPointer<IExtension>& extension, QObject* token) = 0;
298 
314  virtual bool RemoveExtensionPoint(const SmartPointer<IExtensionPoint>& extensionPoint, QObject* token) = 0;
315 
326  virtual void Stop(QObject* token) = 0;
327 
348  virtual void AddListener(IRegistryEventListener* listener, const QString& extensionPointId = QString()) = 0;
349 
369  virtual void AddListener(IRegistryEventListener *listener, const IExtensionPointFilter& filter) = 0;
370 
379  virtual void RemoveListener(IRegistryEventListener* listener) = 0;
380 
390  virtual bool IsMultiLanguage() const = 0;
391 };
392 
393 }
394 
395 Q_DECLARE_INTERFACE(berry::IExtensionRegistry, "org.blueberry.service.IExtensionRegistry")
396 
397 #endif // BERRYIEXTENSIONREGISTRY_H
org_blueberry_core_runtime_Export.h
berry::IExtensionPointFilter
Definition: berryIExtensionPointFilter.h:32
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berry::IExtensionRegistry
Definition: berryIExtensionRegistry.h:72
org_blueberry_core_runtime_EXPORT
#define org_blueberry_core_runtime_EXPORT
Definition: org_blueberry_core_runtime_Export.h:26
berry::IRegistryEventListener
Definition: berryIRegistryEventListener.h:36
berrySmartPointer.h
berry
Definition: QmitkPropertyItemModel.h:24