Medical Imaging Interaction Toolkit  2018.4.99-f51274ea
Medical Imaging Interaction Toolkit
berryIRegistryEventListener.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 BERRYIREGISTRYEVENTLISTENER_H
14 #define BERRYIREGISTRYEVENTLISTENER_H
15 
16 #include <berryMessage.h>
17 #include <berrySmartPointer.h>
18 
19 #include <QList>
20 
22 
23 namespace berry {
24 
25 struct IExtension;
26 struct IExtensionPoint;
27 
37 {
38 
39  struct Events {
40 
45 
46  void AddListener(IRegistryEventListener* listener);
47  void RemoveListener(IRegistryEventListener* listener);
48 
49  private:
50 
55  };
56 
57  virtual ~IRegistryEventListener();
58 
67  virtual void Added(const QList<SmartPointer<IExtension> >& extensions) = 0;
68 
77  virtual void Removed(const QList<SmartPointer<IExtension> >& extensions) = 0;
78 
87  virtual void Added(const QList<SmartPointer<IExtensionPoint> >& extensionPoints) = 0;
88 
97  virtual void Removed(const QList<SmartPointer<IExtensionPoint> >& extensionPoints) = 0;
98 
99 };
100 
101 }
102 
103 #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