mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 13:55:36 +08:00
refs #581 Use JSON to store timestamps in data cache revision file.
This commit is contained in:
@@ -59,6 +59,9 @@ namespace BlackMisc
|
||||
//! Discard timestamps and return as variant map.
|
||||
CVariantMap toVariantMap() const;
|
||||
|
||||
//! Discard values and return as map of timestamps.
|
||||
QMap<QString, qint64> toTimestampMap() const;
|
||||
|
||||
//! \copydoc CValueObject::registerMetadata`
|
||||
static void registerMetadata();
|
||||
|
||||
@@ -207,7 +210,7 @@ namespace BlackMisc
|
||||
|
||||
//! Load from Json files in a given directory any values which differ from the current ones, and insert them in o_values.
|
||||
//! \threadsafe
|
||||
CStatusMessage loadFromFiles(const QString &directory, const CVariantMap ¤t, CValueCachePacket &o_values) const;
|
||||
CStatusMessage loadFromFiles(const QString &directory, const QSet<QString> &keys, const CVariantMap ¤t, CValueCachePacket &o_values) const;
|
||||
|
||||
//! Mark all values with keys that start with the given prefix as having been saved.
|
||||
//! \threadsafe
|
||||
|
||||
Reference in New Issue
Block a user