45
|
1 |
/*
|
|
2 |
* Copyright (c) 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 CXESCENEMODESTORE_H
|
|
18 |
#define CXESCENEMODESTORE_H
|
|
19 |
|
|
20 |
#include <QObject>
|
|
21 |
|
|
22 |
#include "cxenamespace.h"
|
|
23 |
#include "cxeerror.h"
|
|
24 |
|
|
25 |
class CxeSceneModeStore
|
|
26 |
{
|
|
27 |
|
|
28 |
public:
|
|
29 |
|
|
30 |
CxeSceneModeStore();
|
|
31 |
~CxeSceneModeStore();
|
|
32 |
|
|
33 |
CxeError::Id sceneSettingValue(Cxe::CameraMode cameraMode, const QString &key, QVariant &value) const;
|
|
34 |
CxeError::Id setSceneSettingValue(Cxe::CameraMode cameraMode, const QString &key, const QVariant &newValue);
|
|
35 |
|
|
36 |
QString currentSceneId(Cxe::CameraMode cameraMode) const;
|
|
37 |
CxeScene& currentScene(Cxe::CameraMode cameraMode);
|
|
38 |
const CxeScene& currentScene(Cxe::CameraMode cameraMode) const;
|
|
39 |
|
|
40 |
void setCurrentScene(Cxe::CameraMode cameraMode, const QString &sceneId);
|
|
41 |
CxeScene getScene(Cxe::CameraMode cameraMode, const QString &sceneId) const;
|
|
42 |
private:
|
|
43 |
|
|
44 |
void loadImageScenes();
|
|
45 |
void loadVideoScenes();
|
|
46 |
|
|
47 |
|
|
48 |
private:
|
|
49 |
|
|
50 |
QHash<QString, CxeScene> mImageSceneModes;
|
|
51 |
QHash<QString, CxeScene> mVideoSceneModes;
|
|
52 |
|
|
53 |
CxeScene mCurrentImageScene;
|
|
54 |
CxeScene mCurrentVideoScene;
|
|
55 |
};
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
#endif /* CXESCENEMODESTORE_H */
|