refs #545 CCached allows to query whether a value is saved or not.

This commit is contained in:
Mathew Sutcliffe
2015-12-20 23:06:20 +00:00
parent 2c0b4f9555
commit d9167cf226
3 changed files with 31 additions and 5 deletions

View File

@@ -70,6 +70,12 @@ namespace BlackMisc
//! Get the timestamp corresponding to the element.
qint64 getTimestamp(const Element &element) const;
//! Get whether this element is already saved to disk.
bool isSaved(const Element &element) const;
//! Get whether this element is currently being saved to disk.
bool isSaving(const Element &element) const;
//! Synchronize with a change caused by another page.
//! Connected to signal CValueCache::valuesChanged.
//! \param values The new values.