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.
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.
Public Member Functions | |
---|---|
~CCameraDirectSnapshot() | |
IMPORT_C void | DisableDirectSnapshot() |
IMPORT_C void | EnableDirectSnapshotL(TDirectSnapshotParameters &) |
IMPORT_C void | GetDirectSnapshotParametersL(TDirectSnapshotParameters &) |
IMPORT_C void | GetDirectSnapshotStateL(TDirectSnapshotState &) |
IMPORT_C void | GetDirectViewFinderL(CCamera::CCameraV2DirectViewFinder *&) |
IMPORT_C void | SetDirectSnapshotParametersL(const TDirectSnapshotParameters &) |
Private Member Functions | |
---|---|
CCameraDirectSnapshot() | |
void | ConstructL(CCamera::CCameraV2DirectViewFinder &) |
IMPORT_C CCameraDirectSnapshot * | CreateL(CCamera::CCameraV2DirectViewFinder &) |
MCameraV2DirectViewFinder * | DirectViewFinderImpl(CCamera::CCameraV2DirectViewFinder &) |
Public Member Enumerations | |
---|---|
enum | TDirectSnapshotState { EDirectSnapshotEnabled, EDirectSnapshotDisabled } |
Private Attributes | |
---|---|
MCameraDirectSnapshot * | iImpl |
void | ConstructL | ( | CCamera::CCameraV2DirectViewFinder & | aDirectViewFinder | ) | [private] |
CCamera::CCameraV2DirectViewFinder & aDirectViewFinder |
IMPORT_C CCameraDirectSnapshot * | CreateL | ( | CCamera::CCameraV2DirectViewFinder & | aDirectViewFinder | ) | [private, static] |
CCamera::CCameraV2DirectViewFinder & aDirectViewFinder |
MCameraV2DirectViewFinder * | DirectViewFinderImpl | ( | CCamera::CCameraV2DirectViewFinder & | aDirectViewFinder | ) | [private] |
CCamera::CCameraV2DirectViewFinder & aDirectViewFinder |
IMPORT_C void | EnableDirectSnapshotL | ( | TDirectSnapshotParameters & | aDirectSnapshotParameters | ) |
TDirectSnapshotParameters & aDirectSnapshotParameters |
IMPORT_C void | GetDirectSnapshotParametersL | ( | TDirectSnapshotParameters & | aDirectSnapshotParameters | ) | const |
TDirectSnapshotParameters & aDirectSnapshotParameters |
IMPORT_C void | GetDirectSnapshotStateL | ( | TDirectSnapshotState & | aDirectSnapshotParameters | ) | const |
TDirectSnapshotState & aDirectSnapshotParameters |
IMPORT_C void | GetDirectViewFinderL | ( | CCamera::CCameraV2DirectViewFinder *& | aDirectViewFinder | ) | const |
CCamera::CCameraV2DirectViewFinder *& aDirectViewFinder |
IMPORT_C void | SetDirectSnapshotParametersL | ( | const TDirectSnapshotParameters & | aDirectSnapshotParameters | ) |
const TDirectSnapshotParameters & aDirectSnapshotParameters |
Describes the state of direct snapshot. The enumeration list may be extended in future.
EDirectSnapshotEnabled |
The direct snapshot has been enabled. |
EDirectSnapshotDisabled |
The direct snapshot has been disabled. |