|
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 "cxecameradevicecontrolsymbian.h" |
|
18 #include "cxuifakecameradevicecontrol.h" |
|
19 #include "cxesettingsimp.h" |
|
20 #include "cxefeaturemanagerimp.h" |
|
21 #include "CxeSettingsModel.h" |
|
22 #include "cxutils.h" |
|
23 #include "cxenamespace.h" |
|
24 |
|
25 #ifdef __WINSCW__ |
|
26 #include "cxedummycamera.h" |
|
27 #endif |
|
28 |
|
29 |
|
30 CxuiFakeCameraDeviceControl::CxuiFakeCameraDeviceControl() |
|
31 : CxeCameraDeviceControlSymbian(), |
|
32 mCameraDevice(NULL), |
|
33 mCameraIndex(Cxe::PrimaryCameraIndex), |
|
34 mCameraMode(Cxe::ImageMode) |
|
35 { |
|
36 CX_DEBUG_IN_FUNCTION(); |
|
37 } |
|
38 |
|
39 CxuiFakeCameraDeviceControl::~CxuiFakeCameraDeviceControl() |
|
40 { |
|
41 CX_DEBUG_IN_FUNCTION(); |
|
42 } |
|
43 |
|
44 void CxuiFakeCameraDeviceControl::reserve() |
|
45 { |
|
46 CX_DEBUG_ENTER_FUNCTION(); |
|
47 |
|
48 if (state() == Idle) { |
|
49 setState(Initializing); |
|
50 } |
|
51 |
|
52 setState( Ready ); |
|
53 emit deviceReady(); |
|
54 |
|
55 CX_DEBUG_EXIT_FUNCTION(); |
|
56 } |
|
57 |
|
58 void CxuiFakeCameraDeviceControl::powerOn() |
|
59 { |
|
60 CX_DEBUG_ENTER_FUNCTION(); |
|
61 |
|
62 CX_DEBUG_ASSERT(state() == Initializing); |
|
63 emit deviceReady(); |
|
64 |
|
65 CX_DEBUG_EXIT_FUNCTION(); |
|
66 } |
|
67 |
|
68 // end of file |