MMTPConnectionProtocol Class Reference

class MMTPConnectionProtocol

Defines the MTP connection protocol layer interface.

Member Functions Documentation

ConnectionId()

TUint ConnectionId()const [pure virtual]

Provides the unique MTP protocol layer assigned identifier of the connection.

DisconnectionNotifyL()

voidDisconnectionNotifyL()[pure virtual]

ReceiveDataCompleteL(TInt, const MMTPType &, const TMTPTypeRequest &)

voidReceiveDataCompleteL(TIntaErr,
const MMTPType &aData,
const TMTPTypeRequest &aRequest
)[pure virtual]
Signals the completion of an MTP data object receive sequence in the MTP transport layer connection, that was previously initiated by a ReceiveData signal to the transport layer connection interface.
leave
One of the system wide error codes, if a processing failure occurs.
MMTPCMMTPTransportConnection::ReceiveData MMTPCMMTPTransportConnection::ReceiveDataCancel

Parameters

TInt aErrA system wide error code indicating the completion status of the sequence.
const MMTPType & aDataThe MTP data object sink.
const TMTPTypeRequest & aRequestThe MTP request dataset of the active MTP transaction.

ReceivedEventL(const TMTPTypeEvent &)

voidReceivedEventL(const TMTPTypeEvent &aEvent)[pure virtual]
Signals the availability of an MTP event data object received from the MTP transport layer connection.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

const TMTPTypeEvent & aEventThe received MTP event data object.

ReceivedRequestL(const TMTPTypeRequest &)

voidReceivedRequestL(const TMTPTypeRequest &aRequest)[pure virtual]
Signals the availability of an MTP request data object received from the MTP transport layer connection.
leave
One of the system wide error codes, if a processing failure occurs.

Parameters

const TMTPTypeRequest & aRequestThe received MTP request data object.

SendDataCompleteL(TInt, const MMTPType &, const TMTPTypeRequest &)

voidSendDataCompleteL(TIntaErr,
const MMTPType &aData,
const TMTPTypeRequest &aRequest
)[pure virtual]
Signals the completion of an MTP data object send sequence in the MTP transport layer connection, that was previously initiated by a SendData signal to the transport layer connection interface.
leave
One of the system wide error codes, if a processing failure occurs.
MMTPCMMTPTransportConnection::SendData MMTPCMMTPTransportConnection::SendDataCancel

Parameters

TInt aErrA system wide error code indicating the completion status of the sequence.
const MMTPType & aDataThe MTP data object source.
const TMTPTypeRequest & aRequestThe MTP request dataset of the active MTP transaction.

SendEventCompleteL(TInt, const TMTPTypeEvent &)

voidSendEventCompleteL(TIntaErr,
const TMTPTypeEvent &aData
)[pure virtual]
Signals the completion of an MTP event data object send sequence in the MTP transport layer connection, that was previously initiated by a SendEvent signal to the transport layer connection interface.
leave
One of the system wide error codes, if a processing failure occurs.
MMTPCMMTPTransportConnection::SendEvent

Parameters

TInt aErrA system wide error code indicating the completion status of the sequence.
const TMTPTypeEvent & aDataThe MTP event data object source.

SendResponseCompleteL(TInt, const TMTPTypeResponse &, const TMTPTypeRequest &)

voidSendResponseCompleteL(TIntaErr,
const TMTPTypeResponse &aResponse,
const TMTPTypeRequest &aRequest
)[pure virtual]
Signals the completion of an MTP response data object send sequence in the MTP transport layer connection, that was previously initiated by a SendResponse signal to the transport layer connection interface.
leave
One of the system wide error codes, if a processing failure occurs.
MMTPCMMTPTransportConnection::SendResponse

Parameters

TInt aErrA system wide error code indicating the completion status of the sequence.
const TMTPTypeResponse & aResponseThe MTP response data object source.
const TMTPTypeRequest & aRequestThe MTP request dataset of the active MTP transaction.

TransactionPhaseL(TUint32)

TMTPTransactionPhase TransactionPhaseL(TUint32aMtpSessionId)const [pure virtual]
Provides the current MTP transaction state for the specified session.
leave
KErrArgument, if the specified session identifier is not currently active on the connection.

Parameters

TUint32 aMtpSessionIdThe MTP connection assigned identifier of the requested session.

Unbind(MMTPTransportConnection &)

voidUnbind(MMTPTransportConnection &aConnection)[pure virtual]

Parameters

MMTPTransportConnection & aConnection