MContinuousZoomObserver Class Reference

class MContinuousZoomObserver

A mixin class to be implemented by the client in order to use the Continuous Zoom API. The callbacks are invoked by the implementation whenever the continuous zoom operations are ready to be notified.

CCameraContinuousZoom

Member Functions Documentation

ContinuousZoomCompleted(CCamera::CCameraContinuousZoom &, TInt, TInt)

voidContinuousZoomCompleted(CCamera::CCameraContinuousZoom &aContinuousZoomHandle,
TIntaFinalZoomFactor,
TIntaError
)[pure virtual]

Implementation sends this callback when the Continuous Zoom operation has been completed. This callback will be sent when target zoom factor is achieved. This zoom factor may in some cases be less than the target zoom factor due to the complexity of the continuous zoom operation. Once this callback is received, client need not issue StopContinuousZoom() and can call StartContinuousZoom() again.

Parameters

CCamera::CCameraContinuousZoom & aContinuousZoomHandleReference to CCameraContinuousZoom class object which was used to start the continuous zoom operation.
TInt aFinalZoomFactorThe final zoom factor value once the continuous zoom operation has completed. This zoom factor may in some cases be less than the target zoom factor due to the complexity of the continuous zoom operation.
TInt aError

ContinuousZoomProgress(CCamera::CCameraContinuousZoom &, TInt, TInt)

voidContinuousZoomProgress(CCamera::CCameraContinuousZoom &aContinuousZoomHandle,
TIntaZoomFactor,
TIntaError
)[pure virtual]

This callback is sent when a new zoom factor is achieved. Client may not receive a callback for every new zoom factor as it is up to the implementation to choose the zoom factors for which it will issue this callback. Should an error occur, this implies that the continuous zoom operation has been stopped.

Parameters

CCamera::CCameraContinuousZoom & aContinuousZoomHandleReference to CCameraContinuousZoom class object which was used to start the continuous zoom operation.
TInt aZoomFactorThe new zoom factor value, multiplied by KECamFineResolutionFactor, which has been achieved.
TInt aErrorAppropriate error code.

CustomInterface(TUid, TAny *&)

TInt CustomInterface(TUidaInterface,
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.

The error code.

Parameters

TUid aInterfaceThe Uid of the particular interface function required for callbacks.
TAny *& aPtrInterfaceThe implementation has to type-cast the retrieved custom interface pointer to the appropriate type.