Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIWorkbenchListener.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 BERRYIWORKBENCHLISTENER_H_
19 #define BERRYIWORKBENCHLISTENER_H_
20 
22 
23 #include "berryMessage.h"
24 
25 namespace berry
26 {
27 
28 struct IWorkbench;
29 
40 {
41 
42  struct Events {
45 
46  PreShutdownEvent preShutdown;
47  PostShutdownEvent postShutdown;
48 
49  void AddListener(IWorkbenchListener* listener);
50  void RemoveListener(IWorkbenchListener* listener);
51 
52  private:
53 
56  };
57 
58  virtual ~IWorkbenchListener();
59 
82  virtual bool PreShutdown(IWorkbench* /*workbench*/, bool /*forced*/) { return true; }
83 
93  virtual void PostShutdown(IWorkbench* /*workbench*/) {}
94 
95 };
96 
97 }
98 
99 #endif /* BERRYIWORKBENCHLISTENER_H_ */
virtual bool PreShutdown(IWorkbench *, bool)
Message2< IWorkbench *, bool, bool > PreShutdownEvent
virtual void PostShutdown(IWorkbench *)
Message1< IWorkbench * > PostShutdownEvent
#define BERRY_UI_QT