mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
refs #475, allow to load DB data from disk.
* Will allow to load data if DB is not accessible / available * Also allows to save, so a special set can be saved for testing/forensic. * fixed status bar, as received data no longer means DB is alive
This commit is contained in:
committed by
Mathew Sutcliffe
parent
326a465b54
commit
aa653e0d85
@@ -303,6 +303,20 @@ namespace BlackMisc
|
||||
return this->m_webDataReaderProvider->canConnectSwiftDb();
|
||||
}
|
||||
|
||||
bool CWebDataServicesAware::writeDbDataToDisk(const QString &dir) const
|
||||
{
|
||||
Q_ASSERT_X(this->m_webDataReaderProvider, Q_FUNC_INFO, "Missing provider");
|
||||
if (!hasProvider()) { return false; }
|
||||
return this->m_webDataReaderProvider->writeDbDataToDisk(dir);
|
||||
}
|
||||
|
||||
bool CWebDataServicesAware::readDbDataFromDisk(const QString &dir, bool inBackround)
|
||||
{
|
||||
Q_ASSERT_X(this->m_webDataReaderProvider, Q_FUNC_INFO, "Missing provider");
|
||||
if (!hasProvider()) { return false; }
|
||||
return this->m_webDataReaderProvider->readDbDataFromDisk(dir, inBackround);
|
||||
}
|
||||
|
||||
void CWebDataServicesAware::disconnectSignals()
|
||||
{
|
||||
for (QMetaObject::Connection &c : m_swiftConnections)
|
||||
|
||||
Reference in New Issue
Block a user