MHTTPTransactionCallback Class Reference

#include <mw/http/mhttptransactioncallback.h>

class MHTTPTransactionCallback
Public Member Functions
pure virtual TInt MHFRunError(TInt, RHTTPTransaction, const THTTPEvent &)
pure virtual voidMHFRunL(RHTTPTransaction, const THTTPEvent &)

Detailed Description

The per-transaction callback for receiving HTTP events.

Member Function Documentation

MHFRunError ( TInt, RHTTPTransaction, const THTTPEvent & )

TInt MHFRunError(TIntaError,
RHTTPTransactionaTransaction,
const THTTPEvent &aEvent
)[pure virtual]

Called when RunL leaves from a transaction event. This works in the same way as CActve::RunError; return KErrNone if you have handled the error. If you don't completely handle the error, a panic will occur.

Parameters
aErrorThe leave code that RunL left with.
aTransactionThe transaction that was being processed.
aEventThe Event that was being processed.
Return Value
KErrNone if the error has been cancelled or the code of the continuing error otherwise.

MHFRunL ( RHTTPTransaction, const THTTPEvent & )

voidMHFRunL(RHTTPTransactionaTransaction,
const THTTPEvent &aEvent
)[pure virtual]

Called when the filter's registration conditions are satisfied for events that occur on a transaction. Note that this function is not allowed to leave if called with certain events.

See also: THTTPEvent

Parameters
aTransactionThe transaction that the event has occurred on.
aEventThe event that has occurred.
Leave Codes
AnyLeaves must be handled by the appropriate MHFRunError.