Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berryISourceProvider.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 BERRYISOURCEPROVIDER_H_
19 #define BERRYISOURCEPROVIDER_H_
20 
21 #include <berryObject.h>
22 
23 #include <QHash>
24 #include <QStringList>
25 
26 #include <QObject>
27 
28 namespace berry {
29 
30 struct ISourceProviderListener;
31 
47 struct ISourceProvider : public virtual Object
48 {
49 
51 
52  typedef QHash<QString, Object::ConstPointer> StateMapType;
53 
54  ~ISourceProvider();
55 
56 
64  virtual void AddSourceProviderListener(ISourceProviderListener* listener) = 0;
65 
80  virtual StateMapType GetCurrentState() const = 0;
81 
90  virtual QList<QString> GetProvidedSourceNames() const = 0;
91 
99  virtual void RemoveSourceProviderListener(ISourceProviderListener* listener) = 0;
100 };
101 
102 }
103 
104 Q_DECLARE_INTERFACE(berry::ISourceProvider, "org.blueberry.ui.ISourceProvider")
105 
106 #endif /* BERRYISOURCEPROVIDER_H_ */
berryObjectMacro(berry::ISourceProvider) typedef QHash< QString
virtual QList< QString > GetProvidedSourceNames() const =0
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
virtual void RemoveSourceProviderListener(ISourceProviderListener *listener)=0
Object::ConstPointer StateMapType
virtual StateMapType GetCurrentState() const =0
virtual void AddSourceProviderListener(ISourceProviderListener *listener)=0