author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 13 Oct 2010 14:09:54 +0300 | |
branch | RCL_3 |
changeset 67 | 756ad29ed18e |
parent 57 | 2c87b2808fd7 |
permissions | -rw-r--r-- |
54 | 1 |
/* |
2 |
* Copyright (c) 2007-2009 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: CameraUiConfigManager API. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
// Includes |
|
20 |
||
21 |
#include "CameraUiConfigManager.h" |
|
22 |
#include "CameraUiConfigManagerImp.h" |
|
23 |
#include "CameraDynamicSettings.hrh" |
|
24 |
||
25 |
||
26 |
// Class methods |
|
27 |
||
28 |
// --------------------------------------------------------------------------- |
|
29 |
// CCameraUiConfigManager::NewL |
|
30 |
// Symbian OS two-phased constructor |
|
31 |
// --------------------------------------------------------------------------- |
|
32 |
// |
|
33 |
EXPORT_C CCameraUiConfigManager* CCameraUiConfigManager::NewL() |
|
34 |
{ |
|
35 |
CCameraUiConfigManager* self = CCameraUiConfigManager::NewLC(); |
|
36 |
CleanupStack::Pop( self ); |
|
37 |
return self; |
|
38 |
} |
|
39 |
||
40 |
// --------------------------------------------------------------------------- |
|
41 |
// CCameraUiConfigManager::NewLC |
|
42 |
// Symbian OS two-phased constructor |
|
43 |
// --------------------------------------------------------------------------- |
|
44 |
// |
|
45 |
EXPORT_C CCameraUiConfigManager* CCameraUiConfigManager::NewLC() |
|
46 |
{ |
|
47 |
CCameraUiConfigManager* self = new( ELeave ) CCameraUiConfigManager(); |
|
48 |
CleanupStack::PushL( self ); |
|
49 |
self->ConstructL(); |
|
50 |
return self; |
|
51 |
} |
|
52 |
||
53 |
||
54 |
// --------------------------------------------------------------------------- |
|
55 |
// CCameraUiConfigManager::~CCameraUiConfigManager |
|
56 |
// Destructor |
|
57 |
// --------------------------------------------------------------------------- |
|
58 |
// |
|
59 |
CCameraUiConfigManager::~CCameraUiConfigManager() |
|
60 |
{ |
|
61 |
delete iConfigManagerImp; |
|
62 |
} |
|
63 |
||
64 |
||
65 |
// --------------------------------------------------------------------------- |
|
66 |
// CCameraUiConfigManager::CCameraUiConfigManager |
|
67 |
// C++ constructor |
|
68 |
// --------------------------------------------------------------------------- |
|
69 |
// |
|
70 |
CCameraUiConfigManager::CCameraUiConfigManager() |
|
71 |
{ |
|
72 |
} |
|
73 |
||
74 |
||
75 |
// --------------------------------------------------------------------------- |
|
76 |
// CCameraUiConfigManager::ConstructL |
|
77 |
// Symbian OS 2nd phase constructor |
|
78 |
// --------------------------------------------------------------------------- |
|
79 |
// |
|
80 |
void CCameraUiConfigManager::ConstructL() |
|
81 |
{ |
|
82 |
iConfigManagerImp = CCameraUiConfigManagerImp::NewL(); |
|
83 |
} |
|
84 |
||
85 |
||
86 |
// ---------------------------------------------------------------------------------- |
|
87 |
// CCameraUiConfigManager::IsColorToneFeatureSupported |
|
88 |
// ---------------------------------------------------------------------------------- |
|
89 |
// |
|
90 |
EXPORT_C TBool CCameraUiConfigManager::IsColorToneFeatureSupported() const |
|
91 |
{ |
|
92 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingColorTone ); |
|
93 |
} |
|
94 |
||
95 |
||
96 |
// ---------------------------------------------------------------------------------- |
|
97 |
// CCameraUiConfigManager::IsSharpnessFeatureSupported |
|
98 |
// ---------------------------------------------------------------------------------- |
|
99 |
// |
|
100 |
EXPORT_C TBool CCameraUiConfigManager::IsSharpnessFeatureSupported() const |
|
101 |
{ |
|
102 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingSharpness ); |
|
103 |
} |
|
104 |
||
105 |
// ---------------------------------------------------------------------------------- |
|
106 |
// CCameraUiConfigManager::IsWhiteBalanceFeatureSupported |
|
107 |
// ---------------------------------------------------------------------------------- |
|
108 |
// |
|
109 |
EXPORT_C TBool CCameraUiConfigManager::IsWhiteBalanceFeatureSupported() const |
|
110 |
{ |
|
111 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingWhiteBalance ); |
|
112 |
} |
|
113 |
||
114 |
||
115 |
// ---------------------------------------------------------------------------------- |
|
116 |
// CCameraUiConfigManager::IsSecondaryCameraSupported |
|
117 |
// ---------------------------------------------------------------------------------- |
|
118 |
// |
|
119 |
EXPORT_C TBool CCameraUiConfigManager::IsSecondaryCameraSupported() const |
|
120 |
{ |
|
121 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingSecondaryCamera ); |
|
122 |
} |
|
123 |
||
124 |
||
125 |
// ---------------------------------------------------------------------------------- |
|
126 |
// CCameraUiConfigManager::IsDSAViewFinderSupported |
|
127 |
// ---------------------------------------------------------------------------------- |
|
128 |
// |
|
129 |
EXPORT_C TBool CCameraUiConfigManager::IsDSAViewFinderSupported( TBool aPrimaryCamera ) const |
|
130 |
{ |
|
131 |
RArray<TInt> supportedItems; |
|
132 |
TBool supported ( EFalse ); |
|
133 |
TRAPD( err,iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingDSAViewFinder, |
|
134 |
supportedItems ) ); |
|
135 |
if ( KErrNone == err && supportedItems.Count() > 0 ) |
|
136 |
{ |
|
137 |
if ( aPrimaryCamera ) supported = supportedItems[0]; |
|
138 |
else supported = supportedItems[1]; |
|
139 |
} |
|
67
756ad29ed18e
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
57
diff
changeset
|
140 |
supportedItems.Close(); |
54 | 141 |
return supported; // not supported |
142 |
} |
|
143 |
||
144 |
||
145 |
// ---------------------------------------------------------------------------------- |
|
146 |
// CCameraUiConfigManager::IsLensCoverSupported |
|
147 |
// ---------------------------------------------------------------------------------- |
|
148 |
// |
|
149 |
EXPORT_C TBool CCameraUiConfigManager::IsLensCoverSupported() const |
|
150 |
{ |
|
151 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingLensCover ); |
|
152 |
} |
|
153 |
||
154 |
// ---------------------------------------------------------------------------------- |
|
155 |
// CCameraUiConfigManager::IsXenonFlashSupported |
|
156 |
// ---------------------------------------------------------------------------------- |
|
157 |
// |
|
158 |
EXPORT_C TBool CCameraUiConfigManager::IsXenonFlashSupported() const |
|
159 |
{ |
|
160 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingXenonFlash ); |
|
161 |
} |
|
162 |
||
163 |
||
164 |
// ---------------------------------------------------------------------------------- |
|
165 |
// CCameraUiConfigManager::IsISOSupported |
|
166 |
// ---------------------------------------------------------------------------------- |
|
167 |
// |
|
168 |
EXPORT_C TBool CCameraUiConfigManager::IsISOSupported() const |
|
169 |
{ |
|
170 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingLightSensitivity ); |
|
171 |
} |
|
172 |
||
173 |
||
174 |
// ---------------------------------------------------------------------------------- |
|
175 |
// CCameraUiConfigManager::IsEVSupported |
|
176 |
// ---------------------------------------------------------------------------------- |
|
177 |
// |
|
178 |
EXPORT_C TBool CCameraUiConfigManager::IsEVSupported() const |
|
179 |
{ |
|
180 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingEV ); |
|
181 |
} |
|
182 |
||
183 |
||
184 |
// ---------------------------------------------------------------------------------- |
|
185 |
// CCameraUiConfigManager::IsFlashModeSupported |
|
186 |
// ---------------------------------------------------------------------------------- |
|
187 |
// |
|
188 |
EXPORT_C TBool CCameraUiConfigManager::IsFlashModeSupported() const |
|
189 |
{ |
|
190 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingFlashMode ); |
|
191 |
} |
|
192 |
||
193 |
||
194 |
// ---------------------------------------------------------------------------------- |
|
195 |
// CCameraUiConfigManager::IsContrastSupported |
|
196 |
// ---------------------------------------------------------------------------------- |
|
197 |
// |
|
198 |
EXPORT_C TBool CCameraUiConfigManager::IsContrastSupported() const |
|
199 |
{ |
|
200 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingContrast ); |
|
201 |
} |
|
202 |
||
203 |
||
204 |
// ---------------------------------------------------------------------------------- |
|
205 |
// CCameraUiConfigManager::IsBrightnessSupported |
|
206 |
// ---------------------------------------------------------------------------------- |
|
207 |
// |
|
208 |
EXPORT_C TBool CCameraUiConfigManager::IsBrightnessSupported() const |
|
209 |
{ |
|
210 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingBrightness ); |
|
211 |
} |
|
212 |
||
213 |
||
214 |
||
215 |
// ---------------------------------------------------------------------------------- |
|
216 |
// CCameraUiConfigManager::IsExtendedLightSensitivitySupported |
|
217 |
// ---------------------------------------------------------------------------------- |
|
218 |
// |
|
219 |
EXPORT_C TBool CCameraUiConfigManager::IsExtendedLightSensitivitySupported() const |
|
220 |
{ |
|
221 |
return iConfigManagerImp->IsFeatureSupported( |
|
222 |
ECamDynamicSettingExtLightSensitivity ); |
|
223 |
} |
|
224 |
||
225 |
||
226 |
// ---------------------------------------------------------------------------------- |
|
227 |
// CCameraUiConfigManager::IsOneClickUploadSupported |
|
228 |
// ---------------------------------------------------------------------------------- |
|
229 |
// |
|
230 |
EXPORT_C TBool CCameraUiConfigManager::IsOneClickUploadSupported() const |
|
231 |
{ |
|
232 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingOneClickUpload ); |
|
233 |
} |
|
234 |
||
235 |
||
236 |
// ---------------------------------------------------------------------------------- |
|
237 |
// CCameraUiConfigManager::IsVideoLightSupported |
|
238 |
// ---------------------------------------------------------------------------------- |
|
239 |
// |
|
240 |
EXPORT_C TBool CCameraUiConfigManager::IsVideoLightSupported() const |
|
241 |
{ |
|
242 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingVideoLight ); |
|
243 |
} |
|
244 |
||
245 |
||
246 |
// ---------------------------------------------------------------------------------- |
|
247 |
// CCameraUiConfigManager::IsAutoFocusSupported |
|
248 |
// ---------------------------------------------------------------------------------- |
|
249 |
// |
|
250 |
EXPORT_C TBool CCameraUiConfigManager::IsAutoFocusSupported() const |
|
251 |
{ |
|
252 |
#if defined(__WINS__) || defined(__WINSCW__) |
|
253 |
return EFalse; // return |
|
254 |
#else |
|
255 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingAutoFocus ); |
|
256 |
#endif |
|
257 |
} |
|
258 |
||
259 |
||
260 |
// ---------------------------------------------------------------------------------- |
|
261 |
// CCameraUiConfigManager::IsVideoStabilizationSupported |
|
262 |
// ---------------------------------------------------------------------------------- |
|
263 |
// |
|
264 |
EXPORT_C TBool CCameraUiConfigManager::IsVideoStabilizationSupported() const |
|
265 |
{ |
|
266 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingVideoStabilization ); |
|
267 |
} |
|
268 |
||
269 |
// ---------------------------------------------------------------------------------- |
|
270 |
// CCameraUiConfigManager::IsFaceTrackingSupported |
|
271 |
// ---------------------------------------------------------------------------------- |
|
272 |
// |
|
273 |
EXPORT_C TBool CCameraUiConfigManager::IsFaceTrackingSupported() const |
|
274 |
{ |
|
275 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingFaceTracking ); |
|
276 |
} |
|
277 |
||
278 |
// ---------------------------------------------------------------------------------- |
|
279 |
// CCameraUiConfigManager::IsOpticalJoyStickSupported |
|
280 |
// ---------------------------------------------------------------------------------- |
|
281 |
// |
|
282 |
EXPORT_C TBool CCameraUiConfigManager::IsOpticalJoyStickSupported() const |
|
283 |
{ |
|
284 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingOpticalJoyStick ); |
|
285 |
} |
|
286 |
||
287 |
// ---------------------------------------------------------------------------------- |
|
288 |
// CCameraUiConfigManager::IsOrientationSensorSupported |
|
289 |
// ---------------------------------------------------------------------------------- |
|
290 |
// |
|
291 |
EXPORT_C TBool CCameraUiConfigManager::IsOrientationSensorSupported() const |
|
292 |
{ |
|
293 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingOrientationSensor ); |
|
294 |
} |
|
295 |
||
296 |
||
297 |
// ---------------------------------------------------------------------------------- |
|
298 |
// CCameraUiConfigManager::IsLocationSupported |
|
299 |
// ---------------------------------------------------------------------------------- |
|
300 |
// |
|
301 |
EXPORT_C TBool CCameraUiConfigManager::IsLocationSupported() const |
|
302 |
{ |
|
303 |
TBool supported = iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingLocation ); |
|
304 |
#if !defined(RD_MDS_2_5) || defined(__WINSCW__) || defined(__WINS__) |
|
305 |
supported = EFalse; |
|
306 |
#endif |
|
307 |
return supported; |
|
308 |
} |
|
309 |
||
310 |
// ---------------------------------------------------------------------------------- |
|
311 |
// CCameraUiConfigManager::IsKeyLockWatcherSupported |
|
312 |
// ---------------------------------------------------------------------------------- |
|
313 |
// |
|
314 |
EXPORT_C TBool CCameraUiConfigManager::IsKeyLockWatcherSupported() const |
|
315 |
{ |
|
316 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingKeyLockWatcher ); |
|
317 |
} |
|
318 |
||
319 |
// ---------------------------------------------------------------------------------- |
|
320 |
// CCameraUiConfigManager::IsExtendedDigitalZoomSupported |
|
321 |
// ---------------------------------------------------------------------------------- |
|
322 |
// |
|
323 |
EXPORT_C TBool CCameraUiConfigManager::IsExtendedDigitalZoomSupported() const |
|
324 |
{ |
|
325 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingExtDigitalZoom ); |
|
326 |
} |
|
327 |
||
328 |
||
329 |
// ---------------------------------------------------------------------------------- |
|
330 |
// CCameraUiConfigManager::IsAutofocusSetInHyperfocalAtStartup |
|
331 |
// ---------------------------------------------------------------------------------- |
|
332 |
// |
|
333 |
EXPORT_C TBool CCameraUiConfigManager::IsAutofocusSetInHyperfocalAtStartup() const |
|
334 |
{ |
|
335 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingExtDigitalZoom ); |
|
336 |
} |
|
337 |
||
338 |
// ---------------------------------------------------------------------------------- |
|
339 |
// CCameraUiConfigManager::IsCaptureToneDelaySupported |
|
340 |
// ---------------------------------------------------------------------------------- |
|
341 |
// |
|
342 |
EXPORT_C TBool CCameraUiConfigManager::IsCaptureToneDelaySupported() const |
|
343 |
{ |
|
344 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingCaptureToneDelaySupport ); |
|
345 |
} |
|
346 |
||
347 |
/* |
|
348 |
* The capture tone delay in milliseconds |
|
349 |
*/ |
|
350 |
EXPORT_C TInt CCameraUiConfigManager::CaptureToneDelay() const |
|
351 |
{ |
|
352 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingCaptureToneDelayValue ); |
|
353 |
} |
|
354 |
||
355 |
// ---------------------------------------------------------------------------------- |
|
356 |
// CCameraUiConfigManager::IsPhotosSupported |
|
357 |
// ---------------------------------------------------------------------------------- |
|
358 |
// |
|
359 |
EXPORT_C TBool CCameraUiConfigManager::IsPhotosSupported() const |
|
360 |
{ |
|
361 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingPhoto ); |
|
362 |
} |
|
363 |
||
364 |
// ---------------------------------------------------------------------------------- |
|
365 |
// CCameraUiConfigManager::IsPublishZoomStateSupported |
|
366 |
// ---------------------------------------------------------------------------------- |
|
367 |
// |
|
368 |
EXPORT_C TBool CCameraUiConfigManager::IsPublishZoomStateSupported() const |
|
369 |
{ |
|
370 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingExtDigitalZoom ); |
|
371 |
} |
|
372 |
||
373 |
||
374 |
||
375 |
/* |
|
376 |
* Required RAM memory for CameraApp |
|
377 |
*/ |
|
378 |
EXPORT_C TInt CCameraUiConfigManager::RequiredRamMemory() const |
|
379 |
{ |
|
380 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingRequiredRamMemory ); |
|
381 |
} |
|
382 |
||
383 |
/* |
|
384 |
* Critical Level RAM memory for CameraApp |
|
385 |
*/ |
|
386 |
EXPORT_C TInt CCameraUiConfigManager::CriticalLevelRamMemory() const |
|
387 |
{ |
|
388 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingCriticalLevelRamMemory ); |
|
389 |
} |
|
390 |
||
391 |
||
392 |
/* |
|
393 |
* Required RAM memory for CameraApp when focus gained |
|
394 |
*/ |
|
395 |
EXPORT_C TInt CCameraUiConfigManager::RequiredRamMemoryFocusGained() const |
|
396 |
{ |
|
397 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingRequiredRamMemoryFocusGained ); |
|
398 |
} |
|
399 |
||
400 |
||
401 |
/* |
|
402 |
* Critical Level RAM memory for CameraApp when focus gained |
|
403 |
*/ |
|
404 |
EXPORT_C TInt CCameraUiConfigManager::CriticalLevelRamMemoryFocusGained() const |
|
405 |
{ |
|
406 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingCriticalLevelRamMemoryFocusGained ); |
|
407 |
} |
|
408 |
||
409 |
||
410 |
// |
|
411 |
//CCameraUiConfigManager::SupportedPrimaryCameraCaptureKeyL |
|
412 |
//Returns configured capture key for primary camera |
|
413 |
// |
|
414 |
EXPORT_C void CCameraUiConfigManager::SupportedPrimaryCameraCaptureKeyL( |
|
415 |
RArray<TInt>& aSupportedValues ) |
|
416 |
{ |
|
417 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingPCCaptureKeys, |
|
418 |
aSupportedValues ); |
|
419 |
} |
|
420 |
||
421 |
||
422 |
// |
|
423 |
//CCameraUiConfigManager::SupportedSecondaryCameraCaptureKeyL |
|
424 |
//Returns configured capture key for secondary camera |
|
425 |
EXPORT_C void CCameraUiConfigManager::SupportedSecondaryCameraCaptureKeyL( |
|
426 |
RArray<TInt>& aSupportedValues ) |
|
427 |
{ |
|
428 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingSCCaptureKeys, |
|
429 |
aSupportedValues ); |
|
430 |
} |
|
431 |
||
432 |
// |
|
433 |
//CCameraUiConfigManager::SupportedColorToneSettingsL |
|
434 |
// |
|
435 |
EXPORT_C void CCameraUiConfigManager::SupportedColorToneSettingsL( |
|
436 |
RArray<TInt>& aSupportedValues ) |
|
437 |
{ |
|
438 |
iConfigManagerImp->SupportedSettingItemsL( |
|
439 |
ECamDynamicSettingColorTone, |
|
440 |
aSupportedValues ); |
|
441 |
} |
|
442 |
||
443 |
||
444 |
// |
|
445 |
//CCameraUiConfigManager::SupportedWhiteBalanceSettingsL |
|
446 |
// |
|
447 |
EXPORT_C void CCameraUiConfigManager::SupportedWhiteBalanceSettingsL( |
|
448 |
RArray<TInt>& aSupportedValues ) |
|
449 |
{ |
|
450 |
iConfigManagerImp->SupportedSettingItemsL( |
|
451 |
ECamDynamicSettingWhiteBalance, |
|
452 |
aSupportedValues ); |
|
453 |
} |
|
454 |
||
455 |
||
456 |
// |
|
457 |
//CCameraUiConfigManager::SupportedSharpnessSettingsL |
|
458 |
// |
|
459 |
EXPORT_C void CCameraUiConfigManager::SupportedSharpnessSettingsL( |
|
460 |
RArray<TInt>& aSupportedValues ) |
|
461 |
{ |
|
462 |
iConfigManagerImp->SupportedSettingItemsL( |
|
463 |
ECamDynamicSettingSharpness, |
|
464 |
aSupportedValues ); |
|
465 |
} |
|
466 |
||
467 |
||
468 |
// |
|
469 |
//CCameraUiConfigManager::SupportedPrimaryCameraZoomInKeysL |
|
470 |
// |
|
471 |
EXPORT_C void CCameraUiConfigManager::SupportedPrimaryCameraZoomInKeysL( |
|
472 |
RArray<TInt>& aSupportedValues ) |
|
473 |
{ |
|
474 |
iConfigManagerImp->SupportedSettingItemsL( |
|
475 |
ECamDynamicSettingPCZoomIn, |
|
476 |
aSupportedValues ); |
|
477 |
} |
|
478 |
||
479 |
||
480 |
// |
|
481 |
//CCameraUiConfigManager::SupportedPrimaryCameraZoomOutKeysL |
|
482 |
// |
|
483 |
EXPORT_C void CCameraUiConfigManager::SupportedPrimaryCameraZoomOutKeysL( |
|
484 |
RArray<TInt>& aSupportedValues ) |
|
485 |
{ |
|
486 |
iConfigManagerImp->SupportedSettingItemsL( |
|
487 |
ECamDynamicSettingPCZoomOut, |
|
488 |
aSupportedValues ); |
|
489 |
} |
|
490 |
||
491 |
||
492 |
// |
|
493 |
//CCameraUiConfigManager::SupportedSecondaryCameraZoomInKeysL |
|
494 |
// |
|
495 |
EXPORT_C void CCameraUiConfigManager::SupportedSecondaryCameraZoomInKeysL( |
|
496 |
RArray<TInt>& aSupportedValues ) |
|
497 |
{ |
|
498 |
iConfigManagerImp->SupportedSettingItemsL( |
|
499 |
ECamDynamicSettingSCZoomIn, |
|
500 |
aSupportedValues ); |
|
501 |
} |
|
502 |
||
503 |
// |
|
504 |
//CCameraUiConfigManager::SupportedSecondaryCameraZoomOutKeysL |
|
505 |
// |
|
506 |
EXPORT_C void CCameraUiConfigManager::SupportedSecondaryCameraZoomOutKeysL( |
|
507 |
RArray<TInt>& aSupportedValues ) |
|
508 |
{ |
|
509 |
iConfigManagerImp->SupportedSettingItemsL( |
|
510 |
ECamDynamicSettingSCZoomOut, |
|
511 |
aSupportedValues ); |
|
512 |
} |
|
513 |
||
514 |
||
515 |
// |
|
516 |
//CCameraUiConfigManager::SupportedEVSettingsL |
|
517 |
// |
|
518 |
EXPORT_C void CCameraUiConfigManager::SupportedEVSettingsL( |
|
519 |
RArray<TInt>& aSupportedValues ) |
|
520 |
{ |
|
521 |
iConfigManagerImp->SupportedSettingItemsL( |
|
522 |
ECamDynamicSettingEV, |
|
523 |
aSupportedValues ); |
|
524 |
} |
|
525 |
||
526 |
// |
|
527 |
//CCameraUiConfigManager::SupportedFlashModeSettingsL |
|
528 |
// |
|
529 |
EXPORT_C void CCameraUiConfigManager::SupportedFlashModeSettingsL( |
|
530 |
RArray<TInt>& aSupportedValues ) |
|
531 |
{ |
|
532 |
iConfigManagerImp->SupportedSettingItemsL( |
|
533 |
ECamDynamicSettingFlashMode, |
|
534 |
aSupportedValues ); |
|
535 |
} |
|
536 |
||
537 |
// |
|
538 |
//CCameraUiConfigManager::SupportedPrimaryCameraCaptureKeyL |
|
539 |
//Returns configured AutoFocus key for primary camera |
|
540 |
// |
|
541 |
EXPORT_C void CCameraUiConfigManager::SupportedPrimaryCameraAutoFocusKeyL( |
|
542 |
RArray<TInt>& aSupportedValues ) |
|
543 |
{ |
|
544 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingPCAutoFocusKeys, |
|
545 |
aSupportedValues ); |
|
546 |
} |
|
547 |
||
548 |
||
549 |
// |
|
550 |
//CCameraUiConfigManager::SupportedSecondaryCameraAutoFocusKeyL |
|
551 |
//Returns configured AutoFocus key for secondary camera |
|
552 |
EXPORT_C void CCameraUiConfigManager::SupportedSecondaryCameraAutoFocusKeyL( |
|
553 |
RArray<TInt>& aSupportedValues ) |
|
554 |
{ |
|
555 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingSCAutoFocusKeys, |
|
556 |
aSupportedValues ); |
|
557 |
} |
|
558 |
||
559 |
||
560 |
// |
|
561 |
//CCameraUiConfigManager::SupportedContrastRangeL |
|
562 |
//Returns configured range for contrast setting |
|
563 |
EXPORT_C void CCameraUiConfigManager::SupportedContrastRangeL( |
|
564 |
RArray<TInt>& aSupportedValues ) |
|
565 |
{ |
|
566 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingContrast, |
|
567 |
aSupportedValues ); |
|
568 |
} |
|
569 |
||
570 |
// |
|
571 |
//CCameraUiConfigManager::SupportedBrightnessRangeL |
|
572 |
//Returns configured range for brightness setting |
|
573 |
EXPORT_C void CCameraUiConfigManager::SupportedBrightnessRangeL( |
|
574 |
RArray<TInt>& aSupportedValues ) |
|
575 |
{ |
|
576 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingBrightness, |
|
577 |
aSupportedValues ); |
|
578 |
} |
|
579 |
||
580 |
// |
|
581 |
//CCameraUiConfigManager::SupportedMaxZoomStepsL |
|
582 |
// |
|
583 |
||
584 |
EXPORT_C void CCameraUiConfigManager::SupportedMaxZoomStepsL( |
|
585 |
RArray<TInt>& aSupportedValues ) |
|
586 |
{ |
|
587 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingMaxDigitalZoomLimits, |
|
588 |
aSupportedValues ); |
|
589 |
} |
|
590 |
||
591 |
// |
|
592 |
//CCameraUiConfigManager::SupportedMaxExtendedZoomStepsL |
|
593 |
// |
|
594 |
||
595 |
EXPORT_C void CCameraUiConfigManager::SupportedMaxExtendedZoomStepsL( |
|
596 |
RArray<TInt>& aSupportedValues ) |
|
597 |
{ |
|
598 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingMaxExtendedZoomLimits, |
|
599 |
aSupportedValues ); |
|
600 |
} |
|
601 |
||
602 |
// |
|
603 |
//CCameraUiConfigManager::SupportedLAFZoomBarL |
|
604 |
// |
|
605 |
EXPORT_C void CCameraUiConfigManager::SupportedLAFZoomBarL( |
|
606 |
RArray<TInt>& aSupportedValues ) |
|
607 |
{ |
|
608 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingZoomLAF, |
|
609 |
aSupportedValues ); |
|
610 |
} |
|
611 |
||
612 |
// |
|
613 |
//CCameraUiConfigManager::SupportedSceneModesAndSettingsL |
|
614 |
// |
|
615 |
EXPORT_C void CCameraUiConfigManager::SupportedSceneModesAndSettingsL( |
|
616 |
RArray<TSceneSettings>& aSupportedValues, |
|
617 |
TBool aPhotoScene ) |
|
618 |
{ |
|
619 |
aSupportedValues.Reset(); |
|
620 |
// Load all known scene mode specific settings |
|
621 |
RArray<TInt> sceneModeSettings; |
|
622 |
if ( aPhotoScene ) |
|
623 |
{ |
|
624 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingImageSceneModeAuto, |
|
625 |
sceneModeSettings ); |
|
626 |
iConfigManagerImp->OrganiseSceneSettings( aSupportedValues, |
|
627 |
sceneModeSettings,aPhotoScene ); |
|
628 |
||
629 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingImageSceneModeUser, |
|
630 |
sceneModeSettings ); |
|
631 |
iConfigManagerImp->OrganiseSceneSettings( aSupportedValues, |
|
632 |
sceneModeSettings,aPhotoScene ); |
|
633 |
||
634 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingImageSceneModeMacro, |
|
635 |
sceneModeSettings ); |
|
636 |
iConfigManagerImp->OrganiseSceneSettings( aSupportedValues, |
|
637 |
sceneModeSettings,aPhotoScene ); |
|
638 |
||
639 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingImageSceneModePotrait, |
|
640 |
sceneModeSettings ); |
|
641 |
iConfigManagerImp->OrganiseSceneSettings( aSupportedValues, |
|
642 |
sceneModeSettings,aPhotoScene ); |
|
643 |
||
644 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingImageSceneModeScenery, |
|
645 |
sceneModeSettings ); |
|
646 |
iConfigManagerImp->OrganiseSceneSettings( aSupportedValues, |
|
647 |
sceneModeSettings,aPhotoScene ); |
|
648 |
||
649 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingImageSceneModeSports, |
|
650 |
sceneModeSettings ); |
|
651 |
iConfigManagerImp->OrganiseSceneSettings( aSupportedValues, |
|
652 |
sceneModeSettings,aPhotoScene ); |
|
653 |
||
654 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingImageSceneModeNight, |
|
655 |
sceneModeSettings ); |
|
656 |
iConfigManagerImp->OrganiseSceneSettings( aSupportedValues, |
|
657 |
sceneModeSettings,aPhotoScene ); |
|
658 |
||
659 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingImageSceneModeNightPotrait, |
|
660 |
sceneModeSettings ); |
|
661 |
iConfigManagerImp->OrganiseSceneSettings( aSupportedValues, |
|
662 |
sceneModeSettings,aPhotoScene ); |
|
663 |
} |
|
664 |
else |
|
665 |
{ |
|
666 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingVideoSceneModeNormal, |
|
667 |
sceneModeSettings ); |
|
668 |
iConfigManagerImp->OrganiseSceneSettings( aSupportedValues, |
|
669 |
sceneModeSettings,aPhotoScene ); |
|
670 |
||
671 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingVideoSceneModeNight, |
|
672 |
sceneModeSettings ); |
|
673 |
iConfigManagerImp->OrganiseSceneSettings( aSupportedValues, |
|
674 |
sceneModeSettings,aPhotoScene ); |
|
675 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingVideoSceneModeLowLight, |
|
676 |
sceneModeSettings ); |
|
677 |
iConfigManagerImp->OrganiseSceneSettings( aSupportedValues, |
|
678 |
sceneModeSettings,aPhotoScene ); |
|
679 |
} |
|
680 |
sceneModeSettings.Close(); |
|
681 |
} |
|
682 |
||
683 |
// |
|
684 |
//CCameraUiConfigManager::IsQwerty2ndCamera |
|
685 |
// |
|
686 |
EXPORT_C TInt CCameraUiConfigManager::IsQwerty2ndCamera() const |
|
687 |
{ |
|
688 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSetting2ndCameraOrientation ); |
|
689 |
} |
|
690 |
||
691 |
// ---------------------------------------------------------------------------------- |
|
692 |
// CCameraUiConfigManager::IsUIOrientationOverrideSupported |
|
693 |
// ---------------------------------------------------------------------------------- |
|
694 |
// |
|
695 |
EXPORT_C TBool CCameraUiConfigManager::IsUIOrientationOverrideSupported() const |
|
696 |
{ |
|
697 |
#if defined(__WINS__) || defined(__WINSCW__) |
|
698 |
return EFalse; |
|
699 |
#else |
|
700 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingUIOrientationOverride ); |
|
701 |
#endif |
|
702 |
} |
|
703 |
||
704 |
// ---------------------------------------------------------------------------------- |
|
705 |
// CCameraUiConfigManager::IsThumbnailManagerAPISupported |
|
706 |
// ---------------------------------------------------------------------------------- |
|
707 |
// |
|
708 |
EXPORT_C TBool CCameraUiConfigManager::IsThumbnailManagerAPISupported() const |
|
709 |
{ |
|
710 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingThumbnailManagerAPI ); |
|
711 |
} |
|
712 |
||
713 |
// ---------------------------------------------------------------------------------- |
|
714 |
// CCameraUiConfigManager::BurstFileSizeEstimateFactor |
|
715 |
// ---------------------------------------------------------------------------------- |
|
716 |
// |
|
717 |
EXPORT_C TInt CCameraUiConfigManager::BurstFileSizeEstimateFactor() const |
|
718 |
{ |
|
719 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingBurstFileSizeEstimateFactor ); |
|
720 |
} |
|
721 |
||
722 |
// ---------------------------------------------------------------------------------- |
|
723 |
// CCameraUiConfigManager::SupportedZoomDelays |
|
724 |
// ---------------------------------------------------------------------------------- |
|
725 |
// |
|
726 |
EXPORT_C void CCameraUiConfigManager::SupportedZoomDelaysL( |
|
727 |
RArray<TInt>& aSupportedValues ) |
|
728 |
{ |
|
729 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingZoomDelays, |
|
730 |
aSupportedValues ); |
|
731 |
} |
|
732 |
||
733 |
// ---------------------------------------------------------------------------------- |
|
734 |
// CCameraUiConfigManager::SupportedBurstMode |
|
735 |
// ---------------------------------------------------------------------------------- |
|
736 |
// |
|
737 |
EXPORT_C TBool CCameraUiConfigManager::IsBurstModeSupported() const |
|
738 |
{ |
|
739 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingBurstMode ); |
|
740 |
} |
|
741 |
||
742 |
// ---------------------------------------------------------------------------------- |
|
743 |
// CCameraUiConfigManager::IsContinuosAutofocus |
|
744 |
// ---------------------------------------------------------------------------------- |
|
745 |
// |
|
746 |
EXPORT_C TBool CCameraUiConfigManager::IsContinuosAutofocusSupported() const |
|
747 |
{ |
|
748 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingContinuousAF ); |
|
749 |
} |
|
750 |
||
751 |
// ---------------------------------------------------------------------------------- |
|
752 |
// CCameraUiConfigManager::SupportedScreenModesL |
|
753 |
// ---------------------------------------------------------------------------------- |
|
754 |
// |
|
755 |
EXPORT_C void CCameraUiConfigManager::SupportedScreenModesL( |
|
756 |
RArray<TInt>& aSupportedValues ) |
|
757 |
{ |
|
758 |
iConfigManagerImp->SupportedSettingItemsL( ECamDynamicSettingScreenModes, |
|
759 |
aSupportedValues ); |
|
760 |
} |
|
761 |
||
762 |
// ---------------------------------------------------------------------------------- |
|
763 |
// CCameraUiConfigManager::IsCustomCaptureButtonSupported |
|
764 |
// ---------------------------------------------------------------------------------- |
|
765 |
// |
|
766 |
EXPORT_C TBool CCameraUiConfigManager::IsCustomCaptureButtonSupported() const |
|
767 |
{ |
|
768 |
return iConfigManagerImp->IsFeatureSupported( ECamDynamicSettingCustomCaptureButton ); |
|
769 |
} |
|
770 |
//End of File |