![]() |
LeechCraft
0.6.70-6645-gcd10d7e
Modular cross-platform feature rich live environment.
|
Provides access to a storage in an IPersistentStoragePlugin. More...
#include "ipersistentstorageplugin.h"
Public Member Functions | |
virtual | ~IPersistentStorage () |
Closes this storage handle. More... | |
virtual bool | HasKey (const QByteArray &key)=0 |
Checks if the given key exists in the storage. More... | |
virtual QVariant | Get (const QByteArray &key)=0 |
Returns the value associated with the given key. More... | |
virtual void | Set (const QByteArray &key, const QVariant &value)=0 |
Stores the value under the given key. More... | |
Provides access to a storage in an IPersistentStoragePlugin.
The storage is a key-value database. The keys can be queried via the Get() method and set or updated via the Set() method.
Definition at line 42 of file ipersistentstorageplugin.h.
|
inlinevirtual |
Closes this storage handle.
Definition at line 47 of file ipersistentstorageplugin.h.
References Get(), HasKey(), and Set().
|
pure virtual |
Returns the value associated with the given key.
[in] | key | The key for which the value should be returned. |
Referenced by ~IPersistentStorage().
|
pure virtual |
Checks if the given key exists in the storage.
[in] | key | The key to check for. |
Referenced by ~IPersistentStorage().
|
pure virtual |
Stores the value under the given key.
[in] | key | The key for which the value should be returned. |
[in] | value | The value to associate with the key. |
Referenced by ~IPersistentStorage().