TMTPTypeDataPair Class Reference

class TMTPTypeDataPair : public TMTPTypeFlatBase

Defines the ObjectHandle-PropertyCode pair or ServiceID-PropertyCode pair. This data pair is stored in a contiguous flat buffer to optimise data transfer to/from the MTP transport layer.

Inherits from

Public Member Functions
TMTPTypeDataPair ()
TMTPTypeDataPair (const TUint32 , const TUint16 )
TMTPTypeDataPair (const TMTPTypeDataPair &)
IMPORT_C TUint Type ()
Private Member Functions
const TMTPTypeFlatBase::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
Public Member Enumerations
enum TElements { EOwnerHandle , EDataCode , ENumElements }
Private Attributes
const TInt KSize
TBuf8 < KSize > iBuffer
const TFixedArray < TElementInfo , ENumElements > iElementInfo
const TMTPTypeFlatBase::TElementInfo iElementMetaData

Constructor & Destructor Documentation

TMTPTypeDataPair()

IMPORT_C TMTPTypeDataPair ( )

Constructor.

TMTPTypeDataPair(const TUint32, const TUint16)

IMPORT_C TMTPTypeDataPair ( const TUint32 aHandle,
const TUint16 aCode
)

Parameters

const TUint32 aHandle
const TUint16 aCode

TMTPTypeDataPair(const TMTPTypeDataPair &)

IMPORT_C TMTPTypeDataPair ( const TMTPTypeDataPair & aPair )

Parameters

const TMTPTypeDataPair & aPair

Member Functions Documentation

ElementInfo(TInt)

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

Provides the meta data for the specified element.

Parameters

TInt aElementId The identifier of the requested element.

Type()

IMPORT_C TUint Type ( ) const [virtual]

Provides the MTP data type identification datacode.

Member Enumerations Documentation

Enum TElements

MTP operation response dataset element identifiers.

Enumerators

EOwnerHandle

The identifier of owner: ObjectHandle or ServiceID.

EDataCode

data code: PropertyCode.

ENumElements

The number of dataset elements.

Member Data Documentation

const TInt KSize

const TInt KSize [private, static]

The data pair size in bytes.

TBuf8< KSize > iBuffer

TBuf8 < KSize > iBuffer [private]

The data buffer.

const TFixedArray< TElementInfo, ENumElements > iElementInfo

const TFixedArray < TElementInfo , ENumElements > iElementInfo [private]

The data pair element metadata table.

const TMTPTypeFlatBase::TElementInfo iElementMetaData

const TMTPTypeFlatBase::TElementInfo iElementMetaData [private, static]

The data pair element metadata table content.