7#include <PhosphorLayer/phosphorlayer_export.h>
48 bool save(
const QString& key,
const QJsonObject& data)
override;
49 QJsonObject
load(
const QString& key)
const override;
50 bool has(
const QString& key)
const override;
51 void remove(
const QString& key)
override;
58 std::unique_ptr<Impl> m_impl;
Key-value JSON store for surface-related persistence.
Definition ISurfaceStore.h:32
File-backed ISurfaceStore — one JSON document on disk.
Definition JsonSurfaceStore.h:43
QJsonObject load(const QString &key) const override
Load the JSON object previously stored under key.
bool has(const QString &key) const override
True if key exists in the store.
~JsonSurfaceStore() override
QString filePath() const
File path this store reads from / writes to.
void remove(const QString &key) override
Remove the entry for key (no-op if absent).
bool save(const QString &key, const QJsonObject &data) override
Persist data under key.
JsonSurfaceStore(QString filePath)
Definition SurfaceAnimator.h:26