equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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: |
|
15 * |
|
16 */ |
|
17 #include "cxefakecameradevice.h" |
|
18 #include "cxeerrormappingsymbian.h" |
|
19 #include "cxutils.h" |
|
20 #include "cxedummycamera.h" |
|
21 |
|
22 CxeFakeCameraDevice::CxeFakeCameraDevice() : CxeCameraDevice() |
|
23 { |
|
24 CX_DEBUG_IN_FUNCTION(); |
|
25 } |
|
26 |
|
27 CxeFakeCameraDevice::~CxeFakeCameraDevice() |
|
28 { |
|
29 CX_DEBUG_IN_FUNCTION(); |
|
30 } |
|
31 |
|
32 CxeError::Id CxeFakeCameraDevice::newCamera(Cxe::CameraIndex cameraIndex, MCameraObserver2 *observer) { |
|
33 |
|
34 CX_DEBUG_ENTER_FUNCTION(); |
|
35 |
|
36 CCamera* camera = NULL; |
|
37 TRAPD(err, camera = CxeDummyCamera::NewL(*observer, cameraIndex, 100, 2)); |
|
38 |
|
39 if (!err) { |
|
40 setCamera(camera); |
|
41 } |
|
42 |
|
43 CX_DEBUG_EXIT_FUNCTION(); |
|
44 return CxeErrorHandlingSymbian::map(err); |
|
45 } |
|
46 |
|
47 // end of file |