2022-06-24 17:05:44 +02:00
|
|
|
#ifndef SAVEFILERESULT_H
|
|
|
|
#define SAVEFILERESULT_H
|
|
|
|
|
|
|
|
#include <QStringList>
|
|
|
|
|
|
|
|
enum SaveFileResult
|
|
|
|
{
|
|
|
|
OK,
|
2022-06-24 17:32:34 +02:00
|
|
|
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 */
|
2022-06-24 17:05:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
static inline QString SaveFileResultToString(SaveFileResult sfr)
|
|
|
|
{
|
|
|
|
QStringList SaveFileResultStr;
|
|
|
|
|
|
|
|
SaveFileResultStr << "OK"
|
2022-06-24 17:32:34 +02:00
|
|
|
<< "OK_WASEMPTY"
|
2022-06-24 17:05:44 +02:00
|
|
|
<< "SKIPPED"
|
|
|
|
<< "DBFAIL"
|
|
|
|
<< "PROCESSFAIL"
|
|
|
|
<< "NOTFOUND"
|
|
|
|
<< "NOACCESS";
|
|
|
|
|
|
|
|
return SaveFileResultStr[(int)sfr];
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // SAVEFILERESULT_H
|