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:
Klaus Basan
2015-09-30 05:05:03 +02:00
committed by Mathew Sutcliffe
parent 326a465b54
commit aa653e0d85
11 changed files with 379 additions and 25 deletions

View File

@@ -25,6 +25,7 @@
#include "blackmisc/weather/metarset.h"
#include "blackmisc/logcategorylist.h"
#include "blackmisc/countrylist.h"
#include "blackmisc/project.h"
#include <QObject>
namespace BlackCore
@@ -227,6 +228,12 @@ namespace BlackCore
//! \ingroup webdatareaderprovider
virtual bool canConnectSwiftDb() const override;
//! Save all DB data to JSON files
virtual bool writeDbDataToDisk(const QString &dir) const override;
//! Load DB data from JSON files
virtual bool readDbDataFromDisk(const QString &dir, bool inBackground) override;
public slots:
//! First read (allows to immediately read in background)
void readAllInBackground(int delayMs);