1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
18 @warning : This file contains Rose Model ID comments - please do not delete
21 #ifndef __MHTTPTRANSACTIONCALLBACK_H__
22 #define __MHTTPTRANSACTIONCALLBACK_H__
26 #include <http/rhttptransaction.h>
27 #include <http/thttpevent.h>
30 //##ModelId=3C4C1886022B
31 class MHTTPTransactionCallback
33 The per-transaction callback for receiving HTTP events.
40 /** Called when the filter's registration conditions are satisfied for events that
41 occur on a transaction.
42 Note that this function is not allowed to leave if called with
43 certain events. @see THTTPEvent
44 @param aTransaction The transaction that the event has occurred on.
45 @param aEvent The event that has occurred.
46 @leave Any Leaves must be handled by the appropriate MHFRunError.
48 //##ModelId=3C4C1886024C
49 virtual void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent) =0;
51 /** Called when RunL leaves from a transaction event. This works in the same
52 way as CActve::RunError; return KErrNone if you have handled the error.
53 If you don't completely handle the error, a panic will occur.
54 @param aError The leave code that RunL left with.
55 @param aTransaction The transaction that was being processed.
56 @param aEvent The Event that was being processed.
57 @return KErrNone if the error has been cancelled or the code
58 of the continuing error otherwise.
60 //##ModelId=3C4C1886023F
61 virtual TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction, const THTTPEvent& aEvent) =0;
65 #endif // __MHTTPTRANSACTIONCALLBACK_H__