CMsgQueueHandler Class Reference

class CMsgQueueHandler : public CActive

Utility class to handle Play Error callback from DevSound server.

MMFDevSound.dll
Since

Inherits from

Public Member Functions
~CMsgQueueHandler()
voidDoCancel()
voidFinish()
CMsgQueueHandler *NewL(RMMFDevSoundProxy *, MDevSoundObserver &, RMsgQueue< TMMFDevSoundQueueItem > *, MMMFDevSoundCustomInterfaceObserver &)
voidReceiveEvents()
TInt RunError(TInt)
voidRunL()
Private Member Functions
CMsgQueueHandler(RMMFDevSoundProxy *, MDevSoundObserver &, RMsgQueue< TMMFDevSoundQueueItem > *, MMMFDevSoundCustomInterfaceObserver &)
voidAssignDataBufferToChunkL(TInt)
TInt AsyncQueueFinishCallback(TAny *)
voidConstructL()
voidDoAsyncQueueFinishCallback()
voidDoBTBECompleteL()
voidDoBTBFCompleteL()
voidDoInitComplete()
voidDoPausedRecordComplete()
voidDoPlayErrorComplete()
voidDoRecordErrorComplete()
voidDoSendEventToClientComplete()
voidDoToneFinishedComplete()
voidUpdateDataBufferL()
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
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()
Inherited Enumerations
CActive:TPriority
Private Attributes
CAsyncCallBack *iAsyncQueueFinish
RChunk iChunk
TPtr8 iChunkDataPtr
TMMFDevSoundQueueItem iCurrentItem
CMMFPtrBuffer *iDataBuffer
MMMFDevSoundCustomInterfaceObserver &iDevSoundCIObserver
MDevSoundObserver &iDevSoundObserver
RMMFDevSoundProxy *iDevSoundProxy
CMMFDataBuffer *iEmptyBuffer
TMMFEventPckg iEventPckg
RMsgQueue< TMMFDevSoundQueueItem > *iMsgQueue
TMMFDevSoundProxyHwBufPckg iSetPckg
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CMsgQueueHandler(RMMFDevSoundProxy *, MDevSoundObserver &, RMsgQueue< TMMFDevSoundQueueItem > *, MMMFDevSoundCustomInterfaceObserver &)

CMsgQueueHandler(RMMFDevSoundProxy *aDevSoundProxy,
MDevSoundObserver &aDevSoundObserver,
RMsgQueue< TMMFDevSoundQueueItem > *aMsgQueue,
MMMFDevSoundCustomInterfaceObserver &aDevSoundCIObserver
)[private]

C++ default constructor.

Parameters

RMMFDevSoundProxy * aDevSoundProxy
MDevSoundObserver & aDevSoundObserver
RMsgQueue< TMMFDevSoundQueueItem > * aMsgQueue
MMMFDevSoundCustomInterfaceObserver & aDevSoundCIObserver

~CMsgQueueHandler()

~CMsgQueueHandler()

Destructor.

Member Functions Documentation

AssignDataBufferToChunkL(TInt)

voidAssignDataBufferToChunkL(TIntaHandle)[private]

Parameters

TInt aHandle

AsyncQueueFinishCallback(TAny *)

TInt AsyncQueueFinishCallback(TAny *aPtr)[private, static]

Parameters

TAny * aPtr

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

DoAsyncQueueFinishCallback()

voidDoAsyncQueueFinishCallback()[private]

DoBTBECompleteL()

voidDoBTBECompleteL()[private]

DoBTBFCompleteL()

voidDoBTBFCompleteL()[private]

DoCancel()

voidDoCancel()[virtual]
Called by CActive object framework when client cancels active object.
Since

DoInitComplete()

voidDoInitComplete()[private]

DoPausedRecordComplete()

voidDoPausedRecordComplete()[private]

DoPlayErrorComplete()

voidDoPlayErrorComplete()[private]

DoRecordErrorComplete()

voidDoRecordErrorComplete()[private]

DoSendEventToClientComplete()

voidDoSendEventToClientComplete()[private]

DoToneFinishedComplete()

voidDoToneFinishedComplete()[private]

Finish()

voidFinish()

Called as part of Stop() process to recover any buffers etc

NewL(RMMFDevSoundProxy *, MDevSoundObserver &, RMsgQueue< TMMFDevSoundQueueItem > *, MMMFDevSoundCustomInterfaceObserver &)

CMsgQueueHandler *NewL(RMMFDevSoundProxy *aDevSoundProxy,
MDevSoundObserver &aDevSoundObserver,
RMsgQueue< TMMFDevSoundQueueItem > *aMsgQueue,
MMMFDevSoundCustomInterfaceObserver &aDevSoundCIObserver
)[static]

Constructs, and returns a pointer to, a new CMMFPlayErrorHandler object. Leaves on failure..

Parameters

RMMFDevSoundProxy * aDevSoundProxy
MDevSoundObserver & aDevSoundObserver
RMsgQueue< TMMFDevSoundQueueItem > * aMsgQueue
MMMFDevSoundCustomInterfaceObserver & aDevSoundCIObserverObserver which will receive Custom Interface events

ReceiveEvents()

voidReceiveEvents()
Subscribes for Play Error event from DevSound server.
Since

RunError(TInt)

TInt RunError(TIntaError)[virtual]
Called by CActive object framework if RunL leaves.
Since

Parameters

TInt aError

RunL()

voidRunL()[virtual]
Called by DevSound server when Play Error event occurs. Leaves on failure.
Since

UpdateDataBufferL()

voidUpdateDataBufferL()[private]

Member Data Documentation

CAsyncCallBack * iAsyncQueueFinish

CAsyncCallBack *iAsyncQueueFinish[private]

RChunk iChunk

RChunk iChunk[private]

TPtr8 iChunkDataPtr

TPtr8 iChunkDataPtr[private]

TMMFDevSoundQueueItem iCurrentItem

TMMFDevSoundQueueItem iCurrentItem[private]

CMMFPtrBuffer * iDataBuffer

CMMFPtrBuffer *iDataBuffer[private]

MMMFDevSoundCustomInterfaceObserver & iDevSoundCIObserver

MMMFDevSoundCustomInterfaceObserver &iDevSoundCIObserver[private]

MDevSoundObserver & iDevSoundObserver

MDevSoundObserver &iDevSoundObserver[private]

RMMFDevSoundProxy * iDevSoundProxy

RMMFDevSoundProxy *iDevSoundProxy[private]

CMMFDataBuffer * iEmptyBuffer

CMMFDataBuffer *iEmptyBuffer[private]

TMMFEventPckg iEventPckg

TMMFEventPckg iEventPckg[private]

RMsgQueue< TMMFDevSoundQueueItem > * iMsgQueue

RMsgQueue< TMMFDevSoundQueueItem > *iMsgQueue[private]

TMMFDevSoundProxyHwBufPckg iSetPckg

TMMFDevSoundProxyHwBufPckg iSetPckg[private]