videocollection/tsrc/stubs/inc/xqsettingsmanagerstub.h
changeset 59 a76e86df7ccd
parent 52 e3cecb93e76a
--- 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 <QObject>
 #include <QVariant>
+#include <QHash>
 
 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<int, QVariant> mWrittenValueHash;
 };
 
 #endif // XQSETTINGSMANAGER_H