Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berrySaveablesLifecycleEvent.cpp
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 
18 
19 namespace berry
20 {
21 
22 const int SaveablesLifecycleEvent::POST_OPEN = 1;
26 
28  int eventType_, const QList<Saveable::Pointer>& saveables_,
29  bool force_) :
30  eventType(eventType_), saveables(saveables_), force(force_), veto(false),
31  source(source_)
32 {
33 
34 }
35 
37 {
38  return eventType;
39 }
40 
42 {
43  return source;
44 }
45 
46 QList<Saveable::Pointer> SaveablesLifecycleEvent::GetSaveables()
47 {
48  return saveables;
49 }
50 
52 {
53  return veto;
54 }
55 
57 {
58  this->veto = veto;
59 }
60 
62 {
63  return force;
64 }
65 
66 }
SaveablesLifecycleEvent(Object::Pointer source_, int eventType_, const QList< Saveable::Pointer > &saveables_, bool force_)
QList< Saveable::Pointer > GetSaveables()