Medical Imaging Interaction Toolkit  2021.02.99-e55a5d2f
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_ */
Message1< const SmartPointer< const CommandManagerEvent > &> Event
Implements transparent reference counting.