|
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 CXEENGINESYMBIAN_H |
|
18 #define CXEENGINESYMBIAN_H |
|
19 |
|
20 #include <QObject> |
|
21 #include "cxeengine.h" |
|
22 #include "cxefilenamegenerator.h" |
|
23 |
|
24 class CxeCameraDeviceControl; |
|
25 class CxeViewfinderControl; |
|
26 class CxeStillCaptureControl; |
|
27 class CxeVideoCaptureControl; |
|
28 class CxeSettingsControlSymbian; |
|
29 class CxeAutoFocusControl; |
|
30 class CxeFeatureManager; |
|
31 class CxeAutoFocusControl; |
|
32 class CxeSettings; |
|
33 class CxeFeatureManager; |
|
34 class CxeSettingsModel; |
|
35 class CxeSensorEventHandler; |
|
36 class CxeFilenameGenerator; |
|
37 class CxeQualityPresets; |
|
38 class CxeFileSaveThread; |
|
39 |
|
40 |
|
41 |
|
42 class CxeEngineSymbian : public CxeEngine |
|
43 { |
|
44 Q_OBJECT |
|
45 public: |
|
46 CxeEngineSymbian(); |
|
47 virtual ~CxeEngineSymbian(); |
|
48 |
|
49 void construct(); |
|
50 |
|
51 CxeCameraDeviceControl &cameraDeviceControl(); |
|
52 CxeViewfinderControl &viewfinderControl(); |
|
53 CxeStillCaptureControl &stillCaptureControl(); |
|
54 CxeVideoCaptureControl &videoCaptureControl(); |
|
55 CxeAutoFocusControl &autoFocusControl(); |
|
56 CxeZoomControl &zoomControl(); |
|
57 CxeSettings &settings(); |
|
58 CxeSensorEventHandler &sensorEventHandler(); |
|
59 CxeFeatureManager &featureManager(); |
|
60 Cxe::CameraMode mode() const; |
|
61 void initMode(Cxe::CameraMode cameraMode); |
|
62 bool isEngineReady(); |
|
63 |
|
64 protected: |
|
65 virtual void createControls(); |
|
66 |
|
67 private slots: |
|
68 void doInit(); |
|
69 |
|
70 private: |
|
71 void connectSignals(); |
|
72 bool reserveNeeded(); |
|
73 bool initNeeded(); |
|
74 bool startViewfinderNeeded(); |
|
75 |
|
76 protected: |
|
77 CxeCameraDeviceControl *mCameraDeviceControl; |
|
78 CxeViewfinderControl *mViewfinderControl; |
|
79 CxeStillCaptureControl *mStillCaptureControl; |
|
80 CxeVideoCaptureControl *mVideoCaptureControl; |
|
81 CxeSettingsControlSymbian *mSettingsControl; |
|
82 CxeAutoFocusControl *mAutoFocusControl; |
|
83 CxeZoomControl *mZoomControl; |
|
84 CxeSettings *mSettings; |
|
85 CxeFeatureManager *mFeatureManager; |
|
86 CxeSettingsModel *mSettingsModel; |
|
87 CxeFilenameGenerator *mFilenameGenerator; |
|
88 CxeSensorEventHandler* mSensorEventHandler; |
|
89 CxeQualityPresets *mQualityPresets; |
|
90 CxeFileSaveThread *mFileSaveThread; |
|
91 }; |
|
92 |
|
93 |
|
94 #endif // CXEENGINESYMBIAN_H |
|
95 |