MMTPTransactionProxy Class Reference

class MMTPTransactionProxy

Defines the MTP framework transaction proxy handler application interface. This is an internal interface that allows a data provider to complete the processing of a delegated (proxy) request.

Member Functions Documentation

ProxyReceiveDataL(MMTPType &, const TMTPTypeRequest &, MMTPConnection &, TRequestStatus &)

voidProxyReceiveDataL(MMTPType &aData,
const TMTPTypeRequest &aRequest,
MMTPConnection &aConnection,
TRequestStatus &aStatus
)[pure virtual]
Initiates a data object receive sequence in the MTP transaction proxy handler. This is an asynchronous method. This method should only be invoked when processing the ERequestPhase of an MTP transaction.
leave
KErrNotReady, if invoked when the current MTP transaction phase is not ERequestPhase.

Parameters

MMTPType & aDataThe MTP data object sink buffer.
const TMTPTypeRequest & aRequestThe MTP request dataset of the active MTP transaction.
MMTPConnection & aConnectionThe handle of the MTP connection on which the transaction is being processed.
TRequestStatus & aStatusThe status used to return asynchronous completion information regarding the request.

ProxySendDataL(const MMTPType &, const TMTPTypeRequest &, MMTPConnection &, TRequestStatus &)

voidProxySendDataL(const MMTPType &aData,
const TMTPTypeRequest &aRequest,
MMTPConnection &aConnection,
TRequestStatus &aStatus
)[pure virtual]
Initiates a data object send sequence in the MTP transaction proxy handler. This is an asynchronous method. This method should only be invoked when processing the ERequestPhase of an MTP transaction.
leave
KErrNotReady, if invoked when the current MTP transaction phase is not ERequestPhase.

Parameters

const MMTPType & aDataThe MTP data object source buffer.
const TMTPTypeRequest & aRequestThe MTP request dataset of the active MTP transaction.
MMTPConnection & aConnectionThe handle of the MTP connection on which the transaction is being processed.
TRequestStatus & aStatusThe status used to return asynchronous completion information regarding the request.

ProxySendResponseL(const TMTPTypeResponse &, const TMTPTypeRequest &, MMTPConnection &, TRequestStatus &)

voidProxySendResponseL(const TMTPTypeResponse &aResponse,
const TMTPTypeRequest &aRequest,
MMTPConnection &aConnection,
TRequestStatus &aStatus
)[pure virtual]
Initiates a data object an MTP response dataset send sequence in the MTP transaction proxy handler. This is an asynchronous method. This method should only be invoked when processing either the ERequestPhase or EResponsePhase of an MTP transaction.
leave
KErrNotReady, if invoked when the current MTP transaction phase is not ERequestPhase or EResponsePhase.

Parameters

const TMTPTypeResponse & aResponse
const TMTPTypeRequest & aRequest
MMTPConnection & aConnectionThe handle of the MTP connection on which the transaction is being processed.
TRequestStatus & aStatusThe status used to return asynchronous completion information regarding the request.

ProxyTransactionCompleteL(const TMTPTypeRequest &, MMTPConnection &)

voidProxyTransactionCompleteL(const TMTPTypeRequest &aRequest,
MMTPConnection &aConnection
)[pure virtual]
Signals to the MTP transaction proxy handler that all processing related to the current transaction has been completed. This method should only be invoked when processing the ECompletingPhase of the MTP transaction
leave
KErrNotReady If invoked when the current MTP transaction phase is invalid.

Parameters

const TMTPTypeRequest & aRequestThe MTP request dataset that initiated the transaction.
MMTPConnection & aConnectionThe handle of the MTP connection on which the transaction is being processed.