|
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 CXESETTINGSCONTROLSYMBIAN_H |
|
18 #define CXESETTINGSCONTROLSYMBIAN_H |
|
19 |
|
20 #include <QObject> |
|
21 #include "cxenamespace.h" |
|
22 |
|
23 class CxeCameraDevice; |
|
24 class CxeSettings; |
|
25 |
|
26 /*! |
|
27 * Class to handle setting value changes. |
|
28 * Changed settings are updated to camera device. |
|
29 */ |
|
30 class CxeSettingsControlSymbian : public QObject |
|
31 { |
|
32 Q_OBJECT |
|
33 |
|
34 public: |
|
35 |
|
36 CxeSettingsControlSymbian(CxeCameraDevice &cameraDevice, CxeSettings &settings); |
|
37 ~CxeSettingsControlSymbian(); |
|
38 |
|
39 public slots: |
|
40 |
|
41 void handleSettingValueChanged(const QString& settingId, QVariant newValue); |
|
42 void handleSceneChanged(const QVariant &scene); |
|
43 |
|
44 private: |
|
45 |
|
46 void updateColorToneSetting(QVariant newValue); |
|
47 void updateWhiteBalanceSetting(QVariant newValue); |
|
48 void updateLightSensitivitySetting(QVariant newValue); |
|
49 void updateSharpnessSetting(QVariant newValue); |
|
50 void updateContrastSetting(QVariant newValue); |
|
51 void updateBrightnessSetting(QVariant newValue); |
|
52 void updateExposureModeSetting(QVariant newValue); |
|
53 void updateExposureCompensationSetting(QVariant newValue); |
|
54 void updateFlashSetting(QVariant newValue); |
|
55 void updateFaceTrackingSetting(QVariant newValue); |
|
56 |
|
57 private: |
|
58 CxeCameraDevice &mCameraDevice; |
|
59 CxeSettings &mSettings; |
|
60 }; |
|
61 |
|
62 #endif // CXESETTINGSCONTROLSYMBIAN_H |