Medical Imaging Interaction Toolkit  2022.10.99-122321bb
Medical Imaging Interaction Toolkit
berryIWorkbenchListener.h
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 
14 #ifndef BERRYIWORKBENCHLISTENER_H_
15 #define BERRYIWORKBENCHLISTENER_H_
16 
18 
19 #include "berryMessage.h"
20 
21 namespace berry
22 {
23 
24 struct IWorkbench;
25 
36 {
37 
38  struct Events {
41 
44 
45  void AddListener(IWorkbenchListener* listener);
46  void RemoveListener(IWorkbenchListener* listener);
47 
48  private:
49 
52  };
53 
54  virtual ~IWorkbenchListener();
55 
75  virtual bool PreShutdown(IWorkbench* /*workbench*/, bool /*forced*/) { return true; }
76 
84  virtual void PostShutdown(IWorkbench* /*workbench*/) {}
85 
86 };
87 
88 }
89 
90 #endif /* BERRYIWORKBENCHLISTENER_H_ */
berry::IWorkbenchListener::PreShutdown
virtual bool PreShutdown(IWorkbench *, bool)
Definition: berryIWorkbenchListener.h:75
org_blueberry_ui_qt_Export.h
berry::IWorkbenchListener::PostShutdown
virtual void PostShutdown(IWorkbench *)
Definition: berryIWorkbenchListener.h:84
berryMessage.h
berry::Message1< IWorkbench * >
berry::IWorkbenchListener::Events::postShutdown
PostShutdownEvent postShutdown
Definition: berryIWorkbenchListener.h:43
berry::MessageDelegate1
Definition: berryMessage.h:170
berry::IWorkbenchListener::Events::PostShutdownEvent
Message1< IWorkbench * > PostShutdownEvent
Definition: berryIWorkbenchListener.h:40
berry::Message2< IWorkbench *, bool, bool >
BERRY_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
berry::IWorkbenchListener::Events::PreShutdownEvent
Message2< IWorkbench *, bool, bool > PreShutdownEvent
Definition: berryIWorkbenchListener.h:39
berry::MessageDelegate2
Definition: berryMessage.h:216
berry::IWorkbenchListener
Definition: berryIWorkbenchListener.h:35
berry::IWorkbenchListener::Events::preShutdown
PreShutdownEvent preShutdown
Definition: berryIWorkbenchListener.h:42
berry::IWorkbenchListener::Events
Definition: berryIWorkbenchListener.h:38
berry::IWorkbench
Definition: berryIWorkbench.h:80
berry
Definition: QmitkPropertyItemModel.h:24