CMTPTypeList Class Reference

class CMTPTypeList : public CMTPTypeCompoundBase

Inherits from

Public Member Functions
~CMTPTypeList ()
IMPORT_C void AppendL (const MMTPType *)
IMPORT_C MMTPType * CommitChunkL ( TPtr8 &)
IMPORT_C TBool CommitRequired ()
IMPORT_C MMTPType & ElementL (const TInt )
IMPORT_C TInt ElementType ()
IMPORT_C TInt FirstWriteChunk ( TPtr8 &)
IMPORT_C CMTPTypeList * NewL ( TMTPTypeIds , TMTPTypeIds )
IMPORT_C CMTPTypeList * NewLC ( TMTPTypeIds , TMTPTypeIds )
IMPORT_C TInt NextWriteChunk ( TPtr8 &)
IMPORT_C TInt NextWriteChunk ( TPtr8 &, TUint )
IMPORT_C TUint32 NumberOfElements ()
IMPORT_C void Remove (const TInt )
IMPORT_C void ResetAndDestroy ()
IMPORT_C TUint Type ()
Protected Member Functions
CMTPTypeList ( TInt , TInt )
void InitListL ()
Private Member Functions
void AppendElementChunkL (const MMTPType *)
void ConstructL ()
const TElementInfo & ElementInfo ( TInt )
TInt UpdateWriteSequenceErr ( TInt )
TInt ValidateChunkCount ()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CMTPTypeCompoundBase::CMTPTypeCompoundBase(TBool,TUint)
CMTPTypeCompoundBase::ChunkAppendL(const MMTPType &)
CMTPTypeCompoundBase::ChunkCount()const
CMTPTypeCompoundBase::ChunkRemove(TUint)
CMTPTypeCompoundBase::FirstReadChunk(TPtrC8 &)const
CMTPTypeCompoundBase::GetL(TInt,MMTPType &)const
CMTPTypeCompoundBase::Int16L(TInt)const
CMTPTypeCompoundBase::Int32L(TInt)const
CMTPTypeCompoundBase::Int64L(TInt)const
CMTPTypeCompoundBase::Int8L(TInt)const
CMTPTypeCompoundBase::NextReadChunk(TPtrC8 &)const
CMTPTypeCompoundBase::ReadableElementL(TInt)const
CMTPTypeCompoundBase::Reset()
CMTPTypeCompoundBase::SetExpectedChunkCount(TUint)
CMTPTypeCompoundBase::SetInt16L(TInt,TInt16)
CMTPTypeCompoundBase::SetInt32L(TInt,TInt32)
CMTPTypeCompoundBase::SetInt64L(TInt,TInt64)
CMTPTypeCompoundBase::SetInt8L(TInt,TInt8)
CMTPTypeCompoundBase::SetL(TInt,const MMTPType &)
CMTPTypeCompoundBase::SetStringL(TInt,const TDesC &)
CMTPTypeCompoundBase::SetUint16L(TInt,TUint16)
CMTPTypeCompoundBase::SetUint32L(TInt,TUint32)
CMTPTypeCompoundBase::SetUint64L(TInt,TUint64)
CMTPTypeCompoundBase::SetUint8L(TInt,TUint8)
CMTPTypeCompoundBase::Size()const
CMTPTypeCompoundBase::StringCharsL(TInt)const
CMTPTypeCompoundBase::StringNumCharsL(TInt)const
CMTPTypeCompoundBase::Uint16L(TInt)const
CMTPTypeCompoundBase::Uint32L(TInt)const
CMTPTypeCompoundBase::Uint64L(TInt)const
CMTPTypeCompoundBase::Uint8L(TInt)const
CMTPTypeCompoundBase::Validate()const
CMTPTypeCompoundBase::WriteableElementL(TInt)const
CMTPTypeCompoundBase::~CMTPTypeCompoundBase()
Private Member Enumerations
enum TReadWriteSequenceState { EIdle , EElementChunks }
Private Attributes
const TUint KChunckNumberOfHeader
const TUint KChunkNumberofElements
TMTPTypeUint32 iChunkNumberOfElements
RPointerArray < MMTPType > iChunksElement
TInt iElementType
CMTPTypeCompoundBase::TElementInfo iInfoElement
CMTPTypeCompoundBase::TElementInfo iInfoNumberOfElements
TInt iListType
TUint iWriteSequenceErr
TUint iWriteSequenceState
Inherited Attributes
CMTPTypeCompoundBase::KJustInTimeConstruction
CMTPTypeCompoundBase::KMTPNotApplicable
CMTPTypeCompoundBase::KVariableChunkCount
CMTPTypeCompoundBase::iChunks
CMTPTypeCompoundBase::iWriteChunk

Constructor & Destructor Documentation

CMTPTypeList(TInt, TInt)

CMTPTypeList ( TInt aArrayType,
TInt aElementType
) [protected]

Parameters

TInt aArrayType
TInt aElementType

~CMTPTypeList()

IMPORT_C ~CMTPTypeList ( ) [virtual]

Member Functions Documentation

AppendElementChunkL(const MMTPType *)

void AppendElementChunkL ( const MMTPType * aElement ) [private]

Parameters

const MMTPType * aElement

AppendL(const MMTPType *)

IMPORT_C void AppendL ( const MMTPType * aElement ) [virtual]

Parameters

const MMTPType * aElement

CommitChunkL(TPtr8 &)

IMPORT_C MMTPType * CommitChunkL ( TPtr8 & aChunk ) [virtual]

Parameters

TPtr8 & aChunk

CommitRequired()

IMPORT_C TBool CommitRequired ( ) const [virtual]

ConstructL()

void ConstructL ( ) [private]

ElementInfo(TInt)

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

Provides the TElementInfo data for the specified element.

Parameters

TInt aElementId The identifier of the requested element.

ElementL(const TInt)

IMPORT_C MMTPType & ElementL ( const TInt aIndex ) const

Parameters

const TInt aIndex

ElementType()

IMPORT_C TInt ElementType ( ) const [virtual]

FirstWriteChunk(TPtr8 &)

IMPORT_C TInt FirstWriteChunk ( TPtr8 & aChunk ) [virtual]

Parameters

TPtr8 & aChunk

InitListL()

void InitListL ( ) [protected]

NewL(TMTPTypeIds, TMTPTypeIds)

IMPORT_C CMTPTypeList * NewL ( TMTPTypeIds aListType,
TMTPTypeIds aElementType
) [static]

Parameters

TMTPTypeIds aListType
TMTPTypeIds aElementType

NewLC(TMTPTypeIds, TMTPTypeIds)

IMPORT_C CMTPTypeList * NewLC ( TMTPTypeIds aListType,
TMTPTypeIds aElementType
) [static]

Parameters

TMTPTypeIds aListType
TMTPTypeIds aElementType

NextWriteChunk(TPtr8 &)

IMPORT_C TInt NextWriteChunk ( TPtr8 & aChunk ) [virtual]

Parameters

TPtr8 & aChunk

NextWriteChunk(TPtr8 &, TUint)

IMPORT_C TInt NextWriteChunk ( TPtr8 & aChunk,
TUint aDataLength
) [virtual]

Parameters

TPtr8 & aChunk
TUint aDataLength

NumberOfElements()

IMPORT_C TUint32 NumberOfElements ( ) const [virtual]

Remove(const TInt)

IMPORT_C void Remove ( const TInt aIndex ) [virtual]

Parameters

const TInt aIndex

ResetAndDestroy()

IMPORT_C void ResetAndDestroy ( )

Type()

IMPORT_C TUint Type ( ) const [virtual]

UpdateWriteSequenceErr(TInt)

TInt UpdateWriteSequenceErr ( TInt aErr ) [private]

Parameters

TInt aErr

ValidateChunkCount()

TInt ValidateChunkCount ( ) const [private, virtual]

Validates that the number of chunks making up the compound type is valid. This method is invoked on variable length compound types by the default Valid implementation. Valid KVariableChunkCount

Member Enumerations Documentation

Enum TReadWriteSequenceState

The write data stream states.

Enumerators

EIdle

Data stream is inactive.

EElementChunks

Elements data stream is in progress.

Member Data Documentation

const TUint KChunckNumberOfHeader

const TUint KChunckNumberOfHeader [private, static]

const TUint KChunkNumberofElements

const TUint KChunkNumberofElements [private, static]

TMTPTypeUint32 iChunkNumberOfElements

TMTPTypeUint32 iChunkNumberOfElements [private]

RPointerArray< MMTPType > iChunksElement

RPointerArray < MMTPType > iChunksElement [private]

TInt iElementType

TInt iElementType [private]

CMTPTypeCompoundBase::TElementInfo iInfoElement

CMTPTypeCompoundBase::TElementInfo iInfoElement [private]

The Element array metadata content. Note that this is declared mutable to allow state updates while processing a read data stream.

CMTPTypeCompoundBase::TElementInfo iInfoNumberOfElements

CMTPTypeCompoundBase::TElementInfo iInfoNumberOfElements [private]

The NumberOfElements element metadata content.

TInt iListType

TInt iListType [private]

TUint iWriteSequenceErr

TUint iWriteSequenceErr [private]

The write data stream error state.

TUint iWriteSequenceState

TUint iWriteSequenceState [private]

The write data stream state variable.