Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryMultiStatus.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 BERRYMULTISTATUS_H_
19 #define BERRYMULTISTATUS_H_
20 
21 #include "berryStatus.h"
22 
24 
25 namespace berry {
26 
35 
36 private:
37 
40  QList<IStatus::Pointer> children;
41 
42 
43  Severity GetMaxSeverity(const QList<Pointer> &children) const;
44 
45 public:
46 
48 
49 
58  MultiStatus(const QString& pluginId, int code, const QList<IStatus::Pointer>& newChildren,
59  const QString& message, const SourceLocation& sl);
60 
71  MultiStatus(const QString& pluginId, int code, const QList<IStatus::Pointer>& newChildren,
72  const QString& message, const ctkException& exception, const SourceLocation& sl);
73 
82  MultiStatus(const QString& pluginId, int code, const QString& message,
83  const SourceLocation& sl);
84 
95  MultiStatus(const QString& pluginId, int code, const QString& message,
96  const ctkException& exception, const SourceLocation& sl);
97 
103  void Add(IStatus::Pointer status);
104 
112  void AddAll(IStatus::Pointer status);
113 
114  /* (Intentionally not javadoc'd)
115  * Implements the corresponding method on <code>IStatus</code>.
116  */
117  QList<IStatus::Pointer> GetChildren() const override;
118 
119  /* (Intentionally not javadoc'd)
120  * Implements the corresponding method on <code>IStatus</code>.
121  */
122  bool IsMultiStatus() const override;
123 
135  void Merge(const IStatus::Pointer& status);
136 
141  QString ToString() const override;
142 
143 };
144 
145 }
146 
147 #endif /* BERRYMULTISTATUS_H_ */
#define org_blueberry_core_runtime_EXPORT
#define berryObjectMacro(...)
Definition: berryMacros.h:37