Home · All Classes · Main Classes · Deprecated
Public Member Functions

MDataStore Class Reference

Inherits MDataAccess.

Inherited by MFileDataStore, MGConfDataStore, and MSubDataStore.

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

virtual MDataStore::~MDataStore (  )  [inline, virtual]

Destroys the MDataStore.


Member Function Documentation

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.

virtual bool MDataStore::createValue ( const QString key,
const QVariant value 
) [pure virtual]

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.

Parameters:
key the key to set the value for
value the value for the key
Returns:
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