equal
deleted
inserted
replaced
19 |
19 |
20 #include <QList> |
20 #include <QList> |
21 #include <ecam.h> |
21 #include <ecam.h> |
22 #include <QPixmap> |
22 #include <QPixmap> |
23 #include <QVariant> |
23 #include <QVariant> |
24 #include <driveinfo.h> |
|
25 |
24 |
26 #include "cxestillcapturecontrol.h" |
25 #include "cxestillcapturecontrol.h" |
27 #include "cxeautofocuscontrol.h" |
26 #include "cxeautofocuscontrol.h" |
28 #include "cxesensoreventhandler.h" |
27 #include "cxesensoreventhandler.h" |
29 #include "cxestatemachine.h" |
28 #include "cxestatemachine.h" |
42 class CxeSensorEventHandler; |
41 class CxeSensorEventHandler; |
43 class CxeCameraDeviceControl; |
42 class CxeCameraDeviceControl; |
44 class CxeAutoFocusControl; |
43 class CxeAutoFocusControl; |
45 class CxeSettings; |
44 class CxeSettings; |
46 class CxeQualityPresets; |
45 class CxeQualityPresets; |
47 |
46 class CxeDiskMonitor; |
48 |
47 |
49 |
48 |
50 /** |
49 /** |
51 * Class CxeStillCaptureControlSymbian. |
50 * Class CxeStillCaptureControlSymbian. |
52 * Inherits/implements CxeStillCaptureControl. |
51 * Inherits/implements CxeStillCaptureControl. |
64 CxeFilenameGenerator &nameGenerator, |
63 CxeFilenameGenerator &nameGenerator, |
65 CxeSensorEventHandler &sensorEventHandler, |
64 CxeSensorEventHandler &sensorEventHandler, |
66 CxeAutoFocusControl &autoFocusControl, |
65 CxeAutoFocusControl &autoFocusControl, |
67 CxeSettings &settings, |
66 CxeSettings &settings, |
68 CxeQualityPresets &qualityPresets, |
67 CxeQualityPresets &qualityPresets, |
69 CxeFileSaveThread &fileSaveThread); |
68 CxeFileSaveThread &fileSaveThread, |
|
69 CxeDiskMonitor &diskMonitor); |
70 |
70 |
71 virtual ~CxeStillCaptureControlSymbian(); |
71 virtual ~CxeStillCaptureControlSymbian(); |
72 |
72 |
73 public: // from CxeStillCaptureControl |
73 public: // from CxeStillCaptureControl |
74 |
74 |
109 void handleImageData( MCameraBuffer *buffer, int error ); |
109 void handleImageData( MCameraBuffer *buffer, int error ); |
110 |
110 |
111 // settings call back |
111 // settings call back |
112 void handleSettingValueChanged(const QString& settingId,QVariant newValue); |
112 void handleSettingValueChanged(const QString& settingId,QVariant newValue); |
113 |
113 |
|
114 // Disk space change |
|
115 void handleDiskSpaceChanged(); |
|
116 |
114 // Autofocus events |
117 // Autofocus events |
115 void handleAutofocusStateChanged(CxeAutoFocusControl::State newState, CxeError::Id error); |
118 void handleAutofocusStateChanged(CxeAutoFocusControl::State newState, CxeError::Id error); |
116 |
119 |
117 // sensor events |
120 // sensor events |
118 void handleSensorEvent(CxeSensorEventHandler::SensorType type,QVariant data); |
121 void handleSensorEvent(CxeSensorEventHandler::SensorType type,QVariant data); |
129 void handleSnapshotEvent(CxeError::Id error); |
132 void handleSnapshotEvent(CxeError::Id error); |
130 QPixmap extractSnapshot(); |
133 QPixmap extractSnapshot(); |
131 void initializeStates(); |
134 void initializeStates(); |
132 void prepare(); |
135 void prepare(); |
133 void updateRemainingImagesCounter(); |
136 void updateRemainingImagesCounter(); |
134 int calculateRemainingImages(int estimatedImagesize) ; |
137 int calculateRemainingImages(int estimatedImagesize); |
135 |
138 |
136 private: // private data |
139 private: // private data |
137 |
140 |
138 CxeImageDataQueueSymbian *mImageDataQueue; // own |
141 CxeImageDataQueueSymbian *mImageDataQueue; // own |
139 CxeCameraDevice &mCameraDevice; |
142 CxeCameraDevice &mCameraDevice; |
143 CxeSensorEventHandler &mSensorEventHandler; |
146 CxeSensorEventHandler &mSensorEventHandler; |
144 CxeAutoFocusControl &mAutoFocusControl; |
147 CxeAutoFocusControl &mAutoFocusControl; |
145 CxeSettings &mSettings; |
148 CxeSettings &mSettings; |
146 CxeQualityPresets &mQualityPresets; |
149 CxeQualityPresets &mQualityPresets; |
147 CxeFileSaveThread &mFileSaveThread; |
150 CxeFileSaveThread &mFileSaveThread; |
|
151 CxeDiskMonitor &mDiskMonitor; |
148 CxeSoundPlayerSymbian *mCaptureSoundPlayer; |
152 CxeSoundPlayerSymbian *mCaptureSoundPlayer; |
149 CxeSoundPlayerSymbian *mAutoFocusSoundPlayer; |
153 CxeSoundPlayerSymbian *mAutoFocusSoundPlayer; |
150 CaptureMode mMode; |
154 CaptureMode mMode; |
151 CxeAutoFocusControl::State mAfState; |
155 CxeAutoFocusControl::State mAfState; |
152 QList<CxeStillImageSymbian*> mImages; |
156 QList<CxeStillImageSymbian*> mImages; |