14 #ifndef BERRYSTATUS_H_
15 #define BERRYSTATUS_H_
37 SourceLocation(
const QString& fileName = QString(),
const QString& methodName = QString(),
int lineNumber = 0)
38 : fileName(fileName), methodName(methodName), lineNumber(lineNumber)
74 ctkException* exception;
78 static const QList<IStatus::Pointer> theEmptyStatusArray;
104 Status(
const Severity& severity,
const QString& pluginId,
int code,
const QString& message,
119 Status(
const Severity& severity,
const QString& pluginId,
int code,
const QString& message,
133 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__)