From 69837ed60f31cfc8048e584b21345f07a5dfe03e Mon Sep 17 00:00:00 2001 From: Albert S Date: Fri, 24 Jun 2022 17:32:34 +0200 Subject: [PATCH] shared: SaveFileResult: Add OK_WASEMPTY when processor could not extract anything --- shared/savefileresult.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/shared/savefileresult.h b/shared/savefileresult.h index e164db9..9e1bff8 100644 --- a/shared/savefileresult.h +++ b/shared/savefileresult.h @@ -6,11 +6,13 @@ enum SaveFileResult { OK, - SKIPPED, - DBFAIL, - PROCESSFAIL, - NOTFOUND, - NOACCESS + OK_WASEMPTY, /* The file was successfully read but no content could be extracted. Might be just an empty document or + so*/ + SKIPPED, /* The file was not processed/saved, because it has not changed */ + DBFAIL, /* A database error occured */ + PROCESSFAIL, /* General processor failure */ + NOTFOUND, /* The file was not found */ + NOACCESS /* The process can't read the file */ }; static inline QString SaveFileResultToString(SaveFileResult sfr) @@ -18,6 +20,7 @@ static inline QString SaveFileResultToString(SaveFileResult sfr) QStringList SaveFileResultStr; SaveFileResultStr << "OK" + << "OK_WASEMPTY" << "SKIPPED" << "DBFAIL" << "PROCESSFAIL"