camerauis/cameraxui/cxengine/tsrc/fakeclasses/cxefakesettingsstore.h
changeset 19 d9aefe59d544
child 37 64817133cd1d
equal deleted inserted replaced
3:8b2d6d0384b0 19:d9aefe59d544
       
     1 /*
       
     2 * Copyright (c) 2009 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 "cxesettingscenrepstore.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 get(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> loadRuntimeSettings(QList<QString>& keylist);
       
    36 
       
    37 private:
       
    38     QHash<QString, QVariant> mSettingKeyHash;
       
    39     QHash<QString, QVariant> mRuntimeKeyHash;
       
    40 };
       
    41 
       
    42 #endif /*CXEFAKESETTINGS_H*/
       
    43 
       
    44 // end  of file