Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berryICommandCategoryListener.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef BERRYICOMMANDCATEGORYLISTENER_H_
19 #define BERRYICOMMANDCATEGORYLISTENER_H_
20 
21 #include <berryMessage.h>
22 
23 namespace berry {
24 
25 template<class T> class SmartPointer;
26 
28 
40 {
41 
42  struct Events {
43 
45 
47 
48  void AddListener(ICommandCategoryListener* listener);
50 
51 
53  };
54 
55  virtual ~ICommandCategoryListener();
56 
65  virtual void CategoryChanged(const SmartPointer<const CommandCategoryEvent>& categoryEvent) = 0;
66 };
67 
68 }
69 
70 
71 #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