TMTPTypeResponse Class Reference

class TMTPTypeResponse : public TMTPTypeFlatBase

Defines the MTP operation response dataset. This dataset is stored in a contiguous flat buffer to optimise data transfer to/from the MTP transport layer.

Inherits from

Public Member Functions
TMTPTypeResponse ()
TMTPTypeResponse (const TMTPTypeResponse &)
IMPORT_C TInt GetNumOfValidParams ()
IMPORT_C void SetUint32 ( TInt , TUint32 )
IMPORT_C TUint Type ()
Private Member Functions
IMPORT_C 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::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 {
EResponseCode , EResponseSessionID , EResponseTransactionID , EResponseParameter1 , EResponseParameter2 , EResponseParameter3 , EResponseParameter4 , EResponseParameter5 , ENumValidParam , ENumElements
}
Private Attributes
const TInt KSize
TBuf8 < KSize > iBuffer
const TFixedArray < TElementInfo , ENumElements > iElementInfo
const TMTPTypeFlatBase::TElementInfo iElementMetaData

Constructor & Destructor Documentation

TMTPTypeResponse()

IMPORT_C TMTPTypeResponse ( )

Constructor.

TMTPTypeResponse(const TMTPTypeResponse &)

IMPORT_C TMTPTypeResponse ( const TMTPTypeResponse & aResponse )

Parameters

const TMTPTypeResponse & aResponse

Member Functions Documentation

ElementInfo(TInt)

IMPORT_C 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.

GetNumOfValidParams()

IMPORT_C TInt GetNumOfValidParams ( ) const

SetUint32(TInt, TUint32)

IMPORT_C void SetUint32 ( TInt aElementId,
TUint32 aData
) [virtual]
Updates the specified element.
panic
MTPDataTypes 3, if the source data type does not match the requested element.

Parameters

TInt aElementId The identifier of the element to update.
TUint32 aData

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

EResponseCode

ResponseCode.

EResponseSessionID

SessionID.

EResponseTransactionID

TransactionID

EResponseParameter1

Parameter 1.

EResponseParameter2

Parameter 2.

EResponseParameter3

Parameter 3.

EResponseParameter4

Parameter 4.

EResponseParameter5

Parameter 5.

ENumValidParam
ENumElements

The number of dataset elements.

Member Data Documentation

const TInt KSize

const TInt KSize [private, static]

The dataset 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 dataset element metadata table.

const TMTPTypeFlatBase::TElementInfo iElementMetaData

const TMTPTypeFlatBase::TElementInfo iElementMetaData [private, static]

The dataset element metadata table content.