6#include <PhosphorLayer/phosphorlayer_export.h>
40 virtual
bool save(const QString& key, const QJsonObject& data) = 0;
45 virtual QJsonObject
load(const QString& key) const = 0;
48 virtual
bool has(const QString& key) const = 0;
51 virtual
void remove(const QString& key) = 0;
virtual ~ISurfaceStore()=default
virtual bool save(const QString &key, const QJsonObject &data)=0
Persist data under key.
virtual bool has(const QString &key) const =0
True if key exists in the store.
virtual QJsonObject load(const QString &key) const =0
Load the JSON object previously stored under key.
virtual void remove(const QString &key)=0
Remove the entry for key (no-op if absent).
Definition SurfaceAnimator.h:26