Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
berryIHandlerListener.cpp
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 #include "berryIHandlerListener.h"
14 
15 #include "berryIHandler.h"
16 #include "berryHandlerEvent.h"
17 
18 namespace berry {
19 
20 void
23 {
24  if (l == nullptr) return;
25 
26  handlerChanged += Delegate(l, &IHandlerListener::HandlerChanged);
27 }
28 
29 void
32 {
33  if (l == nullptr) return;
34 
35  handlerChanged -= Delegate(l, &IHandlerListener::HandlerChanged);
36 }
37 
39 {
40 }
41 
42 }
43 
void RemoveListener(IHandlerListener *listener)
void AddListener(IHandlerListener *listener)
virtual void HandlerChanged(const SmartPointer< HandlerEvent > &handlerEvent)=0