Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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 
45  void AddListener(ISourceProviderListener* l);
46  void RemoveListener(ISourceProviderListener* l);
47 
48  private:
49 
52  };
53 
54  virtual ~ISourceProviderListener();
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_ */
Message2< int, const QHash< QString, Object::ConstPointer > &> multipleSourcesChanged
Implements transparent reference counting.
Message3< int, const QString &, Object::ConstPointer > singleSourceChanged
#define BERRY_UI_QT