18 #ifndef BERRYSTATUS_H_
19 #define BERRYSTATUS_H_
41 SourceLocation(
const QString& fileName = QString(),
const QString& methodName = QString(),
int lineNumber = 0)
42 : fileName(fileName), methodName(methodName), lineNumber(lineNumber)
78 ctkException* exception;
82 static const QList<IStatus::Pointer> theEmptyStatusArray;
107 Status(
const Severity& severity,
const QString& pluginId,
int code,
const QString& message,
121 Status(
const Severity& severity,
const QString& pluginId,
int code,
const QString& message,
134 Status(
const Severity& severity,
const QString& pluginId,
const QString& message,
148 Status(
const Severity& severity,
const QString& pluginId,
const QString& message,
154 QList<IStatus::Pointer> GetChildren()
const override;
159 int GetCode()
const override;
164 const ctkException* GetException()
const override;
169 QString GetMessage()
const override;
174 QString GetPlugin()
const override;
179 Severity GetSeverity()
const override;
184 bool IsMultiStatus()
const override;
189 bool IsOK()
const override;
194 bool Matches(
const Severities& severityMask)
const override;
196 QString GetFileName()
const override;
198 QString GetMethodName()
const override;
200 int GetLineNumber()
const override;
210 virtual void SetCode(
int code);
218 virtual void SetException(
const ctkException& exception);
227 virtual void SetMessage(
const QString& message);
234 virtual void SetPlugin(
const QString& pluginId);
242 virtual void SetSeverity(
const Severity& severity);
251 QString ToString()
const override;
257 #define BERRY_STATUS_LOC berry::Status::SourceLocation(__FILE__, __FUNCTION__, __LINE__)
#define org_blueberry_core_runtime_EXPORT
SourceLocation(const QString &fileName=QString(), const QString &methodName=QString(), int lineNumber=0)