epoc32/include/mw/http/mhttpsessioneventcallback.h
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 2fe1408b6811
child 4 837f303aceeb
equal deleted inserted replaced
2:2fe1408b6811 3:e1b950c65cb4
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 
       
    18 /**
       
    19  @file MHTTPSessionEventCallback.h
       
    20  @warning : This file contains Rose Model ID comments - please do not delete
       
    21 */
       
    22 
       
    23 #ifndef	__MHTTPSESSIONEVENTCALLBACK_H__
       
    24 #define	__MHTTPSESSIONEVENTCALLBACK_H__
       
    25 
       
    26 // System includes
       
    27 #include <e32std.h>
       
    28 #include <http/rhttptransaction.h>
       
    29 #include <http/thttpevent.h>
       
    30 
       
    31 
       
    32 //##ModelId=3C4C0F460242
       
    33 class MHTTPSessionEventCallback
       
    34 /**
       
    35 The per-session callback for receiving session event callbacks.
       
    36 @publishedAll
       
    37 @released
       
    38 */
       
    39     {
       
    40 public:	// Methods
       
    41 
       
    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.
       
    45 	*/
       
    46 	//##ModelId=3C4C0F460262
       
    47 	virtual void MHFSessionRunL(const THTTPSessionEvent& aEvent) =0;
       
    48 
       
    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.	
       
    56 	*/
       
    57 	//##ModelId=3C4C0F460256
       
    58 	virtual TInt MHFSessionRunError(TInt aError, const THTTPSessionEvent& aEvent) =0;
       
    59     };
       
    60 
       
    61 
       
    62 #endif //	__MHTTPSESSIONEVENTCALLBACK_H__