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

MSubDataStore Class Reference

Inherits MDataStore.

List of all members.

Public Member Functions

 MSubDataStore (const QString &prefix, MDataStore &baseStore)
virtual ~MSubDataStore ()
QString prefix () const

Detailed Description

MSubDataStore takes another DataStore object and gives a limited view to it.

MSubDataStore doesn't store any data by itself but instead it uses another DataStore object for this. MSubDataStore offers a limited view to the keys of the underlying DataStore. It only allows access to keys with a given prefix. This can be seen as a namespace limitation. The prefix or namespace as well as the underlying DataStore object are given at construction time and they can't be changed after that.


Constructor & Destructor Documentation

MSubDataStore::MSubDataStore ( const QString prefix,
MDataStore baseStore 
)

Constructs a new MSubDataStore view to another DataStore object.

Parameters:
prefix the namespace for the MSubDataStore.
baseStore the underlying base DataStore object.
MSubDataStore::~MSubDataStore (  )  [virtual]

Destructs the MSubDataStore.


Member Function Documentation

QString MSubDataStore::prefix (  )  const

Gets the prefix or namespace that was given to the class at construction time.

Returns:
the prefix.

Copyright © 2010 Nokia Corporation
MeeGo Touch