mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user