Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIHandler.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 #ifndef BERRYIHANDLER_H_
18 #define BERRYIHANDLER_H_
19 
20 #include <berryMacros.h>
21 #include <berryObject.h>
23 
24 namespace berry {
25 
26 struct IHandlerListener;
27 class ExecutionEvent;
28 
38 struct BERRY_COMMANDS IHandler : public virtual Object
39 {
40 
42 
43 
52  virtual void AddHandlerListener(IHandlerListener* handlerListener) = 0;
53 
59  virtual void Dispose() = 0;
60 
72  virtual Object::Pointer Execute(const SmartPointer<const ExecutionEvent>& event) = 0;
73 
82  virtual void SetEnabled(const Object::Pointer& evaluationContext) = 0;
83 
94  virtual bool IsEnabled() const = 0;
95 
105  virtual bool IsHandled() const = 0;
106 
117  virtual void RemoveHandlerListener(IHandlerListener* handlerListener) = 0;
118 
119 
120 };
121 
122 }
123 
124 Q_DECLARE_INTERFACE(berry::IHandler, "org.blueberry.core.commands.IHandler")
125 
126 #endif /*BERRYIHANDLER_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
#define berryObjectMacro(...)
Definition: berryMacros.h:37