CMTPTypeCompoundBase::RMTPTypeCompoundFlatChunk Class Reference

class CMTPTypeCompoundBase::RMTPTypeCompoundFlatChunk : public TMTPTypeFlatBase

Defines the MTP compound data type flat data chunk class.

Inherits from

Public Member Functions
RMTPTypeCompoundFlatChunk ( TUint , CMTPTypeCompoundBase &)
IMPORT_C void Close ()
IMPORT_C void OpenL ()
IMPORT_C TUint Type ()
Private Member Functions
const TElementInfo & ElementInfo ( TInt )
Inherited Functions
MMTPType::CommitChunkL(TPtr8 &)
MMTPType::CommitRequired()const
MMTPType::CopyL(const MMTPType &,MMTPType &)
MMTPType::FirstWriteChunk(TPtr8 &,TUint)
MMTPType::GetExtendedInterface(TUid)
MMTPType::NextWriteChunk(TPtr8 &,TUint)
MMTPType::ReserveTransportHeader(TUint,TPtr8 &)
MMTPType::Validate()const
TMTPTypeFlatBase::DataBuffer()
TMTPTypeFlatBase::FirstReadChunk(TPtrC8 &)const
TMTPTypeFlatBase::FirstWriteChunk(TPtr8 &)
TMTPTypeFlatBase::GetL(TInt,MMTPType &)const
TMTPTypeFlatBase::Int16(TInt)const
TMTPTypeFlatBase::Int32(TInt)const
TMTPTypeFlatBase::Int64(TInt)const
TMTPTypeFlatBase::Int8(TInt)const
TMTPTypeFlatBase::NextReadChunk(TPtrC8 &)const
TMTPTypeFlatBase::NextWriteChunk(TPtr8 &)
TMTPTypeFlatBase::Reset()
TMTPTypeFlatBase::SetBuffer(const TDes8 &)
TMTPTypeFlatBase::SetInt16(TInt,TInt16)
TMTPTypeFlatBase::SetInt32(TInt,TInt32)
TMTPTypeFlatBase::SetInt64(TInt,TInt64)
TMTPTypeFlatBase::SetInt8(TInt,TInt8)
TMTPTypeFlatBase::SetL(TInt,const MMTPType &)
TMTPTypeFlatBase::SetUint16(TInt,TUint16)
TMTPTypeFlatBase::SetUint32(TInt,TUint32)
TMTPTypeFlatBase::SetUint64(TInt,TUint64)
TMTPTypeFlatBase::SetUint8(TInt,TUint8)
TMTPTypeFlatBase::Size()const
TMTPTypeFlatBase::TMTPTypeFlatBase()
TMTPTypeFlatBase::Uint16(TInt)const
TMTPTypeFlatBase::Uint32(TInt)const
TMTPTypeFlatBase::Uint64(TInt)const
TMTPTypeFlatBase::Uint8(TInt)const
Private Attributes
RBuf8 iBuffer
CMTPTypeCompoundBase * iParent
TUint iSize

Constructor & Destructor Documentation

RMTPTypeCompoundFlatChunk(TUint, CMTPTypeCompoundBase &)

IMPORT_C RMTPTypeCompoundFlatChunk ( TUint aSize,
CMTPTypeCompoundBase & aParent
)

Constructor.

Parameters

TUint aSize The size (in bytes) of the flat data chunk.
CMTPTypeCompoundBase & aParent The compound data type of which the flat data chunk is a component.

Member Functions Documentation

Close()

IMPORT_C void Close ( )

Releases the storage assigned to the flat data chunk.

ElementInfo(TInt)

const TElementInfo & ElementInfo ( TInt aElementId ) const [private, virtual]

Provides the meta data for the specified element.

Parameters

TInt aElementId The identifier of the requested element.

OpenL()

IMPORT_C void OpenL ( )
Allocates storage for the flat data chunk.
leave
One of the system wide error codes, if a processing failure occurs.

Type()

IMPORT_C TUint Type ( ) const [virtual]

Provides the MTP data type identification datacode.

Member Data Documentation

RBuf8 iBuffer

RBuf8 iBuffer [private]

The data buffer.

CMTPTypeCompoundBase * iParent

CMTPTypeCompoundBase * iParent [private]

The parent compound data type instance of which this flat chunk is an element.

TUint iSize

TUint iSize [private]

The flat data chunk size.