epoc32/include/mw/http/mhttpsessioneventcallback.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 /**
    17  @file
    18  @warning : This file contains Rose Model ID comments - please do not delete
    19 */
    20 
    21 #ifndef	__MHTTPSESSIONEVENTCALLBACK_H__
    22 #define	__MHTTPSESSIONEVENTCALLBACK_H__
    23 
    24 // System includes
    25 #include <e32std.h>
    26 #include <http/rhttptransaction.h>
    27 #include <http/thttpevent.h>
    28 
    29 
    30 //##ModelId=3C4C0F460242
    31 class MHTTPSessionEventCallback
    32 /**
    33 The per-session callback for receiving session event callbacks.
    34 @publishedAll
    35 @released
    36 */
    37     {
    38 public:	// Methods
    39 
    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.
    43 	*/
    44 	//##ModelId=3C4C0F460262
    45 	virtual void MHFSessionRunL(const THTTPSessionEvent& aEvent) =0;
    46 
    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.	
    54 	*/
    55 	//##ModelId=3C4C0F460256
    56 	virtual TInt MHFSessionRunError(TInt aError, const THTTPSessionEvent& aEvent) =0;
    57     };
    58 
    59 
    60 #endif //	__MHTTPSESSIONEVENTCALLBACK_H__