CMTPTypeServiceFormatElement Class Reference

class CMTPTypeServiceFormatElement : public CMTPTypeCompoundBase

Inherits from

Public Member Functions
~CMTPTypeServiceFormatElement ()
IMPORT_C CMTPTypeServiceFormatElement * NewL ()
IMPORT_C CMTPTypeServiceFormatElement * NewL (const TUint16 , const TMTPTypeGuid &, const TDesC &, const TUint16 , const TDesC &)
IMPORT_C CMTPTypeServiceFormatElement * NewLC ()
IMPORT_C CMTPTypeServiceFormatElement * NewLC (const TUint16 , const TMTPTypeGuid &, const TDesC &, const TUint16 , const TDesC &)
IMPORT_C TUint Type ()
Private Member Functions
CMTPTypeServiceFormatElement ()
void ConstructL ()
void ConstructL (const TUint16 , const TMTPTypeGuid &, const TDesC &, const TUint16 , const TDesC &)
const TElementInfo & ElementInfo ( TInt )
MMTPType * NewFlatChunkL (const TElementInfo &)
MMTPType * NewStringChunkL (const TElementInfo &)
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::CommitChunkL(TPtr8 &)
CMTPTypeCompoundBase::CommitRequired()const
CMTPTypeCompoundBase::FirstReadChunk(TPtrC8 &)const
CMTPTypeCompoundBase::FirstWriteChunk(TPtr8 &)
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::NextWriteChunk(TPtr8 &)
CMTPTypeCompoundBase::NextWriteChunk(TPtr8 &,TUint)
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::ValidateChunkCount()const
CMTPTypeCompoundBase::WriteableElementL(TInt)const
CMTPTypeCompoundBase::~CMTPTypeCompoundBase()
Public Member Enumerations
enum TMTPServiceFormatElement {
EFormatCode , EFormatGUID , EFormatName , EFormatBase , EFormatMIMEType , ENumElements
}
Private Member Enumerations
enum TChunkIds { EIdFlat1Chunk , EIdFormatNameChunk , EIdFlat2Chunk , EIdFormatMIMETypeChunk , EIdNumChunks }
enum TWriteSequenceState { EIdle , EFlat1Chunk , EFormatNameChunk , EFlat2Chunk , EFormatMIMETypeChunk }
Inherited Enumerations
CMTPTypeCompoundBase:TReadWriteSequenceState
Private Attributes
const TUint KFlat1ChunkSize
const TUint KFlat2ChunkSize
RMTPTypeCompoundFlatChunk iChunkFlat1
RMTPTypeCompoundFlatChunk iChunkFlat2
CMTPTypeString * iChunkFormatNameString
CMTPTypeString * iChunkMIMETypeString
const TFixedArray < TElementInfo , ENumElements > iElementInfo
const CMTPTypeCompoundBase::TElementInfo iElementMetaData
TUint iWriteSequenceCompletionState
TUint iWriteSequenceErr
TUint iWriteSequenceState
Inherited Attributes
CMTPTypeCompoundBase::KJustInTimeConstruction
CMTPTypeCompoundBase::KMTPNotApplicable
CMTPTypeCompoundBase::KVariableChunkCount
CMTPTypeCompoundBase::iChunks
CMTPTypeCompoundBase::iWriteChunk

Constructor & Destructor Documentation

CMTPTypeServiceFormatElement()

CMTPTypeServiceFormatElement ( ) [private]

~CMTPTypeServiceFormatElement()

IMPORT_C ~CMTPTypeServiceFormatElement ( ) [virtual]

Destructor.

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

ConstructL(const TUint16, const TMTPTypeGuid &, const TDesC &, const TUint16, const TDesC &)

void ConstructL ( const TUint16 aFormatCode,
const TMTPTypeGuid & aFormatGUID,
const TDesC & aFormatName,
const TUint16 aFormatBase,
const TDesC & aMIMEType
) [private]

Parameters

const TUint16 aFormatCode
const TMTPTypeGuid & aFormatGUID
const TDesC & aFormatName
const TUint16 aFormatBase
const TDesC & aMIMEType

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.

NewFlatChunkL(const TElementInfo &)

MMTPType * NewFlatChunkL ( const TElementInfo & aElementInfo ) [private]

Parameters

const TElementInfo & aElementInfo

NewL()

IMPORT_C CMTPTypeServiceFormatElement * NewL ( ) [static]

NewL(const TUint16, const TMTPTypeGuid &, const TDesC &, const TUint16, const TDesC &)

IMPORT_C CMTPTypeServiceFormatElement * NewL ( const TUint16 aFormatCode,
const TMTPTypeGuid & aFormatGUID,
const TDesC & aFormatName,
const TUint16 aFormatBase,
const TDesC & aMIMEType
) [static]

Parameters

const TUint16 aFormatCode
const TMTPTypeGuid & aFormatGUID
const TDesC & aFormatName
const TUint16 aFormatBase
const TDesC & aMIMEType

NewLC()

IMPORT_C CMTPTypeServiceFormatElement * NewLC ( ) [static]

NewLC(const TUint16, const TMTPTypeGuid &, const TDesC &, const TUint16, const TDesC &)

IMPORT_C CMTPTypeServiceFormatElement * NewLC ( const TUint16 aFormatCode,
const TMTPTypeGuid & aFormatGUID,
const TDesC & aFormatName,
const TUint16 aFormatBase,
const TDesC & aMIMEType
) [static]

Parameters

const TUint16 aFormatCode
const TMTPTypeGuid & aFormatGUID
const TDesC & aFormatName
const TUint16 aFormatBase
const TDesC & aMIMEType

NewStringChunkL(const TElementInfo &)

MMTPType * NewStringChunkL ( const TElementInfo & aElementInfo ) [private]

Parameters

const TElementInfo & aElementInfo

Type()

IMPORT_C TUint Type ( ) const [virtual]

Member Enumerations Documentation

Enum TChunkIds

Data chunk identifiers.

Enumerators

EIdFlat1Chunk

The flat data chunk ID.

EIdFormatNameChunk
EIdFlat2Chunk
EIdFormatMIMETypeChunk
EIdNumChunks

The number of data chunks.

Enum TMTPServiceFormatElement

Enumerators

EFormatCode
EFormatGUID
EFormatName
EFormatBase
EFormatMIMEType
ENumElements

Enum TWriteSequenceState

Enumerators

EIdle

Data stream is inactive.

EFlat1Chunk

Streaming the property descriptor triplet dataset data chunk.

EFormatNameChunk
EFlat2Chunk
EFormatMIMETypeChunk

Member Data Documentation

const TUint KFlat1ChunkSize

const TUint KFlat1ChunkSize [private, static]

The size in bytes of the first flat data chunk.

const TUint KFlat2ChunkSize

const TUint KFlat2ChunkSize [private, static]

The size in bytes of the second flat data chunk.

RMTPTypeCompoundFlatChunk iChunkFlat1

RMTPTypeCompoundFlatChunk iChunkFlat1 [private]

The flat data chunk comprising elements .

RMTPTypeCompoundFlatChunk iChunkFlat2

RMTPTypeCompoundFlatChunk iChunkFlat2 [private]

CMTPTypeString * iChunkFormatNameString

CMTPTypeString * iChunkFormatNameString [private]

The MTP string type data chunks (EStorageDescription, and EVolumeIdentifier).

CMTPTypeString * iChunkMIMETypeString

CMTPTypeString * iChunkMIMETypeString [private]

const TFixedArray< TElementInfo, ENumElements > iElementInfo

const TFixedArray < TElementInfo , ENumElements > iElementInfo [private]

The dataset element metadata table.

const CMTPTypeCompoundBase::TElementInfo iElementMetaData

const CMTPTypeCompoundBase::TElementInfo iElementMetaData [private, static]

The dataset element metadata table content.

TUint iWriteSequenceCompletionState

TUint iWriteSequenceCompletionState [private]

The write data stream completion state. This will be set to EFlat2Chunk for ObjectPropDesc datasets with an EForm of ENone, otherwise this will be EFormChunk.

TUint iWriteSequenceErr

TUint iWriteSequenceErr [private]

The write data stream error state.

TUint iWriteSequenceState

TUint iWriteSequenceState [private]

The write data stream state variable.