class CMMFFile : public CMMFClip |
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.
Protected Member Functions | |
---|---|
CMMFFile() | |
void | CancelRequests() |
void | ConstructL(const TDesC8 &, TMMFileMode) |
void | ConstructSinkL(const TDesC8 &) |
void | ConstructSourceL(const TDesC8 &) |
CTransferBufferCopy * | ObtainCopyOfTransferBufferL(TInt) |
void | StoreRequestL(CReadWriteRequest *) |
Protected Member Enumerations | |
---|---|
enum | TMMFileMode { ESourceMode, ESinkMode } |
Private Attributes | |
---|---|
CCAFParameters * | iCAFParameters |
MAsyncEventHandler * | iEventHandler |
MGenericFile * | iFile |
HBufC * | iFileDrive |
HBufC * | iFileExt |
TBool | iFileHandle |
HBufC * | iFileName |
HBufC * | iFilePath |
TInt | iFileSize |
RFs | iFsSession |
TFileName | iFullFileName |
RFile | iHandle |
CMMFFileAsyncEventHandler * | iMmfFileEventHandler |
TUint | iPosition |
RPointerArray< CReadWriteRequest > | iRequests |
TBool | iReserved |
TFourCC | iSinkFourCC |
TBool | iSinkNotStopped |
TFourCC | iSourceFourCC |
RPointerArray< CTransferBufferCopy > | iTransferBufferCopies |
void | BufferEmptiedL | ( | CMMFBuffer * | aBuffer | ) | [virtual] |
CMMFBuffer * aBuffer |
void | BufferFilledL | ( | CMMFBuffer * | aBuffer | ) | [virtual] |
CMMFBuffer * aBuffer |
TInt64 | BytesFree | ( | ) | [virtual] |
Returns the amount of space available for the clip.
This is a virtual function that each derived class must implement.
The amount of space available.
void | ConstructL | ( | const TDesC8 & | aInitData, |
TMMFileMode | aFileMode | |||
) | [protected] |
const TDesC8 & aInitData | |
TMMFileMode aFileMode |
void | ConstructSinkL | ( | const TDesC8 & | aInitData | ) | [protected, virtual] |
const TDesC8 & aInitData |
void | ConstructSourceL | ( | const TDesC8 & | aInitData | ) | [protected, virtual] |
const TDesC8 & aInitData |
CMMFBuffer * | CreateSinkBufferL | ( | TMediaId | aMediaId, |
TBool & | aReference | |||
) | [virtual] |
CMMFBuffer * | CreateSourceBufferL | ( | TMediaId | aMediaId, |
TBool & | aReference | |||
) | [virtual] |
TInt | Data | ( | ContentAccess::CData *& | aData | ) | [virtual] |
ContentAccess::CData *& aData |
TInt | Delete | ( | ) | [virtual] |
Deletes the clip.
This should be overriden in the derived classes, the default version returns KErrNotSupported.
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] |
CMMFBuffer * aBuffer | |
MDataSource * aSupplier | |
TMediaId aMediaId |
TInt | EvaluateIntent | ( | ContentAccess::TIntent | aIntent | ) | const [virtual] |
ContentAccess::TIntent aIntent |
TInt | ExecuteIntent | ( | ContentAccess::TIntent | aIntent | ) | [virtual] |
ContentAccess::TIntent aIntent |
void | FillBufferL | ( | CMMFBuffer * | aBuffer, |
MDataSink * | aConsumer, | |||
TMediaId | aMediaId | |||
) | [virtual] |
CMMFBuffer * aBuffer | |
MDataSink * aConsumer | |
TMediaId aMediaId |
CTransferBufferCopy * | ObtainCopyOfTransferBufferL | ( | TInt | aMaxLength | ) | [protected] |
TInt aMaxLength |
void | ReadBufferL | ( | TInt | aLength, |
CMMFBuffer * | aBuffer, | |||
TInt | aPosition, | |||
MDataSink * | aConsumer | |||
) | [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.
TInt aLength | The number of bytes to read. |
CMMFBuffer * aBuffer | The buffer to read the data into. |
TInt aPosition | The offset from which to start reading. |
MDataSink * 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] |
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.
CMMFBuffer * aBuffer | The buffer to read the data into. |
TInt aPosition | The offset from which to start reading. |
MDataSink * 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] |
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.
CMMFBuffer * aBuffer | The buffer to read the data into. |
TInt aPosition | The offset from which to start reading. |
TInt | SetAgentProperty | ( | ContentAccess::TAgentProperty | aProperty, |
TInt | aValue | |||
) | [virtual] |
ContentAccess::TAgentProperty aProperty | |
TInt aValue |
TInt | SetSize | ( | TInt | aSize | ) | [virtual] |
Sets the size of the clip. This should be overriden in the derived classes, the default version returns KErrNotSupported.
An error code indicating if the function call was successful. KErrNone on success, otherwise another of the system-wide error codes.
TInt aSize | The size of the clip. |
TFourCC | SinkDataTypeCode | ( | TMediaId | aMediaId | ) | [virtual] |
TMediaId aMediaId |
TInt | SinkThreadLogon | ( | MAsyncEventHandler & | aEventHandler | ) | [virtual] |
MAsyncEventHandler & aEventHandler |
TInt | Size | ( | ) | [virtual] |
Returns the size of the clip in bytes.
This is a virtual function that each derived class must implement.
The size of the clip.
TFourCC | SourceDataTypeCode | ( | TMediaId | aMediaId | ) | [virtual] |
TMediaId aMediaId |
TInt | SourceThreadLogon | ( | MAsyncEventHandler & | aEventHandler | ) | [virtual] |
MAsyncEventHandler & aEventHandler |
void | StoreRequestL | ( | CReadWriteRequest * | aRequest | ) | [protected] |
CReadWriteRequest * aRequest |
void | WriteBufferL | ( | TInt | aLength, |
CMMFBuffer * | aBuffer, | |||
TInt | aPosition, | |||
MDataSource * | aSupplier | |||
) | [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.
TInt aLength | The number of bytes to write. |
CMMFBuffer * aBuffer | The buffer to write the data into. |
TInt aPosition | The offset from which to start writing. |
MDataSource * 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] |
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.
CMMFBuffer * aBuffer | The buffer to write the data into. |
TInt aPosition | The offset from which to start writing. |
MDataSource * 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] |
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.
CMMFBuffer * aBuffer | The buffer to write the data into. |
TInt aPosition | The offset from which to start writing. |
Indicates for which purpose the object instance is being created
ESourceMode |
The object is created for being a source |
ESinkMode |
The object is created for being a sink |
CMMFFileAsyncEventHandler * | iMmfFileEventHandler | [private] |
RPointerArray< CTransferBufferCopy > | iTransferBufferCopies | [private] |