shared: SqliteDBService: Add 'NOACCESS'. Add function to convert enum to str

Šī revīzija ir iekļauta:
Albert S. 2022-06-23 15:23:37 +02:00
vecāks b3c6ce3899
revīzija 01a6a499c5

Parādīt failu

@ -13,9 +13,24 @@ enum SaveFileResult
SKIPPED,
DBFAIL,
PROCESSFAIL,
NOTFOUND
NOTFOUND,
NOACCESS
};
static inline QString SaveFileResultToString(SaveFileResult sfr)
{
QStringList SaveFileResultStr;
SaveFileResultStr << "OK"
<< "SKIPPED"
<< "DBFAIL"
<< "PROCESSFAIL"
<< "NOTFOUND"
<< "NOACCESS";
return SaveFileResultStr[(int)sfr];
}
class SqliteDbService
{
private: