CCamera::CCameraDirectSnapshot Class Reference

class CCamera::CCameraDirectSnapshot : public CBase

This class allows the client to enable direct snapshot feature for still images only. The direct snapshot API can not be used for video.

The direct snapshot can be created out of CCameraV2DirectViewFinder object only. Its lifetime is dependent on the parent direct viewfinder object. So, the client is supposed to destroy the direct snapshot object before deleting the parent direct viewfinder object. The MDirectViewFinderObserver observer class provides callback to notify the client whenever direct snapshot data gets displayed on the given direct viewfinder screen. The callback also provides information regarding the CCameraImageCapture object used to issue the image capture calls. It also provides the Id for the individual images which get represented by the snapshot displayed.

Note:

This class provides a standardised client interface for the direct snapshot. Classes cannot be derived from it.

If the class methods leave, the output type parameter value is not guaranteed to be valid.

Inherits from

  • CCamera::CCameraDirectSnapshot

Constructor & Destructor Documentation

CCameraDirectSnapshot()

CCameraDirectSnapshot()[private]

Constructor for the CCameraDirectSnapshot class.

~CCameraDirectSnapshot()

IMPORT_C~CCameraDirectSnapshot()

Destructor

Member Functions Documentation

ConstructL(CCamera::CCameraV2DirectViewFinder &)

voidConstructL(CCamera::CCameraV2DirectViewFinder &aDirectViewFinder)[private]

CCameraDirectSnapshot second phase constructor

Function used to initialise internal state of the object.

leave
KErrNoMemory Out of memory; or any other error code as well.
Note:

This method is supposed to be used by this class only.

Parameters

CCamera::CCameraV2DirectViewFinder & aDirectViewFinderA reference to the camera direct viewfinder object on which the direct snapshot will be displayed.

CreateL(CCamera::CCameraV2DirectViewFinder &)

IMPORT_C CCameraDirectSnapshot *CreateL(CCamera::CCameraV2DirectViewFinder &aDirectViewFinder)[private, static]

Factory function that creates a new camera direct snapshot object.

leave
KErrNoMemory if out of memory; also any system wide error.

Parameters

CCamera::CCameraV2DirectViewFinder & aDirectViewFinderA reference to the camera direct viewfinder object for which a camera direct snapshot object is to be created.

DirectViewFinderImpl(CCamera::CCameraV2DirectViewFinder &)

MCameraV2DirectViewFinder *DirectViewFinderImpl(CCamera::CCameraV2DirectViewFinder &aDirectViewFinder)[private]

Provides the interface pointer for the concrete implementation of CCameraV2DirectViewFinder.

Parameters

CCamera::CCameraV2DirectViewFinder & aDirectViewFinderA reference to the camera direct viewfinder object

DisableDirectSnapshot()

IMPORT_C voidDisableDirectSnapshot()

Disable the direct snapshot. The direct snapshot will not be displayed on the parent direct viewfinder screen.

EnableDirectSnapshotL(TDirectSnapshotParameters &)

IMPORT_C voidEnableDirectSnapshotL(TDirectSnapshotParameters &aDirectSnapshotParameters)

Enable the direct snapshot. The direct snapshot will be displayed on the parent direct viewfinder screen. The screen size of the snapshot will be the same as that of the parent direct viewfinder screen.

The direct snapshot can be displayed only for still images.

leave
May leave with any error code.

Parameters

TDirectSnapshotParameters & aDirectSnapshotParametersThe desired direct snapshot parameter.

GetDirectSnapshotParametersL(TDirectSnapshotParameters &)

IMPORT_C voidGetDirectSnapshotParametersL(TDirectSnapshotParameters &aDirectSnapshotParameters)const

Retrieves the direct snapshot parameters.

leave
May leave with any error code.

Parameters

TDirectSnapshotParameters & aDirectSnapshotParametersRetrieves the direct snapshot parameter of type TDirectSnapshotParameters.

GetDirectSnapshotStateL(TDirectSnapshotState &)

IMPORT_C voidGetDirectSnapshotStateL(TDirectSnapshotState &aDirectSnapshotParameters)const

Retrieves the current state for direct snapshot.

leave
May leave with any error code.

Parameters

TDirectSnapshotState & aDirectSnapshotParametersRetrieves the current state for direct snapshot.

GetDirectViewFinderL(CCamera::CCameraV2DirectViewFinder *&)

IMPORT_C voidGetDirectViewFinderL(CCamera::CCameraV2DirectViewFinder *&aDirectViewFinder)const

Retrieve the version2 direct viewfinder object out of which this direct snapshot has been created. This information may be required by the client in order to map the direct snapshot object with its parent version2 direct viewfinder object or also to retrieve properties of its parent version2 direct viewfinder object.

leave
May leave with any error code.

Parameters

CCamera::CCameraV2DirectViewFinder *& aDirectViewFinderA pointer to the camera version2 direct viewfinder object on which the direct snapshot will be displayed.

SetDirectSnapshotParametersL(const TDirectSnapshotParameters &)

IMPORT_C voidSetDirectSnapshotParametersL(const TDirectSnapshotParameters &aDirectSnapshotParameters)

Sets the direct snapshot parameters.

leave
May leave with any error code.

Parameters

const TDirectSnapshotParameters & aDirectSnapshotParametersThe desired direct snapshot parameter of type TDirectSnapshotParameters.

Member Enumerations Documentation

Enum TDirectSnapshotState

Describes the state of direct snapshot. The enumeration list may be extended in future.

Enumerators

EDirectSnapshotEnabled

The direct snapshot has been enabled.

EDirectSnapshotDisabled

The direct snapshot has been disabled.

Member Data Documentation

MCameraDirectSnapshot * iImpl

MCameraDirectSnapshot *iImpl[private]