Preparation of T126: Minor tweaks, renaming and formatting of InfoDataReader

* unified member access (this->m_xy => m_xy)
* set object name of readers
* waitForSharedInfoObjectsThenRead (not just waiting, also reading afterwards)
This commit is contained in:
Klaus Basan
2017-08-11 18:01:10 +02:00
committed by Mathew Sutcliffe
parent 2387edb5a0
commit f694ded5f2
3 changed files with 137 additions and 155 deletions

View File

@@ -494,13 +494,15 @@ namespace BlackCore
int getInfoObjectCount(BlackMisc::Network::CEntityFlags::Entity entity, BlackCore::Db::CInfoDataReader *reader) const;
//! Wait for DB info objects to be read
bool waitForDbInfoObjects(BlackMisc::Network::CEntityFlags::Entity entities);
bool waitForDbInfoObjectsThenRead(BlackMisc::Network::CEntityFlags::Entity entities);
//! Wait for shared info objects to be read
bool waitForSharedInfoObjects(BlackMisc::Network::CEntityFlags::Entity entities);
//! \return true means info objects available
bool waitForSharedInfoObjectsThenRead(BlackMisc::Network::CEntityFlags::Entity entities);
//! Wait for info objects to be read
bool waitForInfoObjects(BlackMisc::Network::CEntityFlags::Entity entities, const QString &info, BlackCore::Db::CInfoDataReader *reader, int &trials);
//! \return true means info objects available
bool waitForInfoObjectsThenRead(BlackMisc::Network::CEntityFlags::Entity entities, const QString &info, BlackCore::Db::CInfoDataReader *reader, int &trials);
CWebReaderFlags::WebReader m_readers = CWebReaderFlags::WebReaderFlag::None; //!< which readers are available
BlackMisc::Network::CEntityFlags::Entity m_entitiesPeriodicallyRead = BlackMisc::Network::CEntityFlags::NoEntity; //!< entities permanently updated by timers