Home · All Classes · Main Classes · Deprecated |
Inherits MDataStore.
Public Member Functions | |
MSubDataStore (const QString &prefix, MDataStore &baseStore) | |
virtual | ~MSubDataStore () |
QString | prefix () const |
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.
MSubDataStore::MSubDataStore | ( | const QString & | prefix, | |
MDataStore & | baseStore | |||
) |
Constructs a new MSubDataStore view to another DataStore object.
prefix | the namespace for the MSubDataStore. | |
baseStore | the underlying base DataStore object. |
MSubDataStore::~MSubDataStore | ( | ) | [virtual] |
Destructs the MSubDataStore.
QString MSubDataStore::prefix | ( | ) | const |
Gets the prefix or namespace that was given to the class at construction time.
Copyright © 2010 Nokia Corporation | MeeGo Touch |