diff -r e3cecb93e76a -r a76e86df7ccd videocollection/tsrc/stubs/inc/xqsettingsmanagerstub.h --- a/videocollection/tsrc/stubs/inc/xqsettingsmanagerstub.h Wed Aug 18 09:50:14 2010 +0300 +++ b/videocollection/tsrc/stubs/inc/xqsettingsmanagerstub.h Thu Sep 02 20:28:16 2010 +0300 @@ -20,6 +20,7 @@ #include #include +#include class XQCentralRepositorySettingsKey : public QObject { @@ -27,11 +28,15 @@ public: + XQCentralRepositorySettingsKey(int uid, int key) { - Q_UNUSED(uid); - Q_UNUSED(key); + mUid = uid; + mKey = key; } + + int mUid; + int mKey; }; class XQSettingsManager : QObject @@ -54,7 +59,13 @@ public: QVariant readItemValue(XQCentralRepositorySettingsKey &key, int type); - static QVariant mReadItemValueReturnValue; + bool writeItemValue(const XQCentralRepositorySettingsKey& key, const QVariant& value); + + // decrease by one at beginning of every readItemValue -method. If goes below zero method fails + static int mReadItemSucceedCounter; + // decrease by one at beginning of every writeItemValue -method. If goes below zero method fails + static int mWriteItemSucceedCounter; + static QHash mWrittenValueHash; }; #endif // XQSETTINGSMANAGER_H