Medical Imaging Interaction Toolkit  2018.4.99-c4b6bb11
Medical Imaging Interaction Toolkit
berryIWorkbenchListener.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 
14 
15 namespace berry {
16 
17 void
20 {
21  if (listener == nullptr) return;
22 
23  preShutdown += Delegate2(listener, &IWorkbenchListener::PreShutdown);
24  postShutdown += Delegate1(listener, &IWorkbenchListener::PostShutdown);
25 }
26 
27 void
30 {
31  if (listener == nullptr) return;
32 
33  preShutdown -= Delegate2(listener, &IWorkbenchListener::PreShutdown);
34  postShutdown -= Delegate1(listener, &IWorkbenchListener::PostShutdown);
35 }
36 
38 {
39 }
40 
41 }
void AddListener(IWorkbenchListener *listener)
virtual bool PreShutdown(IWorkbench *, bool)
virtual void PostShutdown(IWorkbench *)
void RemoveListener(IWorkbenchListener *listener)