shared: SaveFileResult: Add OK_WASEMPTY when processor could not extract anything

This commit is contained in:
Albert S. 2022-06-24 17:32:34 +02:00
부모 2ad99699bf
커밋 69837ed60f

파일 보기

@ -6,11 +6,13 @@
enum SaveFileResult enum SaveFileResult
{ {
OK, OK,
SKIPPED, OK_WASEMPTY, /* The file was successfully read but no content could be extracted. Might be just an empty document or
DBFAIL, so*/
PROCESSFAIL, SKIPPED, /* The file was not processed/saved, because it has not changed */
NOTFOUND, DBFAIL, /* A database error occured */
NOACCESS PROCESSFAIL, /* General processor failure */
NOTFOUND, /* The file was not found */
NOACCESS /* The process can't read the file */
}; };
static inline QString SaveFileResultToString(SaveFileResult sfr) static inline QString SaveFileResultToString(SaveFileResult sfr)
@ -18,6 +20,7 @@ static inline QString SaveFileResultToString(SaveFileResult sfr)
QStringList SaveFileResultStr; QStringList SaveFileResultStr;
SaveFileResultStr << "OK" SaveFileResultStr << "OK"
<< "OK_WASEMPTY"
<< "SKIPPED" << "SKIPPED"
<< "DBFAIL" << "DBFAIL"
<< "PROCESSFAIL" << "PROCESSFAIL"