#include <mmf/server/mmfclip.h>
| class CMMFClip : public CBase |
| Public Member Functions | |
|---|---|
| pure virtual TInt64 | BytesFree() |
| virtual TInt | Delete() |
| pure virtual void | ReadBufferL(TInt, CMMFBuffer *, TInt, MDataSink *) |
| pure virtual void | ReadBufferL(CMMFBuffer *, TInt, MDataSink *) |
| pure virtual void | ReadBufferL(CMMFBuffer *, TInt) |
| virtual TInt | SetSize(TInt) |
| pure virtual TInt | Size() |
| pure virtual void | WriteBufferL(TInt, CMMFBuffer *, TInt, MDataSource *) |
| pure virtual void | WriteBufferL(CMMFBuffer *, TInt, MDataSource *) |
| pure virtual void | WriteBufferL(CMMFBuffer *, TInt) |
| Protected Member Functions | |
|---|---|
| CMMFClip(TUid, TUid) | |
Abstract class to represent a source or sink that contains a multimedia clip (i.e. not a stream or hardware device).
Typical examples are a file or an area of memory (descriptor).
| TInt64 | BytesFree | ( | ) | [pure virtual] |
Returns the amount of space available for the clip.
This is a virtual function that each derived class must implement.
Returns: The amount of space available.
| TInt | Delete | ( | ) | [inline, virtual] |
Deletes the clip.
This should be overriden in the derived classes, the default version returns KErrNotSupported.
Returns: An error code indicating if the function call was successful. KErrNone on success, otherwise another of the system-wide error codes.
| void | ReadBufferL | ( | TInt | aLength, |
| CMMFBuffer * | aBuffer, | |||
| TInt | aPosition, | |||
| MDataSink * | aConsumer | |||
| ) | [pure virtual] | |||
Reads aLength number of bytes of data from the offset, aPosition into the buffer, aBuffer. Intended for asynchronous usage.
This is a virtual function that each derived class must implement.
| Parameter | Description |
|---|---|
| aLength | The number of bytes to read. |
| aBuffer | The buffer to read the data into. |
| aPosition | The offset from which to start reading. |
| aConsumer | The sink of tha data read from the clip. Will be informed of read if not NULL. |
| void | ReadBufferL | ( | CMMFBuffer * | aBuffer, |
| TInt | aPosition, | |||
| MDataSink * | aConsumer | |||
| ) | [pure virtual] | |||
Reads the maximum number of bytes of data from the offset, aPosition into the buffer, aBuffer. Intended for asynchronous usage.
This is a virtual function that each derived class must implement.
| Parameter | Description |
|---|---|
| aBuffer | The buffer to read the data into. |
| aPosition | The offset from which to start reading. |
| aConsumer | The sink of tha data read from the clip. Will be informed of read if not NULL. |
| void | ReadBufferL | ( | CMMFBuffer * | aBuffer, |
| TInt | aPosition | |||
| ) | [pure virtual] | |||
Reads the maximum number of bytes of data from the offset, aPosition into the buffer, aBuffer. Intended for synchronous usage.
This is a virtual function that each derived class must implement.
| Parameter | Description |
|---|---|
| aBuffer | The buffer to read the data into. |
| aPosition | The offset from which to start reading. |
Sets the size of the clip. This should be overriden in the derived classes, the default version returns KErrNotSupported.
| Parameter | Description |
|---|---|
| aSize | The size of the clip. |
Returns: An error code indicating if the function call was successful. KErrNone on success, otherwise another of the system-wide error codes.
| TInt | Size | ( | ) | [pure virtual] |
Returns the size of the clip in bytes.
This is a virtual function that each derived class must implement.
Returns: The size of the clip.
| void | WriteBufferL | ( | TInt | aLength, |
| CMMFBuffer * | aBuffer, | |||
| TInt | aPosition, | |||
| MDataSource * | aSupplier | |||
| ) | [pure virtual] | |||
Writes aLength number of bytes of data from the offset, aPosition from the buffer, aBuffer. Intended for asynchronous usage.
This is a virtual function that each derived class must implement.
| Parameter | Description |
|---|---|
| aLength | The number of bytes to write. |
| aBuffer | The buffer to write the data into. |
| aPosition | The offset from which to start writing. |
| aSupplier | The source of the data writen to the clip. Will be informed of write if not NULL. |
| void | WriteBufferL | ( | CMMFBuffer * | aBuffer, |
| TInt | aPosition, | |||
| MDataSource * | aSupplier | |||
| ) | [pure virtual] | |||
Writes the maximum number of bytes of data from the offset, aPosition from the buffer, aBuffer. Intended for asynchronous usage.
This is a virtual function that each derived class must implement.
| Parameter | Description |
|---|---|
| aBuffer | The buffer to write the data into. |
| aPosition | The offset from which to start writing. |
| aSupplier | The source of the data writen to the clip. Will be informed of write if not NULL. |
| void | WriteBufferL | ( | CMMFBuffer * | aBuffer, |
| TInt | aPosition | |||
| ) | [pure virtual] | |||
Writes the maximum number of bytes of data from the offset, aPosition from the buffer, aBuffer. Intended for synchronous usage.
This is a virtual function that each derived class must implement.
| Parameter | Description |
|---|---|
| aBuffer | The buffer to write the data into. |
| aPosition | The offset from which to start writing. |