54 |
54 |
55 // ----------------------------------------------------------------------------- |
55 // ----------------------------------------------------------------------------- |
56 // |
56 // |
57 // ----------------------------------------------------------------------------- |
57 // ----------------------------------------------------------------------------- |
58 // |
58 // |
59 EXPORT_C CMceCameraSource* CMceCameraSource::NewLC( CMceManager& /*aManager*/ ) |
59 EXPORT_C CMceCameraSource* CMceCameraSource::NewLC( CMceManager& aManager ) |
60 { |
60 { |
61 CMceCameraSource* self = new( ELeave )CMceCameraSource(); |
61 CMceCameraSource* self = new (ELeave) CMceCameraSource(); |
62 CleanupStack::PushL( self ); |
62 CleanupStack::PushL( self ); |
|
63 self->ConstructL( &aManager ); |
63 return self; |
64 return self; |
64 } |
65 } |
65 |
66 |
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 EXPORT_C CMceCameraSource* CMceCameraSource::NewL() |
|
71 { |
|
72 CMceCameraSource* self = CMceCameraSource::NewLC(); |
|
73 CleanupStack::Pop( self ); |
|
74 return self; |
|
75 } |
|
76 |
|
77 |
|
78 // ----------------------------------------------------------------------------- |
|
79 // |
|
80 // ----------------------------------------------------------------------------- |
|
81 // |
|
82 EXPORT_C CMceCameraSource* CMceCameraSource::NewLC() |
|
83 { |
|
84 CMceCameraSource* self = new( ELeave )CMceCameraSource(); |
|
85 CleanupStack::PushL( self ); |
|
86 return self; |
|
87 } |
|
88 |
67 |
89 // ----------------------------------------------------------------------------- |
68 // ----------------------------------------------------------------------------- |
90 // |
69 // |
91 // ----------------------------------------------------------------------------- |
70 // ----------------------------------------------------------------------------- |
92 // |
71 // |
344 iZoomFactor( 1 ), |
320 iZoomFactor( 1 ), |
345 iDigitalZoomFactor( 0 ), |
321 iDigitalZoomFactor( 0 ), |
346 iContrast( 0 ), |
322 iContrast( 0 ), |
347 iBrightness( 0 ), |
323 iBrightness( 0 ), |
348 iExposure( CCamera::EExposureAuto ), |
324 iExposure( CCamera::EExposureAuto ), |
349 iWhiteBalance( CCamera::EWBAuto ), |
325 iWhiteBalance( CCamera::EWBAuto ) |
350 iCameraCount ( 2 ) |
|
351 { |
326 { |
352 iType = KMceCameraSource; |
327 iType = KMceCameraSource; |
353 iCameraInfo.iMinZoom = 1; |
328 iCameraInfo.iMinZoom = 1; |
354 iCameraInfo.iMaxZoom = 3; |
329 iCameraInfo.iMaxZoom = 3; |
355 iCameraInfo.iMaxDigitalZoom = 10; |
330 iCameraInfo.iMaxDigitalZoom = 10; |
356 } |
331 } |
|
332 |
|
333 |
|
334 // ----------------------------------------------------------------------------- |
|
335 // |
|
336 // ----------------------------------------------------------------------------- |
|
337 // |
|
338 void CMceCameraSource::ConstructL( CMceManager* /*aManager*/ ) |
|
339 { |
|
340 } |
|
341 |