refs #644 Add method CCached::save, like setAndSave but using the currently set value.

Implemented with a flag in CValueCachePacket to indicate a request to save only.
This commit is contained in:
Mathew Sutcliffe
2016-04-27 19:39:49 +01:00
parent d9d30a339a
commit f4eadddee7
4 changed files with 41 additions and 14 deletions

View File

@@ -69,7 +69,7 @@ namespace BlackMisc
CVariant getValueCopy(const Element &element) const;
//! Write the value corresponding to the element's key and begin synchronizing it to any other pages.
CStatusMessage setValue(Element &element, const CVariant &value, qint64 timestamp, bool save = false);
CStatusMessage setValue(Element &element, CVariant value, qint64 timestamp, bool save = false, bool ignoreValue = false);
//! Get the key string corresponding to the element.
const QString &getKey(const Element &element) const;