TMTPTypeRequest Class Reference

class TMTPTypeRequest : public TMTPTypeFlatBase

Defines the MTP operation request 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
TMTPTypeRequest ()
TMTPTypeRequest (const TMTPTypeRequest &)
IMPORT_C TUint Type ()
IMPORT_C TBool operator!= (const TMTPTypeRequest &)
IMPORT_C TBool operator== (const TMTPTypeRequest &)
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::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 {
ERequestOperationCode , ERequestSessionID , ERequestTransactionID , ERequestParameter1 , ERequestParameter2 , ERequestParameter3 , ERequestParameter4 , ERequestParameter5 , ENumElements
}
Private Attributes
const TInt KSize
TBuf8 < KSize > iBuffer
const TFixedArray < TElementInfo , ENumElements > iElementInfo
const TMTPTypeFlatBase::TElementInfo iElementMetaData

Constructor & Destructor Documentation

TMTPTypeRequest()

IMPORT_C TMTPTypeRequest ( )

Constructor.

TMTPTypeRequest(const TMTPTypeRequest &)

IMPORT_C TMTPTypeRequest ( const TMTPTypeRequest & aRequest )

Parameters

const TMTPTypeRequest & aRequest

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.

Type()

IMPORT_C TUint Type ( ) const [virtual]

Provides the MTP data type identification datacode.

operator!=(const TMTPTypeRequest &)

IMPORT_C TBool operator!= ( const TMTPTypeRequest & aRequest ) const

Inequality operator.

Parameters

const TMTPTypeRequest & aRequest The request to compare against this TMTPTypeRequest.

operator==(const TMTPTypeRequest &)

IMPORT_C TBool operator== ( const TMTPTypeRequest & aRequest ) const

Equality operator.

Parameters

const TMTPTypeRequest & aRequest The request to compare against this TMTPTypeRequest.

Member Enumerations Documentation

Enum TElements

MTP operation request dataset element identifiers.

Enumerators

ERequestOperationCode

Operation Code.

ERequestSessionID

SessionID.

ERequestTransactionID

TransactionID.

ERequestParameter1

Parameter 1.

ERequestParameter2

Parameter 2.

ERequestParameter3

Parameter 3.

ERequestParameter4

Parameter 4.

ERequestParameter5

Parameter 5.

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.