Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
berryMultiStatus.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 BERRYMULTISTATUS_H_
15 #define BERRYMULTISTATUS_H_
16 
17 #include "berryStatus.h"
18 
20 
21 namespace berry {
22 
31 
32 private:
33 
36  QList<IStatus::Pointer> children;
37 
38 
39  Severity GetMaxSeverity(const QList<Pointer> &children) const;
40 
41 public:
42 
44 
54  MultiStatus(const QString& pluginId, int code, const QList<IStatus::Pointer>& newChildren,
55  const QString& message, const SourceLocation& sl);
56 
67  MultiStatus(const QString& pluginId, int code, const QList<IStatus::Pointer>& newChildren,
68  const QString& message, const ctkException& exception, const SourceLocation& sl);
69 
78  MultiStatus(const QString& pluginId, int code, const QString& message,
79  const SourceLocation& sl);
80 
91  MultiStatus(const QString& pluginId, int code, const QString& message,
92  const ctkException& exception, const SourceLocation& sl);
93 
99  void Add(IStatus::Pointer status);
100 
108  void AddAll(IStatus::Pointer status);
109 
110  /* (Intentionally not javadoc'd)
111  * Implements the corresponding method on <code>IStatus</code>.
112  */
113  QList<IStatus::Pointer> GetChildren() const override;
114 
115  /* (Intentionally not javadoc'd)
116  * Implements the corresponding method on <code>IStatus</code>.
117  */
118  bool IsMultiStatus() const override;
119 
131  void Merge(const IStatus::Pointer& status);
132 
137  QString ToString() const override;
138 
139 };
140 
141 }
142 
143 #endif /* BERRYMULTISTATUS_H_ */
Implements transparent reference counting.
#define org_blueberry_core_runtime_EXPORT
#define berryObjectMacro(...)
Definition: berryMacros.h:33