CCameraPlugin Class Reference

class CCameraPlugin : public CCamera

Parent class for CCamera plugin. Abstract class for CCamera plugin, including ECom support.

CCamera

Inherits from

Protected Member Functions
CCameraPlugin ()
~CCameraPlugin ()
IMPORT_C TInt CameraVersion ()
IMPORT_C TInt CamerasAvailable ()
void Construct2DupL ( MCameraObserver &, TInt )
void Construct2DupL ( MCameraObserver2 &, TInt )
void Construct2L ( MCameraObserver &, TInt )
void Construct2L ( MCameraObserver2 &, TInt , TInt )
IMPORT_C CCameraPlugin * NewDuplicateL ( MCameraObserver &, TInt , TInt )
IMPORT_C CCameraPlugin * NewDuplicateL ( MCameraObserver2 &, TInt , TInt )
IMPORT_C CCameraPlugin * NewL ( MCameraObserver &, TInt , TInt )
IMPORT_C CCameraPlugin * NewL ( MCameraObserver2 &, TInt , TInt , TInt )
Private Member Functions
CCameraPlugin * NewL ( TInt )
CCameraPlugin * NewLC ( TInt )
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CCamera::Brightness()const
CCamera::BuffersInUse()const
CCamera::CameraInfo(TCameraInfo &)const
CCamera::CancelCaptureImage()
CCamera::CaptureImage()
CCamera::Contrast()const
CCamera::CustomInterface(TUid)
CCamera::DigitalZoomFactor()const
CCamera::EnumerateCaptureSizes(TSize &,TInt,TFormat)const
CCamera::EnumerateVideoFrameRates(TReal32 &,TInt,TFormat,TInt,TExposure)const
CCamera::EnumerateVideoFrameSizes(TSize &,TInt,TFormat)const
CCamera::Exposure()const
CCamera::Flash()const
CCamera::FrameRate()const
CCamera::FramesPerBuffer()const
CCamera::GetFrameSize(TSize &)const
CCamera::Handle()
CCamera::JpegQuality()const
CCamera::New2L(MCameraObserver2 &,TInt,TInt)
CCamera::NewDuplicate2L(MCameraObserver2 &,TInt)
CCamera::NewDuplicateL(MCameraObserver &,TInt)
CCamera::NewDuplicateL(MCameraObserver2 &,TInt)
CCamera::NewL(MCameraObserver &,TInt)
CCamera::NewL(MCameraObserver2 &,TInt,TInt)
CCamera::PowerOff()
CCamera::PowerOn()
CCamera::PrepareImageCaptureL(TFormat,TInt)
CCamera::PrepareImageCaptureL(TFormat,TInt,const TRect &)
CCamera::PrepareVideoCaptureL(TFormat,TInt,TInt,TInt,TInt)
CCamera::PrepareVideoCaptureL(TFormat,TInt,TInt,TInt,TInt,const TRect &)
CCamera::Release()
CCamera::Reserve()
CCamera::SetBrightnessL(TInt)
CCamera::SetContrastL(TInt)
CCamera::SetDigitalZoomFactorL(TInt)
CCamera::SetExposureL(TExposure)
CCamera::SetFlashL(TFlash)
CCamera::SetJpegQuality(TInt)
CCamera::SetViewFinderMirrorL(TBool)
CCamera::SetWhiteBalanceL(TWhiteBalance)
CCamera::SetZoomFactorL(TInt)
CCamera::StartVideoCapture()
CCamera::StartViewFinderBitmapsL(TSize &)
CCamera::StartViewFinderBitmapsL(TSize &,TRect &)
CCamera::StartViewFinderDirectL(RWsSession &,CWsScreenDevice &,RWindowBase &,TRect &)
CCamera::StartViewFinderDirectL(RWsSession &,CWsScreenDevice &,RWindowBase &,TRect &,TRect &)
CCamera::StartViewFinderL(TFormat,TSize &)
CCamera::StartViewFinderL(TFormat,TSize &,TRect &)
CCamera::StopVideoCapture()
CCamera::StopViewFinder()
CCamera::VideoCaptureActive()const
CCamera::ViewFinderActive()const
CCamera::ViewFinderMirror()const
CCamera::WhiteBalance()const
CCamera::ZoomFactor()const
Inherited Enumerations
CCamera:TBrightness
CCamera:TContrast
CCamera:TExposure
CCamera:TFlash
CCamera:TFormat
CCamera:TWhiteBalance
Private Attributes
CCameraStructure * iCameraStructure

Constructor & Destructor Documentation

CCameraPlugin()

IMPORT_C CCameraPlugin ( ) [protected]

Default constructor for this class.

~CCameraPlugin()

IMPORT_C ~CCameraPlugin ( ) [protected]

Destructor

Member Functions Documentation

CameraVersion()

IMPORT_C TInt CameraVersion ( ) [protected]

Returns the camera API version no.

CamerasAvailable()

IMPORT_C TInt CamerasAvailable ( ) [protected, static]

Construct2DupL(MCameraObserver &, TInt)

void Construct2DupL ( MCameraObserver & aObserver,
TInt aCameraHandle
) [protected, pure virtual]

A call to one of the factory functions firstly loads the plugin, followed by a call to this function to complete construction.

Duplicates the original camera object for use by, for example, multimedia systems.

May leave with KErrNoMemory or KErrNotFound if aCameraHandle is not valid.

Parameters

MCameraObserver & aObserver Reference to an observer.
TInt aCameraHandle Handle of an existing camera object.

Construct2DupL(MCameraObserver2 &, TInt)

void Construct2DupL ( MCameraObserver2 & aObserver,
TInt aCameraHandle
) [protected, pure virtual]

A call to one of the factory functions firstly loads the plugin, followed by a call to this function to complete construction.

Duplicates the original camera object for use by, for example, multimedia systems.

May leave with KErrNoMemory or KErrNotFound if aCameraHandle is not valid.

leave
May leave with KErrNoMemory or KErrNotFound if aCameraHandle is not valid.

Parameters

MCameraObserver2 & aObserver Reference to an observer.
TInt aCameraHandle Handle of an existing camera object.

Construct2L(MCameraObserver &, TInt)

void Construct2L ( MCameraObserver & aObserver,
TInt aCameraIndex
) [protected, pure virtual]

A call to one of the factory functions firstly loads the plugin, followed by a call to this function to complete construction.

Creates an object representing a camera.

leave
May leave with KErrNoMemory or KErrNotSupported if aCameraIndex is out of range.

Parameters

MCameraObserver & aObserver Reference to class derived from MCameraObserver2 designed to receive notification of asynchronous event completion.
TInt aCameraIndex Index from 0 to CamerasAvailable()-1 inclusive specifying the camera device to use.

Construct2L(MCameraObserver2 &, TInt, TInt)

void Construct2L ( MCameraObserver2 & aObserver,
TInt aCameraIndex,
TInt aPriority
) [protected, pure virtual]

A call to one of the factory functions firstly loads the plugin, followed by a call to this function to complete construction.

Creates an object representing a camera.

leave
May leave with KErrNoMemory or KErrNotSupported if aCameraIndex is out of range.

Parameters

MCameraObserver2 & aObserver Reference to class derived from MCameraObserver2 designed to receive notification of asynchronous event completion.
TInt aCameraIndex Index from 0 to CamerasAvailable()-1 inclusive specifying the camera device to use.
TInt aPriority Value from -100 to 100 indicating relative priority of client to use camera.

NewDuplicateL(MCameraObserver &, TInt, TInt)

IMPORT_C CCameraPlugin * NewDuplicateL ( MCameraObserver & aObserver,
TInt aCameraHandle,
TInt aCameraVersion
) [protected, static]

Parameters

MCameraObserver & aObserver
TInt aCameraHandle
TInt aCameraVersion

NewDuplicateL(MCameraObserver2 &, TInt, TInt)

IMPORT_C CCameraPlugin * NewDuplicateL ( MCameraObserver2 & aObserver,
TInt aCameraHandle,
TInt aCameraVersion
) [protected, static]

Parameters

MCameraObserver2 & aObserver
TInt aCameraHandle
TInt aCameraVersion

NewL(MCameraObserver &, TInt, TInt)

IMPORT_C CCameraPlugin * NewL ( MCameraObserver & aObserver,
TInt aCameraIndex,
TInt aCameraVersion
) [protected, static]

Parameters

MCameraObserver & aObserver
TInt aCameraIndex
TInt aCameraVersion

NewL(MCameraObserver2 &, TInt, TInt, TInt)

IMPORT_C CCameraPlugin * NewL ( MCameraObserver2 & aObserver,
TInt aCameraIndex,
TInt aPriority,
TInt aCameraVersion
) [protected, static]

Parameters

MCameraObserver2 & aObserver
TInt aCameraIndex
TInt aPriority
TInt aCameraVersion

NewL(TInt)

CCameraPlugin * NewL ( TInt aCameraVersion ) [private, static]

Returns the loaded plugin.

Parameters

TInt aCameraVersion

NewLC(TInt)

CCameraPlugin * NewLC ( TInt aCameraVersion ) [private, static]

Returns the loaded plugin. Plugin is left on the cleanup stack.

Parameters

TInt aCameraVersion The version of camera API used by applications

Member Data Documentation

CCameraStructure * iCameraStructure

CCameraStructure * iCameraStructure [private]