Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIWorkbenchListener.cpp
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 
18 
19 namespace berry {
20 
21 void
24 {
25  if (listener == nullptr) return;
26 
27  preShutdown += Delegate2(listener, &IWorkbenchListener::PreShutdown);
28  postShutdown += Delegate1(listener, &IWorkbenchListener::PostShutdown);
29 }
30 
31 void
34 {
35  if (listener == nullptr) return;
36 
37  preShutdown -= Delegate2(listener, &IWorkbenchListener::PreShutdown);
38  postShutdown -= Delegate1(listener, &IWorkbenchListener::PostShutdown);
39 }
40 
42 {
43 }
44 
45 }
void AddListener(IWorkbenchListener *listener)
virtual bool PreShutdown(IWorkbench *, bool)
virtual void PostShutdown(IWorkbench *)
void RemoveListener(IWorkbenchListener *listener)