mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
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:
@@ -62,7 +62,8 @@ namespace BlackCore
|
||||
if (!m_dbDebugFlag) { return false; }
|
||||
|
||||
// further checks could go here
|
||||
return isDevelopment();
|
||||
bool f = isDevelopment();
|
||||
return f;
|
||||
}
|
||||
|
||||
void CGlobalSetup::setServerDebugFlag(bool debug)
|
||||
|
||||
@@ -124,6 +124,11 @@ namespace BlackCore
|
||||
}
|
||||
}
|
||||
|
||||
void CSetupReader::ps_setupChanged()
|
||||
{
|
||||
// settings have changed on disk
|
||||
}
|
||||
|
||||
bool CSetupReader::localBootstrapFile(QString &fileName)
|
||||
{
|
||||
QString dir(CProject::getSwiftPrivateResourceDir());
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user