57 virtual bool HasKey (
const QByteArray& key) = 0;
72 virtual QVariant
Get (
const QByteArray& key) = 0;
82 virtual void Set (
const QByteArray& key,
const QVariant& value) = 0;
Provides access to a storage in an IPersistentStoragePlugin.
virtual QVariant Get(const QByteArray &key)=0
Returns the value associated with the given key.
Interface for plugins providing persistent (and possibly secure) storage.
virtual IPersistentStorage_ptr RequestStorage()=0
Request an proxy handle to the storage.
virtual ~IPersistentStoragePlugin()
virtual bool HasKey(const QByteArray &key)=0
Checks if the given key exists in the storage.
std::shared_ptr< IPersistentStorage > IPersistentStorage_ptr
virtual ~IPersistentStorage()
Closes this storage handle.
virtual void Set(const QByteArray &key, const QVariant &value)=0
Stores the value under the given key.