Medical Imaging Interaction Toolkit  2024.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berryIHandlerListener.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 BERRYIHANDLERLISTENER_H_
15 #define BERRYIHANDLERLISTENER_H_
16 
17 #include <berryMessage.h>
18 
20 
21 namespace berry {
22 
23 template<class T> class SmartPointer;
24 
25 class HandlerEvent;
26 
38 {
39 
40  struct Events {
41 
43 
45 
46  void AddListener(IHandlerListener* listener);
47  void RemoveListener(IHandlerListener* listener);
48 
49  private:
51  };
52 
53  virtual ~IHandlerListener();
54 
63  virtual void HandlerChanged(const SmartPointer<HandlerEvent>& handlerEvent) = 0;
64 };
65 
66 }
67 
68 #endif /* BERRYIHANDLERLISTENER_H_ */
org_blueberry_core_commands_Export.h
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
BERRY_COMMANDS
#define BERRY_COMMANDS
Definition: org_blueberry_core_commands_Export.h:26
berryMessage.h
berry::Message1
Definition: berryMessage.h:787
berry::IHandlerListener::Events::Event
Message1< const SmartPointer< HandlerEvent > & > Event
Definition: berryIHandlerListener.h:42
berry::MessageDelegate1
Definition: berryMessage.h:170
berry::IHandlerListener
Definition: berryIHandlerListener.h:37
berry::IHandlerListener::Events::handlerChanged
Event handlerChanged
Definition: berryIHandlerListener.h:44
berry::IHandlerListener::Events
Definition: berryIHandlerListener.h:40
berry
Definition: QmitkPropertyItemModel.h:24