Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIExtensionRegistry.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 
18 #ifndef BERRYIEXTENSIONREGISTRY_H
19 #define BERRYIEXTENSIONREGISTRY_H
20 
22 
23 #include <berrySmartPointer.h>
24 
25 #include <QList>
26 
27 class QTranslator;
28 
29 namespace berry {
30 
31 struct IConfigurationElement;
32 struct IContributor;
33 struct IExtension;
34 struct IExtensionPoint;
35 struct IExtensionPointFilter;
36 struct IRegistryEventListener;
37 
77 {
78 
79  virtual ~IExtensionRegistry();
80 
91  virtual QList<SmartPointer<IConfigurationElement> > GetConfigurationElementsFor(
92  const QString& extensionPointId) const = 0;
93 
106  virtual QList<SmartPointer<IConfigurationElement> > GetConfigurationElementsFor(
107  const QString& namespaze, const QString& extensionPointName) const = 0;
108 
122  virtual QList<SmartPointer<IConfigurationElement> > GetConfigurationElementsFor(
123  const QString& namespaze, const QString& extensionPointName, const QString& extensionId) const = 0;
124 
133  virtual SmartPointer<IExtension> GetExtension(const QString& extensionId) const = 0;
134 
147  virtual SmartPointer<IExtension> GetExtension(const QString& extensionPointId,
148  const QString& extensionId) const = 0;
149 
164  virtual SmartPointer<IExtension> GetExtension(const QString& namespaze,
165  const QString& extensionPointName,
166  const QString& extensionId) const = 0;
167 
177  virtual SmartPointer<IExtensionPoint> GetExtensionPoint(const QString& extensionPointId) const = 0;
178 
190  virtual SmartPointer<IExtensionPoint> GetExtensionPoint(const QString& namespaze,
191  const QString& extensionPointName) const = 0;
192 
199  virtual QList<SmartPointer<IExtensionPoint> > GetExtensionPoints() const = 0;
200 
209  virtual QList<SmartPointer<IExtensionPoint> > GetExtensionPoints(const QString& namespaze) const = 0;
210 
220  virtual QList<SmartPointer<IExtensionPoint> > GetExtensionPoints(
221  const SmartPointer<IContributor>& contributor) const = 0;
222 
231  virtual QList<SmartPointer<IExtension> > GetExtensions(const QString& namespaze) const = 0;
232 
240  virtual QList<SmartPointer<IExtension> > GetExtensions(const SmartPointer<IContributor>& contributor) const = 0;
241 
254  virtual QList<QString> GetNamespaces() const = 0;
255 
285  virtual bool AddContribution(QIODevice* is, const SmartPointer<IContributor>& contributor,
286  bool persist, const QString& name, QTranslator* translationBundle, QObject* token) = 0;
287 
303  virtual bool RemoveExtension(const SmartPointer<IExtension>& extension, QObject* token) = 0;
304 
321  virtual bool RemoveExtensionPoint(const SmartPointer<IExtensionPoint>& extensionPoint, QObject* token) = 0;
322 
334  virtual void Stop(QObject* token) = 0;
335 
356  virtual void AddListener(IRegistryEventListener* listener, const QString& extensionPointId = QString()) = 0;
357 
377  virtual void AddListener(IRegistryEventListener *listener, const IExtensionPointFilter& filter) = 0;
378 
387  virtual void RemoveListener(IRegistryEventListener* listener) = 0;
388 
398  virtual bool IsMultiLanguage() const = 0;
399 };
400 
401 }
402 
403 Q_DECLARE_INTERFACE(berry::IExtensionRegistry, "org.blueberry.service.IExtensionRegistry")
404 
405 #endif // BERRYIEXTENSIONREGISTRY_H
Implements transparent reference counting.
#define org_blueberry_core_runtime_EXPORT