Ref T237, init caches from resource files (means the files delivered with swift)

* initFromLocalResourceFiles reads all local DB data
* made 2 functions virtual readFromJsonFiles, readFromJsonFilesInBackground
This commit is contained in:
Klaus Basan
2018-01-29 08:08:15 +01:00
parent c6b942dc15
commit deddf7c957
9 changed files with 73 additions and 26 deletions

View File

@@ -217,6 +217,22 @@ namespace BlackCore
return CUrl();
}
CStatusMessageList CInfoDataReader::readFromJsonFiles(const QString &dir, CEntityFlags::Entity whatToRead)
{
Q_UNUSED(dir);
Q_UNUSED(whatToRead);
Q_ASSERT_X(false, Q_FUNC_INFO, "Not supported");
return CStatusMessage(this).error("Not supported");
}
bool CInfoDataReader::readFromJsonFilesInBackground(const QString &dir, CEntityFlags::Entity whatToRead)
{
Q_UNUSED(dir);
Q_UNUSED(whatToRead);
Q_ASSERT_X(false, Q_FUNC_INFO, "Not supported");
return false;
}
CEntityFlags::Entity CInfoDataReader::getSupportedEntities() const
{
return this->getEntityForMode();