TMTPTypeEvent Class Reference

class TMTPTypeEvent : public TMTPTypeFlatBase

Defines the MTP event 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
TMTPTypeEvent ()
TMTPTypeEvent (const TMTPTypeEvent &)
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::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 {
EEventCode , EEventSessionID , EEventTransactionID , EEventParameter1 , EEventParameter2 , EEventParameter3 , ENumElements
}
Private Attributes
const TInt KSize
TBuf8 < KSize > iBuffer
const TFixedArray < TElementInfo , ENumElements > iElementInfo
const TMTPTypeFlatBase::TElementInfo iElementMetaData

Constructor & Destructor Documentation

TMTPTypeEvent()

IMPORT_C TMTPTypeEvent ( )

Constructor.

TMTPTypeEvent(const TMTPTypeEvent &)

IMPORT_C TMTPTypeEvent ( const TMTPTypeEvent & aEvent )

Parameters

const TMTPTypeEvent & aEvent

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.

Member Enumerations Documentation

Enum TElements

MTP event dataset element identifiers.

Enumerators

EEventCode

Event Code.

EEventSessionID

SessionID.

EEventTransactionID

TransactionID

EEventParameter1

Parameter 1.

EEventParameter2

Parameter 2.

EEventParameter3

Parameter 3.

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.