100 */ |
100 */ |
101 void CWebCameraActive::PowerOn() |
101 void CWebCameraActive::PowerOn() |
102 { |
102 { |
103 iOperation = ECamActivePowerOn; |
103 iOperation = ECamActivePowerOn; |
104 |
104 |
105 //Because there is not a camera device, I do not handle it |
105 //Because there is not a camera device, I do not handle it |
106 TRequestStatus* status = &iStatus; |
106 iDriver.PowerOn(iStatus); |
107 User::RequestComplete(status, KErrNone); |
107 |
108 SetActive(); |
108 SetActive(); |
109 } |
109 } |
110 |
110 |
111 /** |
111 /** |
112 Cancels the asynchronous still image capture. |
112 Cancels the asynchronous still image capture. |
113 |
113 |
114 Calls CWebCamera::ImageCaptureCallBackL when capture is complete. |
114 Calls CWebCamera::ImageCaptureCallBackL when capture is complete. |
115 |
115 |
116 * @param aDes descriptor to store a capture image |
116 * @param aDes descriptor to store a capture image |
117 */ |
117 */ |
118 void CWebCameraActive::ImageCapture(TDes8& aDes) |
118 void CWebCameraActive::ImageCapture(TInt& aChunkSize) |
119 { |
119 { |
120 iOperation = ECamActiveImageCapture; |
120 iOperation = ECamActiveImageCapture; |
121 |
121 |
122 // start capture image |
122 // start capture image |
123 // The division transfer is going to support in the next version. |
123 // The division transfer is going to support in the next version. |
124 iDriver.Capture(iStatus, aDes); |
124 iDriver.Capture(iStatus, aChunkSize); |
125 SetActive(); |
125 SetActive(); |
126 } |
126 } |
127 |
127 |
128 /** |
128 /** |
129 Cancels the asynchronous still image capture. |
129 Cancels the asynchronous still image capture. |