Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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
org_blueberry_core_runtime_Export.h
berry::IRegistryEventListener::Events::extensionsRemoved
Message1< const QList< SmartPointer< IExtension > > & > extensionsRemoved
Definition: berryIRegistryEventListener.h:42
berry::IRegistryEventListener::Events
Definition: berryIRegistryEventListener.h:39
berry::IRegistryEventListener::Events::extensionPointsRemoved
Message1< const QList< SmartPointer< IExtensionPoint > > & > extensionPointsRemoved
Definition: berryIRegistryEventListener.h:44
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berryMessage.h
berry::Message1
Definition: berryMessage.h:787
berry::MessageDelegate1
Definition: berryMessage.h:170
org_blueberry_core_runtime_EXPORT
#define org_blueberry_core_runtime_EXPORT
Definition: org_blueberry_core_runtime_Export.h:26
berry::IRegistryEventListener::Events::extensionsAdded
Message1< const QList< SmartPointer< IExtension > > & > extensionsAdded
Definition: berryIRegistryEventListener.h:41
berry::IRegistryEventListener
Definition: berryIRegistryEventListener.h:36
berry::IRegistryEventListener::Events::extensionPointsAdded
Message1< const QList< SmartPointer< IExtensionPoint > > & > extensionPointsAdded
Definition: berryIRegistryEventListener.h:43
berrySmartPointer.h
berry
Definition: QmitkPropertyItemModel.h:24