Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
Medical Imaging Interaction Toolkit
berryISaveablesLifecycleListener.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 BERRYISAVEABLESLIFECYCLELISTENER_H_
15 #define BERRYISAVEABLESLIFECYCLELISTENER_H_
16 
18 
19 #include <berryMessage.h>
20 
21 namespace berry {
22 
47 struct ISaveablesLifecycleListener : public virtual Object
48 {
50 
51  struct Events {
53 
56 
57  private:
58 
60  };
61 
63 
69  virtual void HandleLifecycleEvent(const SaveablesLifecycleEvent::Pointer& event) = 0;
70 
71 };
72 
73 }
74 
75 Q_DECLARE_INTERFACE(berry::ISaveablesLifecycleListener, "org.blueberry.ui.ISaveablesLifecycleListener")
76 
77 #endif /* BERRYISAVEABLESLIFECYCLELISTENER_H_ */
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
void AddListener(ISaveablesLifecycleListener *listener)
berry::SmartPointer< Self > Pointer
Definition: berryObject.h:82
Message1< const SaveablesLifecycleEvent::Pointer & > lifecycleChange
void RemoveListener(ISaveablesLifecycleListener *listener)
berryObjectMacro(berry::ISaveablesLifecycleListener)
virtual void HandleLifecycleEvent(const SaveablesLifecycleEvent::Pointer &event)=0