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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @file MHTTPSessionEventCallback.h
20 @warning : This file contains Rose Model ID comments - please do not delete
23 #ifndef __MHTTPSESSIONEVENTCALLBACK_H__
24 #define __MHTTPSESSIONEVENTCALLBACK_H__
28 #include <http/rhttptransaction.h>
29 #include <http/thttpevent.h>
32 //##ModelId=3C4C0F460242
33 class MHTTPSessionEventCallback
35 The per-session callback for receiving session event callbacks.
42 /** Called when the filters registration conditions are satisfied for events that occur
43 on the session. Any leaves must be handled by the appropriate MHFRunError.
44 @param aEvent The session event that has occured.
46 //##ModelId=3C4C0F460262
47 virtual void MHFSessionRunL(const THTTPSessionEvent& aEvent) =0;
49 /** Called when MHFRunL leaves from a session event. This works in the same
50 way as CActve::RunError
51 If you don't completely handle the error, a panic will occur.
52 @param aError The leave code that RunL left with.
53 @param aEvent The Event that was being processed.
54 @return KErrNone if the error has been cancelled or the code
55 of the continuing error otherwise.
57 //##ModelId=3C4C0F460256
58 virtual TInt MHFSessionRunError(TInt aError, const THTTPSessionEvent& aEvent) =0;
62 #endif // __MHTTPSESSIONEVENTCALLBACK_H__