57 } |
58 } |
58 |
59 |
59 /*! |
60 /*! |
60 * Handle new setting value. |
61 * Handle new setting value. |
61 * New value is set to camera. |
62 * New value is set to camera. |
|
63 * \param settingId The id of the updated setting |
|
64 * \param newValue A new value for the updated setting |
62 */ |
65 */ |
63 void CxeSettingsControlSymbian::handleSettingValueChanged(const QString& settingId, QVariant newValue) |
66 void CxeSettingsControlSymbian::handleSettingValueChanged(const QString& settingId, QVariant newValue) |
64 { |
67 { |
65 CX_DEBUG_ENTER_FUNCTION(); |
68 CX_DEBUG_ENTER_FUNCTION(); |
66 if (settingId == CxeSettingIds::COLOR_TONE) { |
69 if (settingId == CxeSettingIds::COLOR_TONE) { |
77 updateBrightnessSetting(newValue); |
80 updateBrightnessSetting(newValue); |
78 } else if (settingId == CxeSettingIds::EXPOSURE_MODE) { |
81 } else if (settingId == CxeSettingIds::EXPOSURE_MODE) { |
79 updateExposureModeSetting(newValue); |
82 updateExposureModeSetting(newValue); |
80 } else if (settingId == CxeSettingIds::EV_COMPENSATION_VALUE) { |
83 } else if (settingId == CxeSettingIds::EV_COMPENSATION_VALUE) { |
81 updateExposureCompensationSetting(newValue); |
84 updateExposureCompensationSetting(newValue); |
|
85 } else if (settingId == CxeSettingIds::FACE_TRACKING) { |
|
86 updateFaceTrackingSetting(newValue); |
82 } else { |
87 } else { |
83 // do nothing |
88 // do nothing |
84 } |
89 } |
85 |
90 |
86 // Image mode specific |
91 // Image mode specific |
91 } |
96 } |
92 |
97 |
93 /*! |
98 /*! |
94 * Handle new scene being set. |
99 * Handle new scene being set. |
95 * Scene settings are checked and new values are set to camera. |
100 * Scene settings are checked and new values are set to camera. |
96 * @param scene New scene containing scene specific settings. |
101 * \param scene New scene containing scene specific settings. |
97 */ |
102 */ |
98 void CxeSettingsControlSymbian::handleSceneChanged(CxeScene& scene) |
103 void CxeSettingsControlSymbian::handleSceneChanged(CxeScene& scene) |
99 { |
104 { |
100 CX_DEBUG_ENTER_FUNCTION(); |
105 CX_DEBUG_ENTER_FUNCTION(); |
101 CX_DEBUG(("CxeSettingsControlSymbian <> new scene [%s]", |
106 CX_DEBUG(("CxeSettingsControlSymbian <> new scene [%s]", |
102 scene[CxeSettingIds::SCENE_ID].value<QString>().toAscii().constData())); |
107 scene[CxeSettingIds::SCENE_ID].value<QString>().toAscii().constData())); |
103 |
108 |
104 foreach (const QString& settingId, scene.keys()) { |
109 foreach (const QString& settingId, scene.keys()) { |
105 handleSettingValueChanged(settingId, scene[settingId]); |
110 handleSettingValueChanged(settingId, scene[settingId]); |
106 } |
111 } |
107 CX_DEBUG_EXIT_FUNCTION(); |
112 |
108 } |
113 CX_DEBUG_EXIT_FUNCTION(); |
109 |
114 } |
110 |
115 |
111 /*! |
116 /*! |
112 * |
117 * Update color tone setting value to the camera device |
|
118 * \param newValue A new value for the updated setting |
113 */ |
119 */ |
114 void CxeSettingsControlSymbian::updateColorToneSetting(QVariant newValue) |
120 void CxeSettingsControlSymbian::updateColorToneSetting(QVariant newValue) |
115 { |
121 { |
116 CX_DEBUG_ENTER_FUNCTION(); |
122 CX_DEBUG_ENTER_FUNCTION(); |
117 |
123 |
134 |
140 |
135 CX_DEBUG_EXIT_FUNCTION(); |
141 CX_DEBUG_EXIT_FUNCTION(); |
136 } |
142 } |
137 |
143 |
138 /*! |
144 /*! |
139 * |
145 * Update white balance setting value to the camera device |
|
146 * \param newValue A new value for the updated setting |
140 */ |
147 */ |
141 void CxeSettingsControlSymbian::updateWhiteBalanceSetting(QVariant newValue) |
148 void CxeSettingsControlSymbian::updateWhiteBalanceSetting(QVariant newValue) |
142 { |
149 { |
143 CX_DEBUG_ENTER_FUNCTION(); |
150 CX_DEBUG_ENTER_FUNCTION(); |
144 CX_DEBUG_ASSERT(mCameraDevice.camera()); |
151 CX_DEBUG_ASSERT(mCameraDevice.camera()); |
153 |
160 |
154 CX_DEBUG_EXIT_FUNCTION(); |
161 CX_DEBUG_EXIT_FUNCTION(); |
155 } |
162 } |
156 |
163 |
157 /*! |
164 /*! |
158 * |
165 * Update light sensitivity (ISO) setting value to the camera device |
|
166 * \param newValue A new value for the updated setting |
159 */ |
167 */ |
160 void CxeSettingsControlSymbian::updateLightSensitivitySetting(QVariant newValue) |
168 void CxeSettingsControlSymbian::updateLightSensitivitySetting(QVariant newValue) |
161 { |
169 { |
162 CX_DEBUG_ENTER_FUNCTION(); |
170 CX_DEBUG_ENTER_FUNCTION(); |
163 CX_ASSERT_ALWAYS(mCameraDevice.advancedSettings()); |
171 CX_ASSERT_ALWAYS(mCameraDevice.advancedSettings()); |
208 |
217 |
209 CX_DEBUG_EXIT_FUNCTION(); |
218 CX_DEBUG_EXIT_FUNCTION(); |
210 } |
219 } |
211 |
220 |
212 /*! |
221 /*! |
213 * |
222 * Update contrast setting value to the camera device |
|
223 * \param newValue A new value for the updated setting |
214 */ |
224 */ |
215 void CxeSettingsControlSymbian::updateContrastSetting(QVariant newValue) |
225 void CxeSettingsControlSymbian::updateContrastSetting(QVariant newValue) |
216 { |
226 { |
217 CX_DEBUG_ENTER_FUNCTION(); |
227 CX_DEBUG_ENTER_FUNCTION(); |
218 CX_ASSERT_ALWAYS(mCameraDevice.imageProcessor()); |
228 CX_ASSERT_ALWAYS(mCameraDevice.imageProcessor()); |
231 |
241 |
232 CX_DEBUG_EXIT_FUNCTION(); |
242 CX_DEBUG_EXIT_FUNCTION(); |
233 } |
243 } |
234 |
244 |
235 /*! |
245 /*! |
236 * |
246 * Update brightness setting value to the camera device |
|
247 * \param newValue A new value for the updated setting |
237 */ |
248 */ |
238 void CxeSettingsControlSymbian::updateBrightnessSetting(QVariant newValue) |
249 void CxeSettingsControlSymbian::updateBrightnessSetting(QVariant newValue) |
239 { |
250 { |
240 CX_DEBUG_ENTER_FUNCTION(); |
251 CX_DEBUG_ENTER_FUNCTION(); |
241 CX_ASSERT_ALWAYS(mCameraDevice.imageProcessor()); |
252 CX_ASSERT_ALWAYS(mCameraDevice.imageProcessor()); |
254 |
265 |
255 CX_DEBUG_EXIT_FUNCTION(); |
266 CX_DEBUG_EXIT_FUNCTION(); |
256 } |
267 } |
257 |
268 |
258 /*! |
269 /*! |
259 * |
270 * Update Exposure mode to the camera device |
|
271 * \param newValue A new value for the updated setting |
260 */ |
272 */ |
261 void CxeSettingsControlSymbian::updateExposureModeSetting(QVariant newValue) |
273 void CxeSettingsControlSymbian::updateExposureModeSetting(QVariant newValue) |
262 { |
274 { |
263 CX_DEBUG_ENTER_FUNCTION(); |
275 CX_DEBUG_ENTER_FUNCTION(); |
264 CX_DEBUG_ASSERT(mCameraDevice.advancedSettings()); |
276 CX_DEBUG_ASSERT(mCameraDevice.advancedSettings()); |
273 |
285 |
274 CX_DEBUG_EXIT_FUNCTION(); |
286 CX_DEBUG_EXIT_FUNCTION(); |
275 } |
287 } |
276 |
288 |
277 /*! |
289 /*! |
278 * |
290 * Update Exposure Compensation mode to the camera device |
|
291 * \param newValue A new value for the updated setting |
279 */ |
292 */ |
280 void CxeSettingsControlSymbian::updateExposureCompensationSetting(QVariant newValue) |
293 void CxeSettingsControlSymbian::updateExposureCompensationSetting(QVariant newValue) |
281 { |
294 { |
282 CX_DEBUG_ENTER_FUNCTION(); |
295 CX_DEBUG_ENTER_FUNCTION(); |
283 CX_ASSERT_ALWAYS(mCameraDevice.advancedSettings()); |
296 CX_ASSERT_ALWAYS(mCameraDevice.advancedSettings()); |
295 |
308 |
296 CX_DEBUG_EXIT_FUNCTION(); |
309 CX_DEBUG_EXIT_FUNCTION(); |
297 } |
310 } |
298 |
311 |
299 /*! |
312 /*! |
300 * |
313 * Update flash mode to the camera device |
|
314 * \param newValue A new value for the updated setting |
301 */ |
315 */ |
302 void CxeSettingsControlSymbian::updateFlashSetting(QVariant newValue) |
316 void CxeSettingsControlSymbian::updateFlashSetting(QVariant newValue) |
303 { |
317 { |
304 CX_DEBUG_ENTER_FUNCTION(); |
318 CX_DEBUG_ENTER_FUNCTION(); |
305 CX_ASSERT_ALWAYS(mCameraDevice.camera()); |
319 CX_ASSERT_ALWAYS(mCameraDevice.camera()); |