Medical Imaging Interaction Toolkit  2018.4.99-b585543d
Medical Imaging Interaction Toolkit
berryAbstractSourceProvider.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 BERRYABSTRACTSOURCEPROVIDER_H_
15 #define BERRYABSTRACTSOURCEPROVIDER_H_
16 
17 #include "berryISourceProvider.h"
18 
20 
21 namespace berry {
22 
23 struct IServiceLocator;
24 
33 
34 protected:
35 
47  void FireSourceChanged(int sourcePriority,
48  const QString& sourceName, Object::ConstPointer sourceValue);
49 
61  void FireSourceChanged(int sourcePriority,
62  const QHash<QString, Object::ConstPointer>& sourceValuesByName);
63 
73  void LogDebuggingInfo(const QString& message);
74 
75 
76 private:
77 
78 
80 
81 
82 public:
83 
88  static bool DEBUG; // = Policy.DEBUG_SOURCES;
89 
91 
92  void AddSourceProviderListener(ISourceProviderListener* listener) override;
93 
95 
105  virtual void Initialize(IServiceLocator* locator);
106 };
107 
108 }
109 
110 #endif /* BERRYABSTRACTSOURCEPROVIDER_H_ */
void LogDebuggingInfo(const QString &message)
void AddSourceProviderListener(ISourceProviderListener *listener) override
berryObjectMacro(berry::AbstractSourceProvider)
virtual void Initialize(IServiceLocator *locator)
void RemoveSourceProviderListener(ISourceProviderListener *listener) override
void FireSourceChanged(int sourcePriority, const QString &sourceName, Object::ConstPointer sourceValue)