Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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 
55  MultiStatus(const QString& pluginId, int code, const QList<IStatus::Pointer>& newChildren,
56  const QString& message, const SourceLocation& sl);
57 
69  MultiStatus(const QString& pluginId, int code, const QList<IStatus::Pointer>& newChildren,
70  const QString& message, const ctkException& exception, const SourceLocation& sl);
71 
81  MultiStatus(const QString& pluginId, int code, const QString& message,
82  const SourceLocation& sl);
83 
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 
133  void Merge(const IStatus::Pointer& status);
134 
139  QString ToString() const override;
140 
141 };
142 
143 }
144 
145 #endif /* BERRYMULTISTATUS_H_ */
org_blueberry_core_runtime_Export.h
berry::Status
Definition: berryStatus.h:30
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berry::MultiStatus
Definition: berryMultiStatus.h:30
org_blueberry_core_runtime_EXPORT
#define org_blueberry_core_runtime_EXPORT
Definition: org_blueberry_core_runtime_Export.h:26
berryStatus.h
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:31
berry::IStatus::Severity
Severity
Definition: berryIStatus.h:56
berry::Status::SourceLocation
Definition: berryStatus.h:35
berry
Definition: QmitkPropertyItemModel.h:24