Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryAbstractSourceProvider.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 BERRYABSTRACTSOURCEPROVIDER_H_
19 #define BERRYABSTRACTSOURCEPROVIDER_H_
20 
21 #include "berryISourceProvider.h"
22 
24 
25 namespace berry {
26 
27 struct IServiceLocator;
28 
37 
38 protected:
39 
51  void FireSourceChanged(int sourcePriority,
52  const QString& sourceName, Object::ConstPointer sourceValue);
53 
65  void FireSourceChanged(int sourcePriority,
66  const QHash<QString, Object::ConstPointer>& sourceValuesByName);
67 
77  void LogDebuggingInfo(const QString& message);
78 
79 
80 private:
81 
82 
84 
85 
86 public:
87 
92  static bool DEBUG; // = Policy.DEBUG_SOURCES;
93 
95 
96  void AddSourceProviderListener(ISourceProviderListener* listener) override;
97 
99 
109  virtual void Initialize(IServiceLocator* locator);
110 };
111 
112 }
113 
114 #endif /* BERRYABSTRACTSOURCEPROVIDER_H_ */
void LogDebuggingInfo(const QString &message)
virtual void Initialize(IServiceLocator *locator)
void RemoveSourceProviderListener(ISourceProviderListener *listener) override
void FireSourceChanged(int sourcePriority, const QString &sourceName, Object::ConstPointer sourceValue)
virtual void AddSourceProviderListener(ISourceProviderListener *listener)=0
berryObjectMacro(berry::AbstractSourceProvider) void AddSourceProviderListener(ISourceProviderListener *listener) override