Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
berryIStatus.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 #ifndef BERRYISTATUS_H_
14 #define BERRYISTATUS_H_
15 
16 #include <berryObject.h>
17 #include <berryMacros.h>
18 
20 
21 namespace berry
22 {
23 
53 {
55 
56  enum Severity
57  {
61  OK_TYPE = 0x00,
62 
64  INFO_TYPE = 0x01,
65 
67  WARNING_TYPE = 0x02,
68 
70  ERROR_TYPE = 0x04,
71 
73  CANCEL_TYPE = 0x08
74  };
75 
76  Q_DECLARE_FLAGS(Severities, Severity)
77 
78 
85  virtual QList<IStatus::Pointer> GetChildren() const = 0;
86 
92  virtual int GetCode() const = 0;
93 
102  virtual const ctkException* GetException() const = 0;
103 
110  virtual QString GetMessage() const = 0;
111 
118  virtual QString GetPlugin() const = 0;
119 
139  virtual Severity GetSeverity() const = 0;
140 
158  virtual bool IsMultiStatus() const = 0;
159 
167  virtual bool IsOK() const = 0;
168 
186  virtual bool Matches(const Severities& severityMask) const = 0;
187 
188  virtual QString GetFileName() const = 0;
189 
190  virtual QString GetMethodName() const = 0;
191 
192  virtual int GetLineNumber() const = 0;
193 };
194 
195 }
196 
197 Q_DECLARE_OPERATORS_FOR_FLAGS(berry::IStatus::Severities)
198 
199 #endif /* BERRYISTATUS_H_ */
org_blueberry_core_runtime_Export.h
berryMacros.h
berry::Object
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
org_blueberry_core_runtime_EXPORT
#define org_blueberry_core_runtime_EXPORT
Definition: org_blueberry_core_runtime_Export.h:26
berry::IStatus
Definition: berryIStatus.h:52
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:31
berry::IStatus::Severity
Severity
Definition: berryIStatus.h:56
berryObject.h
berry
Definition: QmitkPropertyItemModel.h:24