mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-19 20:25:29 +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; }
|
if (!m_dbDebugFlag) { return false; }
|
||||||
|
|
||||||
// further checks could go here
|
// further checks could go here
|
||||||
return isDevelopment();
|
bool f = isDevelopment();
|
||||||
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGlobalSetup::setServerDebugFlag(bool debug)
|
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)
|
bool CSetupReader::localBootstrapFile(QString &fileName)
|
||||||
{
|
{
|
||||||
QString dir(CProject::getSwiftPrivateResourceDir());
|
QString dir(CProject::getSwiftPrivateResourceDir());
|
||||||
|
|||||||
@@ -65,13 +65,16 @@ namespace BlackCore
|
|||||||
//! Setup has beem syncronized
|
//! Setup has beem syncronized
|
||||||
void ps_setupSyncronized(bool success);
|
void ps_setupSyncronized(bool success);
|
||||||
|
|
||||||
|
//! Setup has been changed
|
||||||
|
void ps_setupChanged();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QNetworkAccessManager *m_networkManagerBootstrap = nullptr;
|
QNetworkAccessManager *m_networkManagerBootstrap = nullptr;
|
||||||
QNetworkAccessManager *m_networkManagerUpdateInfo = nullptr;
|
QNetworkAccessManager *m_networkManagerUpdateInfo = nullptr;
|
||||||
BlackMisc::LockFree<BlackMisc::Network::CFailoverUrlList> m_bootstrapUrls;
|
BlackMisc::LockFree<BlackMisc::Network::CFailoverUrlList> m_bootstrapUrls;
|
||||||
BlackMisc::LockFree<BlackMisc::Network::CFailoverUrlList> m_updateInfoUrls;
|
BlackMisc::LockFree<BlackMisc::Network::CFailoverUrlList> m_updateInfoUrls;
|
||||||
BlackMisc::CData<BlackCore::Data::GlobalSetup> m_setup {this}; //!< data cache setup
|
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
|
BlackMisc::CData<BlackCore::Data::UpdateInfo> m_updateInfo {this}; //!< data cache update info
|
||||||
|
|
||||||
//! Constructor
|
//! Constructor
|
||||||
explicit CSetupReader(QObject *owner);
|
explicit CSetupReader(QObject *owner);
|
||||||
|
|||||||
Reference in New Issue
Block a user