#include <mmf/server/mmffile.h>
class CMMFFile : public CMMFClip |
Protected Member Enumerations | |
---|---|
enum | TMMFileMode { ESourceMode, ESinkMode } |
Protected Member Functions | |
---|---|
CMMFFile() | |
void | CancelRequests() |
void | ConstructL(const TDesC8 &, TMMFileMode) |
virtual void | ConstructSinkL(const TDesC8 &) |
virtual void | ConstructSourceL(const TDesC8 &) |
CTransferBufferCopy * | ObtainCopyOfTransferBufferL(TInt) |
void | StoreRequestL(CReadWriteRequest *) |
MultiMedia framework class. Represents a physical file.
This may be source file from which data is read or destination to which data is written.
Intended to be used by controller plugin developers for source and sink plugins.
TInt64 | BytesFree | ( | ) | [virtual] |
Reimplemented from CMMFClip::BytesFree()
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.
void | ConstructL | ( | const TDesC8 & | aInitData, |
TMMFileMode | aFileMode | |||
) | [protected] |
void | ConstructSourceL | ( | const TDesC8 & | aInitData | ) | [protected, virtual] |
CMMFBuffer * | CreateSinkBufferL | ( | TMediaId | aMediaId, |
TBool & | aReference | |||
) | [virtual] |
CMMFBuffer * | CreateSourceBufferL | ( | TMediaId | aMediaId, |
TBool & | aReference | |||
) | [virtual] |
TInt | Delete | ( | ) | [virtual] |
Reimplemented from CMMFClip::Delete()
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 | EmptyBufferL | ( | CMMFBuffer * | aBuffer, |
MDataSource * | aSupplier, | |||
TMediaId | aMediaId | |||
) | [virtual] |
TInt | EvaluateIntent | ( | ContentAccess::TIntent | aIntent | ) | const [virtual] |
void | FillBufferL | ( | CMMFBuffer * | aBuffer, |
MDataSink * | aConsumer, | |||
TMediaId | aMediaId | |||
) | [virtual] |
CTransferBufferCopy * | ObtainCopyOfTransferBufferL | ( | TInt | aMaxLength | ) | [protected] |
void | ReadBufferL | ( | TInt | aLength, |
CMMFBuffer * | aBuffer, | |||
TInt | aPosition, | |||
MDataSink * | aConsumer | |||
) | [virtual] |
Reimplemented from CMMFClip::ReadBufferL(TInt,CMMFBuffer *,TInt,MDataSink *)
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 | |||
) | [virtual] |
Reimplemented from CMMFClip::ReadBufferL(CMMFBuffer *,TInt,MDataSink *)
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 | |||
) | [virtual] |
Reimplemented from CMMFClip::ReadBufferL(CMMFBuffer *,TInt)
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. |
TInt | SetAgentProperty | ( | ContentAccess::TAgentProperty | aProperty, |
TInt | aValue | |||
) | [virtual] |
Reimplemented from CMMFClip::SetSize(TInt)
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 | SinkThreadLogon | ( | MAsyncEventHandler & | aEventHandler | ) | [virtual] |
TInt | Size | ( | ) | [virtual] |
Reimplemented from CMMFClip::Size()
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.
TInt | SourceThreadLogon | ( | MAsyncEventHandler & | aEventHandler | ) | [virtual] |
void | WriteBufferL | ( | TInt | aLength, |
CMMFBuffer * | aBuffer, | |||
TInt | aPosition, | |||
MDataSource * | aSupplier | |||
) | [virtual] |
Reimplemented from CMMFClip::WriteBufferL(TInt,CMMFBuffer *,TInt,MDataSource *)
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 | |||
) | [virtual] |
Reimplemented from CMMFClip::WriteBufferL(CMMFBuffer *,TInt,MDataSource *)
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 | |||
) | [virtual] |
Reimplemented from CMMFClip::WriteBufferL(CMMFBuffer *,TInt)
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. |