Medical Imaging Interaction Toolkit  2018.4.99-bd7b41ba
Medical Imaging Interaction Toolkit
berryICommandCategoryListener.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 BERRYICOMMANDCATEGORYLISTENER_H_
15 #define BERRYICOMMANDCATEGORYLISTENER_H_
16 
17 #include <berryMessage.h>
18 
19 namespace berry {
20 
21 template<class T> class SmartPointer;
22 
24 
36 {
37 
38  struct Events {
39 
41 
43 
44  void AddListener(ICommandCategoryListener* listener);
46 
47 
49  };
50 
51  virtual ~ICommandCategoryListener();
52 
61  virtual void CategoryChanged(const SmartPointer<const CommandCategoryEvent>& categoryEvent) = 0;
62 };
63 
64 }
65 
66 
67 #endif /* BERRYICOMMANDCATEGORYLISTENER_H_ */
void RemoveListener(ICommandCategoryListener *listener)
void AddListener(ICommandCategoryListener *listener)
Implements transparent reference counting.
MessageDelegate1< ICommandCategoryListener, const SmartPointer< const CommandCategoryEvent > &> Delegate
Message1< const SmartPointer< const CommandCategoryEvent > &> Event
virtual void CategoryChanged(const SmartPointer< const CommandCategoryEvent > &categoryEvent)=0