Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryISourceProviderListener.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 BERRYISOURCEPROVIDERLISTENER_H_
19 #define BERRYISOURCEPROVIDERLISTENER_H_
20 
22 
23 #include <berryMacros.h>
24 #include <berryObject.h>
25 #include <berryMessage.h>
26 
27 #include <map>
28 
29 namespace berry {
30 
43 {
44 
45  struct Events {
48 
49  void AddListener(ISourceProviderListener* l);
50  void RemoveListener(ISourceProviderListener* l);
51 
52  private:
53 
56  };
57 
58  virtual ~ISourceProviderListener();
59 
76  virtual void SourceChanged(int sourcePriority,
77  const QHash<QString, Object::ConstPointer>& sourceValuesByName) = 0;
78 
94  virtual void SourceChanged(int sourcePriority,
95  const QString& sourceName, Object::ConstPointer sourceValue) = 0;
96 };
97 
98 }
99 
100 #endif /* BERRYISOURCEPROVIDERLISTENER_H_ */
Message2< int, const QHash< QString, Object::ConstPointer > & > multipleSourcesChanged
Message3< int, const QString &, Object::ConstPointer > singleSourceChanged
#define BERRY_UI_QT