Home · All Classes · Main Classes · Deprecated |
Inherits MDataAccess.
Inherited by MFileDataStore, MGConfDataStore, and MSubDataStore.
Public Member Functions | |
virtual | ~MDataStore () |
virtual bool | createValue (const QString &key, const QVariant &value)=0 |
virtual void | remove (const QString &key)=0 |
virtual void | clear ()=0 |
Interface for reading and storing data.
The difference between this class and MDataAccess
is that this interface can also be used to create and remove keys.
virtual MDataStore::~MDataStore | ( | ) | [inline, virtual] |
Destroys the MDataStore.
virtual void MDataStore::clear | ( | ) | [pure virtual] |
Removes all entries in this datastore. Concrete implementations of MDataStore have to ensure that the data is being synchronized with the backend when this is called.
This will add a new key with the given value or change the value of an existing key if the key already exists.
Concrete implementations of MDataStore have to ensure that the data is being synchronized with the backend when this is called.
key | the key to set the value for | |
value | the value for the key |
true
if the key was changed or added, false
otherwise virtual void MDataStore::remove | ( | const QString & | key | ) | [pure virtual] |
Removes the data of the given key from the datastore. Concrete implementations of MDataStore have to ensure that the data is being synchronized with the backend when this is called.
Copyright © 2010 Nokia Corporation | MeeGo Touch |