diff -r 24fd82631616 -r ccc0e7e3344f camerauis/cameraxui/cxengine/tsrc/fakeclasses/cxefakesettingsmodel.h --- a/camerauis/cameraxui/cxengine/tsrc/fakeclasses/cxefakesettingsmodel.h Fri Jul 23 11:35:41 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,66 +0,0 @@ -/* -* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ -#ifndef CXEFAKESETTINGSMODEL_H -#define CXEFAKESETTINGSMODEL_H - -#include -#include "cxesettingsmodel.h" - -class CxeFakeSettingsModel : public CxeSettingsModel -{ - -public: - - CxeFakeSettingsModel(); - ~CxeFakeSettingsModel(); - - void reset() {}; - CxeError::Id getSettingValue(const QString &key, QVariant &value); - void getSettingValue(long int uid, unsigned long int key, Cxe::SettingKeyType type, QVariant &value); - CxeError::Id getRuntimeValue(const QString &key, QVariant &value); - - CxeError::Id set(const QString &key,const QVariant newValue); - CxeScene& currentImageScene(); - CxeScene& currentVideoScene(); - void cameraModeChanged(Cxe::CameraMode newMode); - CxeError::Id setImageScene(const QString &newScene); - CxeError::Id setVideoScene(const QString &newScene); - -public: // own helper methods - void setRuntimeValues(QString &key, QList value); - void initDefaultCameraSettings(); - void initRuntimeSettings(); - void testSetCurrenImageScene(); - void testSetCurrenVideoScene(); - - Cxe::CameraMode getDummyCameraMode() {return mDummyCameraMode;} - -private: - - QHash mSettingStore; - QHash mRuntimeSettings; - CxeScene mDummyImageScene; - CxeScene mDummyVideoScene; - Cxe::CameraMode mDummyCameraMode; -}; - -#endif // CXEFAKESETTINGSMODEL_H - - - - -