#include <mmf/server/mmfhwdevice.h>
| class MMMFHwDeviceObserver |
| Public Member Functions | |
|---|---|
| pure virtual TInt | EmptyThisHwBuffer(CMMFBuffer &) |
| pure virtual void | Error(TInt) |
| pure virtual TInt | FillThisHwBuffer(CMMFBuffer &) |
| pure virtual TInt | MsgFromHwDevice(TUid, const TDesC8 &) |
| pure virtual void | Stopped() |
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.
| 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.
| Parameter | Description |
|---|---|
| aHwDataBuffer | The buffer with encoded data. |
Returns: An error code indicating if the function call was successful. KErrNone on success, otherwise another of the system-wide error codes.
| 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.
| Parameter | Description |
|---|---|
| aHwDataBuffer | The buffer to fill the data. |
Returns: An error code indicating if the function call was successful. KErrNone on success, otherwise another of the system-wide error codes.
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.
| Parameter | Description |
|---|---|
| aMessageType | The type of message. Defines the contents of aMsg. |
| aMsg | The message packed in a descriptor. |
Returns: An error code indicating if the function call was successful. KErrNone on success, otherwise another of the system-wide error codes.
| void | Stopped | ( | ) | [pure virtual] |
Called by a CMMFHwDevice derived class when it stops a decoding/encoding task.