Medical Imaging Interaction Toolkit  2018.4.99-b585543d
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 
140  virtual Severity GetSeverity() const = 0;
141 
159  virtual bool IsMultiStatus() const = 0;
160 
168  virtual bool IsOK() const = 0;
169 
187  virtual bool Matches(const Severities& severityMask) const = 0;
188 
189  virtual QString GetFileName() const = 0;
190 
191  virtual QString GetMethodName() const = 0;
192 
193  virtual int GetLineNumber() const = 0;
194 };
195 
196 }
197 
198 Q_DECLARE_OPERATORS_FOR_FLAGS(berry::IStatus::Severities)
199 
200 #endif /* BERRYISTATUS_H_ */
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
#define org_blueberry_core_runtime_EXPORT
#define berryObjectMacro(...)
Definition: berryMacros.h:33