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()

void DisconnectionNotifyL ( ) [pure virtual]

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

void ReceiveDataCompleteL ( TInt aErr,
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 aErr A system wide error code indicating the completion status of the sequence.
const MMTPType & aData The MTP data object sink.
const TMTPTypeRequest & aRequest The MTP request dataset of the active MTP transaction.

ReceivedEventL(const TMTPTypeEvent &)

void ReceivedEventL ( 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 & aEvent The received MTP event data object.

ReceivedRequestL(const TMTPTypeRequest &)

void ReceivedRequestL ( 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 & aRequest The received MTP request data object.

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

void SendDataCompleteL ( TInt aErr,
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 aErr A system wide error code indicating the completion status of the sequence.
const MMTPType & aData The MTP data object source.
const TMTPTypeRequest & aRequest The MTP request dataset of the active MTP transaction.

SendEventCompleteL(TInt, const TMTPTypeEvent &)

void SendEventCompleteL ( TInt aErr,
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 aErr A system wide error code indicating the completion status of the sequence.
const TMTPTypeEvent & aData The MTP event data object source.

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

void SendResponseCompleteL ( TInt aErr,
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 aErr A system wide error code indicating the completion status of the sequence.
const TMTPTypeResponse & aResponse The MTP response data object source.
const TMTPTypeRequest & aRequest The MTP request dataset of the active MTP transaction.

TransactionPhaseL(TUint32)

TMTPTransactionPhase TransactionPhaseL ( TUint32 aMtpSessionId ) 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 aMtpSessionId The MTP connection assigned identifier of the requested session.

Unbind(MMTPTransportConnection &)

void Unbind ( MMTPTransportConnection & aConnection ) [pure virtual]

Parameters

MMTPTransportConnection & aConnection