21 #include <QStringList>
35 void appendSystemInfo();
54 ERROR_FILE_CANNOT_OPEN,
55 ERROR_INVALID_XML_FILE,
56 ERROR_INVALID_PENCIL_FILE,
60 ERROR_INVALID_LAYER_TYPE,
61 ERROR_INVALID_FRAME_NUMBER,
62 ERROR_LOAD_IMAGE_FAIL,
65 ERROR_LOAD_SOUND_FILE,
68 ERROR_FFMPEG_NOT_FOUND,
71 ERROR_NEED_AT_LEAST_ONE_CAMERA_LAYER
74 Status(
const ErrorCode code);
78 ErrorCode code() {
return mCode; }
79 bool ok()
const {
return (mCode == OK) || (mCode == SAFE); }
82 QString description()
const {
return mDescription; }
85 void setTitle(
QString title) { mTitle = title; }
86 void setDescription(
QString description) { mDescription = description; }
89 bool operator==(ErrorCode code)
const;
90 bool operator!=(ErrorCode code)
const;
102 Status::ErrorCode errorcode = Status::OK;
106 #define STATUS_CHECK( x )\
107 { Status st = (x); if (!st.ok()) { return st; } }
110 #ifndef STATUS_FAILED
111 #define STATUS_FAILED(stcode) ((int)stcode >= (int)Status::FAIL)
114 #endif // PENCILERROR_H
bool isEmpty() const const