|
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 #ifndef CXECAMERADEVICE_H |
|
18 #define CXECAMERADEVICE_H |
|
19 |
|
20 // Include Files |
|
21 |
|
22 #include <QObject> |
|
23 #include <ecam.h> // CCamera |
|
24 #include <ecam/camerasnapshot.h> |
|
25 #include <ecamadvsettings.h> // CCamera::CCameraAdvancedSettings |
|
26 #include "cxeerror.h" |
|
27 #include "cxenamespace.h" |
|
28 |
|
29 class MCameraOrientation; |
|
30 class MCameraFaceTracking; |
|
31 |
|
32 // Class Definitions |
|
33 class CxeCameraDevice : public QObject |
|
34 { |
|
35 Q_OBJECT |
|
36 |
|
37 public: |
|
38 CxeCameraDevice(); |
|
39 virtual ~CxeCameraDevice(); |
|
40 |
|
41 CCamera* camera(); |
|
42 CCamera::CCameraAdvancedSettings *advancedSettings(); |
|
43 CCamera::CCameraImageProcessing *imageProcessor(); |
|
44 MCameraOrientation *cameraOrientation(); |
|
45 CCamera::CCameraSnapshot *cameraSnapshot(); |
|
46 MCameraFaceTracking *faceTracking(); |
|
47 |
|
48 virtual void setCamera( CCamera *aCamera ); |
|
49 virtual void deleteCamera(); |
|
50 virtual void releaseCamera(); |
|
51 virtual CxeError::Id newCamera(Cxe::CameraIndex cameraIndex, MCameraObserver2 *observer); |
|
52 |
|
53 protected: |
|
54 |
|
55 signals: |
|
56 void prepareForCameraDelete(); |
|
57 void cameraAllocated(CxeError::Id error); |
|
58 void prepareForRelease(); |
|
59 |
|
60 |
|
61 private: |
|
62 CxeError::Id initResources(); |
|
63 void releaseResources(); |
|
64 |
|
65 private: |
|
66 CCamera *mCamera; |
|
67 CCamera::CCameraAdvancedSettings *mAdvancedSettings; |
|
68 CCamera::CCameraImageProcessing *mImageProcessor; |
|
69 CCamera::CCameraSnapshot *mCameraSnapshot; |
|
70 MCameraOrientation *mCameraOrientation; // not owned |
|
71 MCameraFaceTracking *mFaceTracking; // not owned |
|
72 |
|
73 friend class CxeCameraDeviceControlSymbian; |
|
74 }; |
|
75 |
|
76 |
|
77 #endif // CXECAMERADEVICE_H |
|
78 |