Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIElementReference.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 BERRYIELEMENTREFERENCE_H_
19 #define BERRYIELEMENTREFERENCE_H_
20 
21 #include <berryObject.h>
22 
23 #include <QHash>
24 
25 namespace berry {
26 
27 class UIElement;
28 
37 struct IElementReference : public Object
38 {
39 
41 
42 
47  virtual QString GetCommandId() const = 0;
48 
55  virtual SmartPointer<UIElement> GetElement() const = 0;
56 
63  virtual QHash<QString, Object::Pointer> GetParameters() const = 0;
64 };
65 
66 }
67 
68 #endif /* BERRYIELEMENTREFERENCE_H_ */
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
berryObjectMacro(berry::IElementReference) virtual QString GetCommandId() const =0
Implements transparent reference counting.
virtual QHash< QString, Object::Pointer > GetParameters() const =0
virtual SmartPointer< UIElement > GetElement() const =0