Ref T246, allow to load DB data per entity from resource files

This commit is contained in:
Klaus Basan
2018-07-17 01:26:40 +02:00
parent 8bee7f81f6
commit 35a1a715d8
6 changed files with 48 additions and 11 deletions

View File

@@ -474,12 +474,17 @@ namespace BlackCore
//! Load DB data from disk (mainly for initial data load and testing scenarios)
//! \remark if the DB readers are alred in aother thread reads in background
//! \sa CWebDataServices::initDbCachesFromLocalResourceFiles for reading from local resource file
bool readDbDataFromDisk(const QString &dir, bool inBackground, bool overrideNewerOnly);
//! Init caches from local DB files
//! \remark the shared files coming with the installer
BlackMisc::CStatusMessageList initDbCachesFromLocalResourceFiles(bool inBackground);
//! Init caches from local DB files per given entities
//! \remark the shared files coming with the installer
BlackMisc::CStatusMessageList initDbCachesFromLocalResourceFiles(BlackMisc::Network::CEntityFlags::Entity entities, bool inBackground);
signals:
//! Combined read signal
void dataRead(BlackMisc::Network::CEntityFlags::Entity entity, BlackMisc::Network::CEntityFlags::ReadState state, int number);