class MPreImageCaptureControlObserver |
A mixin class to be implemented by the client in order to use the PreImageCaptureControl API. The derived class methods are called by the implementation when the pre image capture operations are ready to be notified accordingly.
Public Member Functions | |
---|---|
TInt | CustomInterface ( TUid , TAny *&) |
void | PrepareImageComplete ( CCamera::CCameraImageCapture *, TInt ) |
TInt | CustomInterface | ( | TUid | aInterface, |
TAny *& | aPtrInterface | |||
) | [pure virtual] |
Gets a custom interface for future callbacks. This method will be called by the implementation to get a new interface which would support future callbacks.
void | PrepareImageComplete | ( | CCamera::CCameraImageCapture * | aCaptureImageHandle, |
TInt | aErrorCode | |||
) | [pure virtual] |
Implementation sends this callback as a result of PrepareImageCapture completion. Every time client calls CCameraPreImageCaptureControl::PrepareImageCapture, a new CCameraImageCapture* will be passed to the client for image capture operations. Implementation will create the CCameraImageCapture* object after allocating the memory resources required. Ownership of CCameraImageCapture* object will be passed to the client.
Every time client needs to change the prepare image settings, a new instance of CCameraImageCapture will be provided to it by the implementation.
If error is KErrECamImageResourceNotReleased and client wants to successfully call the Prepare method again, client needs to delete all CCameraImageCapture objects and any Snapshot and Histogram objects associated with it as well.
If error is KErrECamVideoResourceNotReleased and client wants to successfully call the Prepare method again, client needs to call ReleaseVideoResource to unprepare video and then delete any Snapshot and Histogram objects associated with it as well.
If drive mode is set to EDriveModeTimeNudgeCapture the client will only receive this callback once the implementation is ready with the number of pre-capture images specified in TDriveModeDependentAttributes.
CCamera::CCameraImageCapture * aCaptureImageHandle | Retrieves pointer to the CCameraImageCapture object created by the implementation. |
TInt aErrorCode | Appropriate error code. KErrECamImageResourceNotReleased when camera device is capable of preparing only still or video. KErrECamVideoResourceNotReleased when camera device is capable of preparing only still or video. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.