shared: SqliteDBService: Add 'NOACCESS'. Add function to convert enum to str
This commit is contained in:
bovenliggende
b3c6ce3899
commit
01a6a499c5
@ -13,9 +13,24 @@ enum SaveFileResult
|
|||||||
SKIPPED,
|
SKIPPED,
|
||||||
DBFAIL,
|
DBFAIL,
|
||||||
PROCESSFAIL,
|
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
|
class SqliteDbService
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
Laden…
Verwijs in nieuw issue
Block a user