Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
berryICommandManagerListener.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 BERRYICOMMANDMANAGERLISTENER_H_
14 #define BERRYICOMMANDMANAGERLISTENER_H_
15 
17 
18 #include <berryMessage.h>
19 
20 namespace berry
21 {
22 
23 template<class T> class SmartPointer;
24 
25 class CommandManagerEvent;
26 
38 {
39 
40  struct Events {
41 
43 
45 
46  void AddListener(ICommandManagerListener* listener);
47  void RemoveListener(ICommandManagerListener* listener);
48 
49  private:
51  };
52 
53  virtual ~ICommandManagerListener();
54 
64  virtual void CommandManagerChanged(const SmartPointer<const CommandManagerEvent>& commandManagerEvent) = 0;
65 };
66 
67 }
68 
69 #endif /* BERRYICOMMANDMANAGERLISTENER_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::ICommandManagerListener::Events::Event
Message1< const SmartPointer< const CommandManagerEvent > & > Event
Definition: berryICommandManagerListener.h:42
berry::ICommandManagerListener
Definition: berryICommandManagerListener.h:37
berry::ICommandManagerListener::Events::commandManagerChanged
Event commandManagerChanged
Definition: berryICommandManagerListener.h:44
berry::ICommandManagerListener::Events
Definition: berryICommandManagerListener.h:40
berry
Definition: QmitkPropertyItemModel.h:24