Medical Imaging Interaction Toolkit
2023.04.00
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
17
#include "
berrySaveablesLifecycleEvent.h
"
18
19
#include <
berryMessage.h
>
20
21
namespace
berry
{
22
47
struct
ISaveablesLifecycleListener
:
public
virtual
Object
48
{
49
berryObjectMacro
(
berry::ISaveablesLifecycleListener
);
50
51
struct
Events
{
52
Message1<const SaveablesLifecycleEvent::Pointer&>
lifecycleChange
;
53
54
void
AddListener
(
ISaveablesLifecycleListener
* listener);
55
void
RemoveListener
(
ISaveablesLifecycleListener
* listener);
56
57
private
:
58
59
typedef
MessageDelegate1<ISaveablesLifecycleListener, const SaveablesLifecycleEvent::Pointer&>
Delegate
;
60
};
61
62
~ISaveablesLifecycleListener
()
override
;
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_ */
berry::ISaveablesLifecycleListener::HandleLifecycleEvent
virtual void HandleLifecycleEvent(const SaveablesLifecycleEvent::Pointer &event)=0
berry::ISaveablesLifecycleListener::~ISaveablesLifecycleListener
~ISaveablesLifecycleListener() override
berry::SmartPointer< Self >
berryMessage.h
berry::Message1< const SaveablesLifecycleEvent::Pointer & >
berry::Object
Light weight base class for most BlueBerry classes.
Definition:
berryObject.h:72
berry::ISaveablesLifecycleListener
Definition:
berryISaveablesLifecycleListener.h:47
berry::MessageDelegate1
Definition:
berryMessage.h:170
berry::ISaveablesLifecycleListener::Events::AddListener
void AddListener(ISaveablesLifecycleListener *listener)
berrySaveablesLifecycleEvent.h
berry::ISaveablesLifecycleListener::Events::lifecycleChange
Message1< const SaveablesLifecycleEvent::Pointer & > lifecycleChange
Definition:
berryISaveablesLifecycleListener.h:52
berry::ISaveablesLifecycleListener::Events
Definition:
berryISaveablesLifecycleListener.h:51
berry::ISaveablesLifecycleListener::berryObjectMacro
berryObjectMacro(berry::ISaveablesLifecycleListener)
berry
Definition:
QmitkPropertyItemModel.h:24
berry::ISaveablesLifecycleListener::Events::RemoveListener
void RemoveListener(ISaveablesLifecycleListener *listener)
src
MITK
Plugins
org.blueberry.ui.qt
src
berryISaveablesLifecycleListener.h
Generated on Wed May 17 2023 16:26:02 for Medical Imaging Interaction Toolkit by
1.8.17