| Home · All Classes · Main Classes · Deprecated |
Interface for reading and storing key values. More...
Inherits QObject.
Inherited by MAggregateDataAccess, and MDataStore.
Signals | |
| void | valueChanged (const QString &key, const QVariant &value) |
Public Member Functions | |
| virtual | ~MDataAccess () |
| virtual QVariant | value (const QString &key) const =0 |
| virtual bool | setValue (const QString &key, const QVariant &value)=0 |
| virtual QStringList | allKeys () const =0 |
| virtual bool | contains (const QString &key) const =0 |
Interface for reading and storing key values.
Users can read and write key values using this interface. The user also get notified when changes happen in the key values.
| virtual MDataAccess::~MDataAccess | ( | ) | [inline, virtual] |
Destroys the MDataAccess.
| virtual QStringList MDataAccess::allKeys | ( | ) | const [pure virtual] |
Returns a list of all specified keys.
| virtual bool MDataAccess::contains | ( | const QString & | key | ) | const [pure virtual] |
Returns true if there exists a key called key and false otherwise.
| key | the key to test |
Sets a new value for a key. If the key isn't found, nothing happens and false is returned.
| key | the key to be changed. | |
| value | the new value. |
true if setting was successful, false otherwise Returns a value for a key. If the key doesn't exist, an invalid (QVariant::Invalid) value is returned.
| key | the key. |
| Copyright © 2010 Nokia Corporation | MeeGo Touch |