camerauis/cameraxui/cxengine/tsrc/fakeclasses/cxefakesettingsstore.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 23 61bc0f252b2b
child 25 2c87b2808fd7
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
     1 /*
       
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 #ifndef CXEFAKESETTINGS_H
       
    18 #define CXEFAKESETTINGS_H
       
    19 
       
    20 #include "cxesettingsstore.h"
       
    21 #include "cxeerror.h"
       
    22 
       
    23 class CxeFakeSettingsStore : public CxeSettingsStore
       
    24 {
       
    25 
       
    26 public:
       
    27     CxeFakeSettingsStore();
       
    28     ~CxeFakeSettingsStore();
       
    29 
       
    30 public: // from base class
       
    31     void reset();
       
    32     CxeError::Id get(const QString& key, QVariant &value);
       
    33     void startMonitoring(long int uid, unsigned long int key, Cxe::SettingKeyType type, QVariant &value);
       
    34     CxeError::Id set(const QString& key,const QVariant newValue);
       
    35     QHash<QString, QVariantList> loadVariationSettings(QList<QString> &settingKeys);
       
    36 
       
    37 private:
       
    38     void resetSettings();
       
    39 
       
    40 private:
       
    41     QHash<QString, QVariant> mSettingKeyHash;
       
    42     QHash<QString, QVariant> mVariationKeyHash;
       
    43 };
       
    44 
       
    45 #endif /*CXEFAKESETTINGS_H*/
       
    46 
       
    47 // end  of file