1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
32 CxeError::Id getSettingValue(const QString &key, QVariant &value); |
32 CxeError::Id getSettingValue(const QString &key, QVariant &value); |
33 void getSettingValue(long int uid, unsigned long int key, Cxe::SettingKeyType type, QVariant &value); |
33 void getSettingValue(long int uid, unsigned long int key, Cxe::SettingKeyType type, QVariant &value); |
34 CxeError::Id getRuntimeValue(const QString &key, QVariant &value); |
34 CxeError::Id getRuntimeValue(const QString &key, QVariant &value); |
35 |
35 |
36 CxeError::Id set(const QString &key,const QVariant newValue); |
36 CxeError::Id set(const QString &key,const QVariant newValue); |
37 CxeScene& currentImageScene() {return mDummyScene;} |
37 CxeScene& currentImageScene(); |
38 CxeScene& currentVideoScene() {return mDummyScene;} |
38 CxeScene& currentVideoScene(); |
39 void cameraModeChanged(Cxe::CameraMode newMode) {mDummyCameraMode = newMode;} |
39 void cameraModeChanged(Cxe::CameraMode newMode); |
40 CxeError::Id setImageScene(const QString &newScene); |
40 CxeError::Id setImageScene(const QString &newScene); |
41 CxeError::Id setVideoScene(const QString &newScene); |
41 CxeError::Id setVideoScene(const QString &newScene); |
42 |
42 |
43 public: // own helper methods |
43 public: // own helper methods |
44 void setRuntimeValues(QString &key, QList<QVariant> value); |
44 void setRuntimeValues(QString &key, QList<QVariant> value); |
45 void initDefaultCameraSettings(); |
45 void initDefaultCameraSettings(); |
|
46 void initRuntimeSettings(); |
46 void testSetCurrenImageScene(); |
47 void testSetCurrenImageScene(); |
47 void testSetCurrenVideoScene(); |
48 void testSetCurrenVideoScene(); |
48 |
49 |
49 Cxe::CameraMode getDummyCameraMode() {return mDummyCameraMode;} |
50 Cxe::CameraMode getDummyCameraMode() {return mDummyCameraMode;} |
50 |
51 |
51 private: |
52 private: |
52 |
53 |
53 QMap<QString, QList<QVariant> > mStore; |
|
54 QHash<QString, QVariant> mSettingStore; |
54 QHash<QString, QVariant> mSettingStore; |
55 CxeScene mDummyScene; |
55 QHash<QString, QVariantList> mRuntimeSettings; |
|
56 CxeScene mDummyImageScene; |
|
57 CxeScene mDummyVideoScene; |
56 Cxe::CameraMode mDummyCameraMode; |
58 Cxe::CameraMode mDummyCameraMode; |
57 }; |
59 }; |
58 |
60 |
59 #endif // CXEFAKESETTINGSMODEL_H |
61 #endif // CXEFAKESETTINGSMODEL_H |
60 |
62 |