Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
berryICommandListener.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 BERRYICOMMANDLISTENER_H_
15 #define BERRYICOMMANDLISTENER_H_
16 
17 #include <berryMessage.h>
18 
20 
21 namespace berry {
22 
23 template<class T> class SmartPointer;
24 
25 class CommandEvent;
26 
38 {
39 
40  struct Events {
41 
43 
45 
46  void AddListener(ICommandListener* listener);
47  void RemoveListener(ICommandListener* listener);
48 
49  private:
51  };
52 
53  virtual ~ICommandListener();
54 
63  virtual void CommandChanged(const SmartPointer<const CommandEvent>& commandEvent) = 0;
64 };
65 
66 }
67 
68 #endif /* BERRYICOMMANDLISTENER_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::MessageDelegate1
Definition: berryMessage.h:170
berry::ICommandListener
Definition: berryICommandListener.h:37
berry::ICommandListener::Events::Event
Message1< const SmartPointer< const CommandEvent > & > Event
Definition: berryICommandListener.h:42
berry::ICommandListener::Events
Definition: berryICommandListener.h:40
berry::ICommandListener::Events::commandChanged
Event commandChanged
Definition: berryICommandListener.h:44
berry
Definition: QmitkPropertyItemModel.h:24