Symbian
 Developer Library

DEVELOPER LIBRARY

[Index] [Glossary] [Previous] [Next]



Location: http\mhttptransactioncallback.h

Class MHTTPTransactionCallback

class MHTTPTransactionCallback

Support

Supported from 7.0

Description

The per-transaction callback for receiving transaction events.

Defined in MHTTPTransactionCallback:
MHFRunError(), MHFRunL()


MHFRunL()

virtual void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent)=0;

Description

Called when the client'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.

Parameters

RHTTPTransaction aTransaction

The transaction that the event has occurred on

const THTTPEvent& aEvent

The event that has occurred

Leave codes

Error in processing the event. Performing a leave results in MHFRunError() being called, which must handle the leave.

[Top]


MHFRunError()

virtual TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction, const THTTPEvent& aEvent)=0;

Description

Called when a leave occurs in handling a transaction event.

If you don't handle the error, a HTTP-CORE 6 panic occurs.

The function is similiar in principle to CActive::RunError().

Parameters

TInt aError

The leave code

RHTTPTransaction aTransaction

The transaction that was being processed

const THTTPEvent& aEvent

The event that was being processed

Return value

TInt

KErrNone if the error has been handled, or the code of the continuing error otherwise