Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berryISaveablesLifecycleListener.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 BERRYISAVEABLESLIFECYCLELISTENER_H_
19 #define BERRYISAVEABLESLIFECYCLELISTENER_H_
20 
22 
23 #include <berryMessage.h>
24 
25 namespace berry {
26 
51 struct ISaveablesLifecycleListener : public virtual Object
52 {
54 
55  struct Events {
57 
58  void AddListener(ISaveablesLifecycleListener* listener);
59  void RemoveListener(ISaveablesLifecycleListener* listener);
60 
61  private:
62 
64  };
65 
67 
73  virtual void HandleLifecycleEvent(const SaveablesLifecycleEvent::Pointer& event) = 0;
74 
75 };
76 
77 }
78 
79 Q_DECLARE_INTERFACE(berry::ISaveablesLifecycleListener, "org.blueberry.ui.ISaveablesLifecycleListener")
80 
81 #endif /* BERRYISAVEABLESLIFECYCLELISTENER_H_ */
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
berryObjectMacro(berry::ISaveablesLifecycleListener) struct Events
virtual void HandleLifecycleEvent(const SaveablesLifecycleEvent::Pointer &event)=0