CCameraStatusWatch Class Reference

class CCameraStatusWatch : public CActive

An active object class implemented by Symbian and used to subscribe for the updates in the Properties, retrieve the Properties and forward the notification to the client.

Note:

Serialized part of the ECam implementation is assumed to define the Properties and publish them whenever there is change in the reserve status.

Inherits from

Constructor & Destructor Documentation

CCameraStatusWatch(MReserveObserver &, TInt, TInt)

CCameraStatusWatch(MReserveObserver &aReserveObserver,
TIntaCameraIndex,
TIntaSecureId
)[private]

Constructor

Parameters

MReserveObserver & aReserveObserver
TInt aCameraIndex
TInt aSecureId

~CCameraStatusWatch()

IMPORT_C~CCameraStatusWatch()

Destructor. The destructor has to be called by the client when it does not need the desired reserve notifications any more.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

Second Phase Constructor. Attaches to the Property as implied by the camera index, adds the active object to the active scheduler list and kicks off the RunL.

leave
May leave with any error code
Note:

Serialized part of the ECam implementation is assumed to define the Properties and publish them whenever there is change in the reserve status.

DoCancel()

voidDoCancel()[private, virtual]

Cancels any outstanding subscription.

NewL(MReserveObserver &, TInt, TInt)

CCameraStatusWatch *NewL(MReserveObserver &aReserveObserver,
TIntaCameraIndex,
TIntaSecureId
)[static]

Used to create the CCameraStatusWatch class object. This is needed by the method TReservedInfo::SubscribeReserveInfoL in order to grab the reserve notification from the ECam implementation and hence further forward it to the observer MReserveObserver.

leave
May leave with any error code

Parameters

MReserveObserver & aReserveObserverReference to an observer.
TInt aCameraIndexThe camera index for which the subscription is needed.
TInt aSecureIdThe secure ID of the process where serialized part of the ECam implementation runs.

RunL()

voidRunL()[private, virtual]

Re-issues the subscription notice. Checks the updated value of the Property and notifies the client via MReserveObserver.

Note:

Serialized part of the ECam implementation is assumed to define the Properties and publish them whenever there is change in the reserve status.

Member Data Documentation

TInt iCameraIndex

TInt iCameraIndex[private]

RProperty iProperty

RProperty iProperty[private]

MReserveObserver & iReserveObserver

MReserveObserver &iReserveObserver[private]

TInt iSecureId

TInt iSecureId[private]