MMMFHwDeviceObserver Class Reference

class MMMFHwDeviceObserver

The observer class interface for a hardware device listener class.

MMMFHwDeviceObserver provides a generic interface which should be implemented by the classes that are interested in receiving events from the CMMFHwDevice implementation class.

Member Functions Documentation

EmptyThisHwBuffer(CMMFBuffer &)

TInt EmptyThisHwBuffer ( CMMFBuffer & aHwDataBuffer ) [pure virtual]

Handles CMMFHwDevice object s data request event.

This function is called by the CMMFHwDevice implementation class when it fills encoded data into a buffer.

Parameters

CMMFBuffer & aHwDataBuffer The buffer with encoded data.

Error(TInt)

void Error ( TInt aError =  KErrNone ) [pure virtual]

Called by a CMMFHwDevice derived class when it stops a decoding/encoding task.

Parameters

TInt aError =  KErrNone

FillThisHwBuffer(CMMFBuffer &)

TInt FillThisHwBuffer ( CMMFBuffer & aHwDataBuffer ) [pure virtual]

Handles CMMFHwDevice object s data request event.

This function is called by the CMMFHwDevice implementation class when it needs data for decoding.

Parameters

CMMFBuffer & aHwDataBuffer The buffer to fill the data.

MsgFromHwDevice(TUid, const TDesC8 &)

TInt MsgFromHwDevice ( TUid aMessageType,
const TDesC8 & aMsg
) [pure virtual]

Handles the CMMFHwDevice object s message event.

This function is called by the CMMFHwDevice implementation class when a message is generated and passed back to the observer.

Parameters

TUid aMessageType The type of message. Defines the contents of aMsg.
const TDesC8 & aMsg The message packed in a descriptor.

Stopped()

void Stopped ( ) [pure virtual]

Called by a CMMFHwDevice derived class when it stops a decoding/encoding task.