Medical Imaging Interaction Toolkit  2018.4.99-6aa36ba9
Medical Imaging Interaction Toolkit
berryIHandler.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 #ifndef BERRYIHANDLER_H_
14 #define BERRYIHANDLER_H_
15 
16 #include <berryMacros.h>
17 #include <berryObject.h>
19 
20 namespace berry {
21 
22 struct IHandlerListener;
23 class ExecutionEvent;
24 
34 struct BERRY_COMMANDS IHandler : public virtual Object
35 {
36 
38 
39 
48  virtual void AddHandlerListener(IHandlerListener* handlerListener) = 0;
49 
55  virtual void Dispose() = 0;
56 
68  virtual Object::Pointer Execute(const SmartPointer<const ExecutionEvent>& event) = 0;
69 
78  virtual void SetEnabled(const Object::Pointer& evaluationContext) = 0;
79 
90  virtual bool IsEnabled() const = 0;
91 
101  virtual bool IsHandled() const = 0;
102 
113  virtual void RemoveHandlerListener(IHandlerListener* handlerListener) = 0;
114 
115 
116 };
117 
118 }
119 
120 Q_DECLARE_INTERFACE(berry::IHandler, "org.blueberry.core.commands.IHandler")
121 
122 #endif /*BERRYIHANDLER_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
#define berryObjectMacro(...)
Definition: berryMacros.h:33