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 __MHTTPSESSIONEVENTCALLBACK_H__
22 #define __MHTTPSESSIONEVENTCALLBACK_H__
26 #include <http/rhttptransaction.h>
27 #include <http/thttpevent.h>
30 //##ModelId=3C4C0F460242
31 class MHTTPSessionEventCallback
33 The per-session callback for receiving session event callbacks.
40 /** Called when the filters registration conditions are satisfied for events that occur
41 on the session. Any leaves must be handled by the appropriate MHFRunError.
42 @param aEvent The session event that has occured.
44 //##ModelId=3C4C0F460262
45 virtual void MHFSessionRunL(const THTTPSessionEvent& aEvent) =0;
47 /** Called when MHFRunL leaves from a session event. This works in the same
48 way as CActve::RunError
49 If you don't completely handle the error, a panic will occur.
50 @param aError The leave code that RunL left with.
51 @param aEvent The Event that was being processed.
52 @return KErrNone if the error has been cancelled or the code
53 of the continuing error otherwise.
55 //##ModelId=3C4C0F460256
56 virtual TInt MHFSessionRunError(TInt aError, const THTTPSessionEvent& aEvent) =0;
60 #endif // __MHTTPSESSIONEVENTCALLBACK_H__