Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berryIStatus.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 #ifndef BERRYISTATUS_H_
18 #define BERRYISTATUS_H_
19 
20 #include <berryObject.h>
21 #include <berryMacros.h>
22 
24 
25 namespace berry
26 {
27 
57 {
59 
60  enum Severity
61  {
65  OK_TYPE = 0x00,
66 
68  INFO_TYPE = 0x01,
69 
71  WARNING_TYPE = 0x02,
72 
74  ERROR_TYPE = 0x04,
75 
77  CANCEL_TYPE = 0x08
78  };
79 
80  Q_DECLARE_FLAGS(Severities, Severity)
81 
82 
89  virtual QList<IStatus::Pointer> GetChildren() const = 0;
90 
96  virtual int GetCode() const = 0;
97 
106  virtual const ctkException* GetException() const = 0;
107 
114  virtual QString GetMessage() const = 0;
115 
122  virtual QString GetPlugin() const = 0;
123 
144  virtual Severity GetSeverity() const = 0;
145 
163  virtual bool IsMultiStatus() const = 0;
164 
172  virtual bool IsOK() const = 0;
173 
191  virtual bool Matches(const Severities& severityMask) const = 0;
192 
193  virtual QString GetFileName() const = 0;
194 
195  virtual QString GetMethodName() const = 0;
196 
197  virtual int GetLineNumber() const = 0;
198 };
199 
200 }
201 
202 Q_DECLARE_OPERATORS_FOR_FLAGS(berry::IStatus::Severities)
203 
204 #endif /* BERRYISTATUS_H_ */
itk::SmartPointer< Self > Pointer
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
#define org_blueberry_core_runtime_EXPORT
#define berryObjectMacro(...)
Definition: berryMacros.h:37