mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
refs #815 When a cache/settings file has errors, back it up before it can be overwritten.
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include <QChar>
|
||||
#include <QDBusArgument>
|
||||
#include <QDateTime>
|
||||
#include <QFile>
|
||||
#include <QJsonObject>
|
||||
#include <QMap>
|
||||
#include <QMetaType>
|
||||
@@ -320,6 +321,7 @@ namespace BlackMisc
|
||||
Element &getElement(const QString &key);
|
||||
Element &getElement(const QString &key, QMap<QString, ElementPtr>::const_iterator pos);
|
||||
std::tuple<CVariant, qint64, bool> getValue(const QString &key);
|
||||
void backupFile(QFile &file) const;
|
||||
|
||||
virtual void connectPage(Private::CValuePage *page);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user