Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIRegistryEventListener.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 BERRYIREGISTRYEVENTLISTENER_H
18 #define BERRYIREGISTRYEVENTLISTENER_H
19 
20 #include <berryMessage.h>
21 #include <berrySmartPointer.h>
22 
23 #include <QList>
24 
26 
27 namespace berry {
28 
29 struct IExtension;
30 struct IExtensionPoint;
31 
41 {
42 
43  struct Events {
44 
49 
50  void AddListener(IRegistryEventListener* listener);
51  void RemoveListener(IRegistryEventListener* listener);
52 
53  private:
54 
59  };
60 
61  virtual ~IRegistryEventListener();
62 
71  virtual void Added(const QList<SmartPointer<IExtension> >& extensions) = 0;
72 
81  virtual void Removed(const QList<SmartPointer<IExtension> >& extensions) = 0;
82 
91  virtual void Added(const QList<SmartPointer<IExtensionPoint> >& extensionPoints) = 0;
92 
101  virtual void Removed(const QList<SmartPointer<IExtensionPoint> >& extensionPoints) = 0;
102 
103 };
104 
105 }
106 
107 #endif // BERRYIREGISTRYEVENTLISTENER_H
Message1< const QList< SmartPointer< IExtension > > & > extensionsRemoved
Message1< const QList< SmartPointer< IExtensionPoint > > & > extensionPointsRemoved
Implements transparent reference counting.
#define org_blueberry_core_runtime_EXPORT
Message1< const QList< SmartPointer< IExtensionPoint > > & > extensionPointsAdded
Message1< const QList< SmartPointer< IExtension > > & > extensionsAdded