Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
berryISourceProviderListener.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 BERRYISOURCEPROVIDERLISTENER_H_
15 #define BERRYISOURCEPROVIDERLISTENER_H_
16 
18 
19 #include <berryMacros.h>
20 #include <berryObject.h>
21 #include <berryMessage.h>
22 
23 #include <map>
24 
25 namespace berry {
26 
39 {
40 
41  struct Events {
44 
47 
48  private:
49 
52  };
53 
55 
72  virtual void SourceChanged(int sourcePriority,
73  const QHash<QString, Object::ConstPointer>& sourceValuesByName) = 0;
74 
90  virtual void SourceChanged(int sourcePriority,
91  const QString& sourceName, Object::ConstPointer sourceValue) = 0;
92 };
93 
94 }
95 
96 #endif /* BERRYISOURCEPROVIDERLISTENER_H_ */
Implements transparent reference counting.
#define BERRY_UI_QT
Message3< int, const QString &, Object::ConstPointer > singleSourceChanged
void RemoveListener(ISourceProviderListener *l)
Message2< int, const QHash< QString, Object::ConstPointer > & > multipleSourcesChanged
void AddListener(ISourceProviderListener *l)
virtual void SourceChanged(int sourcePriority, const QHash< QString, Object::ConstPointer > &sourceValuesByName)=0
virtual void SourceChanged(int sourcePriority, const QString &sourceName, Object::ConstPointer sourceValue)=0