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 TIntCameraVersion()
IMPORT_C TIntCamerasAvailable()
voidConstruct2DupL(MCameraObserver &, TInt)
voidConstruct2DupL(MCameraObserver2 &, TInt)
voidConstruct2L(MCameraObserver &, TInt)
voidConstruct2L(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_CCCameraPlugin()[protected]

Default constructor for this class.

~CCameraPlugin()

IMPORT_C~CCameraPlugin()[protected]

Destructor

Member Functions Documentation

CameraVersion()

IMPORT_C TIntCameraVersion()[protected]

Returns the camera API version no.

CamerasAvailable()

IMPORT_C TIntCamerasAvailable()[protected, static]

Construct2DupL(MCameraObserver &, TInt)

voidConstruct2DupL(MCameraObserver &aObserver,
TIntaCameraHandle
)[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 & aObserverReference to an observer.
TInt aCameraHandleHandle of an existing camera object.

Construct2DupL(MCameraObserver2 &, TInt)

voidConstruct2DupL(MCameraObserver2 &aObserver,
TIntaCameraHandle
)[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 & aObserverReference to an observer.
TInt aCameraHandleHandle of an existing camera object.

Construct2L(MCameraObserver &, TInt)

voidConstruct2L(MCameraObserver &aObserver,
TIntaCameraIndex
)[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 & aObserverReference to class derived from MCameraObserver2 designed to receive notification of asynchronous event completion.
TInt aCameraIndexIndex from 0 to CamerasAvailable()-1 inclusive specifying the camera device to use.

Construct2L(MCameraObserver2 &, TInt, TInt)

voidConstruct2L(MCameraObserver2 &aObserver,
TIntaCameraIndex,
TIntaPriority
)[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 & aObserverReference to class derived from MCameraObserver2 designed to receive notification of asynchronous event completion.
TInt aCameraIndexIndex from 0 to CamerasAvailable()-1 inclusive specifying the camera device to use.
TInt aPriorityValue from -100 to 100 indicating relative priority of client to use camera.

NewDuplicateL(MCameraObserver &, TInt, TInt)

IMPORT_C CCameraPlugin *NewDuplicateL(MCameraObserver &aObserver,
TIntaCameraHandle,
TIntaCameraVersion
)[protected, static]

Parameters

MCameraObserver & aObserver
TInt aCameraHandle
TInt aCameraVersion

NewDuplicateL(MCameraObserver2 &, TInt, TInt)

IMPORT_C CCameraPlugin *NewDuplicateL(MCameraObserver2 &aObserver,
TIntaCameraHandle,
TIntaCameraVersion
)[protected, static]

Parameters

MCameraObserver2 & aObserver
TInt aCameraHandle
TInt aCameraVersion

NewL(MCameraObserver &, TInt, TInt)

IMPORT_C CCameraPlugin *NewL(MCameraObserver &aObserver,
TIntaCameraIndex,
TIntaCameraVersion
)[protected, static]

Parameters

MCameraObserver & aObserver
TInt aCameraIndex
TInt aCameraVersion

NewL(MCameraObserver2 &, TInt, TInt, TInt)

IMPORT_C CCameraPlugin *NewL(MCameraObserver2 &aObserver,
TIntaCameraIndex,
TIntaPriority,
TIntaCameraVersion
)[protected, static]

Parameters

MCameraObserver2 & aObserver
TInt aCameraIndex
TInt aPriority
TInt aCameraVersion

NewL(TInt)

CCameraPlugin *NewL(TIntaCameraVersion)[private, static]

Returns the loaded plugin.

Parameters

TInt aCameraVersion

NewLC(TInt)

CCameraPlugin *NewLC(TIntaCameraVersion)[private, static]

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

Parameters

TInt aCameraVersionThe version of camera API used by applications

Member Data Documentation

CCameraStructure * iCameraStructure

CCameraStructure *iCameraStructure[private]