refs #526, reviewed setup reader (cache)

There are more adjustment when we eventually have all the features as discussed in the meeting available
This commit is contained in:
Klaus Basan
2016-01-02 21:09:16 +01:00
parent e7f8061511
commit 483c48cb82
3 changed files with 12 additions and 3 deletions

View File

@@ -65,13 +65,16 @@ namespace BlackCore
//! Setup has beem syncronized
void ps_setupSyncronized(bool success);
//! Setup has been changed
void ps_setupChanged();
private:
QNetworkAccessManager *m_networkManagerBootstrap = nullptr;
QNetworkAccessManager *m_networkManagerUpdateInfo = nullptr;
BlackMisc::LockFree<BlackMisc::Network::CFailoverUrlList> m_bootstrapUrls;
BlackMisc::LockFree<BlackMisc::Network::CFailoverUrlList> m_updateInfoUrls;
BlackMisc::CData<BlackCore::Data::GlobalSetup> m_setup {this}; //!< data cache setup
BlackMisc::CData<BlackCore::Data::UpdateInfo> m_updateInfo {this}; //!< data cache update info
BlackMisc::CData<BlackCore::Data::GlobalSetup> m_setup {this, &CSetupReader::ps_setupChanged}; //!< data cache setup
BlackMisc::CData<BlackCore::Data::UpdateInfo> m_updateInfo {this}; //!< data cache update info
//! Constructor
explicit CSetupReader(QObject *owner);