mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Follow up of T156, improved setup loading dialog
* allow to load the delivered setup file if there are no other data * display setup cache information
This commit is contained in:
committed by
Mathew Sutcliffe
parent
bdbf2e75b4
commit
071f327fca
@@ -74,6 +74,14 @@ namespace BlackCore
|
||||
//! \threadsafe
|
||||
BlackCore::Data::CGlobalSetup getSetup() const;
|
||||
|
||||
//! Has cached setup ("bootstrap") data?
|
||||
//! \threadsafe
|
||||
bool hasCachedSetup() const;
|
||||
|
||||
//! Get setup cache timestamp
|
||||
//! \threadsafe
|
||||
QDateTime getSetupCacheTimestamp() const;
|
||||
|
||||
//! Load the cache file local bootstrap file
|
||||
//! \remark can be used during installation as failover
|
||||
//! \threadsafe
|
||||
@@ -87,6 +95,14 @@ namespace BlackCore
|
||||
//! \threadsafe
|
||||
BlackMisc::Db::CDistributionList getDistributionInfo() const;
|
||||
|
||||
//! Has cached distribution info?
|
||||
//! \threadsafe
|
||||
bool hasCachedDistributionInfo() const;
|
||||
|
||||
//! Distribution cache timestamp
|
||||
//! \threadsafe
|
||||
QDateTime getDistributionCacheTimestamp() const;
|
||||
|
||||
//! Last distribution URL successfully read
|
||||
//! \threadsafe
|
||||
QString getLastSuccessfulDistributionUrl() const;
|
||||
@@ -176,8 +192,8 @@ namespace BlackCore
|
||||
QString m_lastSuccessfulSetupUrl; //!< last successful read setup URL
|
||||
QString m_lastSuccessfulDistributionUrl; //!< last successful read distribution URL
|
||||
BlackMisc::CStatusMessageList m_setupReadErrorMsgs; //!< last parsing error messages
|
||||
BlackMisc::CData<BlackCore::Data::TGlobalSetup> m_setup {this, &CSetupReader::ps_setupChanged}; //!< data cache setup
|
||||
BlackMisc::CData<BlackMisc::Db::TDistributionsInfo> m_distributions {this}; //!< data cache distributions
|
||||
BlackMisc::CData<BlackCore::Data::TGlobalSetup> m_setup { this, &CSetupReader::ps_setupChanged }; //!< data cache setup
|
||||
BlackMisc::CData<BlackMisc::Db::TDistributionsInfo> m_distributions { this }; //!< data cache distributions
|
||||
|
||||
//! Read by local individual file and update cache from that
|
||||
BlackMisc::CStatusMessageList readLocalBootstrapFile(const QString &fileName);
|
||||
|
||||
Reference in New Issue
Block a user