applayerpluginsandutils/httpprotocolplugins/WspProtocolHandler/MWspPrimitiveSenderCallback.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     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 #ifndef __MWSPPRIMITIVESENDERCALLBACK_H__
       
    17 #define __MWSPPRIMITIVESENDERCALLBACK_H__
       
    18 
       
    19 #include <e32std.h>
       
    20 #include <wsp/wsptypes.h>
       
    21 
       
    22 // Types used for arguments in this file (e.g. TWspBearer) are from the Wap namespace
       
    23 using namespace Wap;
       
    24 
       
    25 /** The MWspPrimitiveSenderCallback is used to perform an automatic session 
       
    26 	connect. An active object uses this callback to send a WSP primitive.
       
    27 */
       
    28 //##ModelId=3C4C419D0213
       
    29 class MWspPrimitiveSenderCallback
       
    30 	{
       
    31 public:	// Methods
       
    32 
       
    33 /**	@fn				SendPrimitiveL(TWspPrimitive aPrimitive) =0
       
    34 	Intended Usage	:
       
    35 	@since			7.0
       
    36 	@post			The specified primitive has been sent.
       
    37 */
       
    38 	//##ModelId=3C4C419D0229
       
    39 	virtual void SendPrimitiveL(TWspPrimitive aPrimitive) =0;
       
    40 
       
    41 /** @fn				WspPrimitiveSenderCallbackError(TInt aError) =0
       
    42 	Intended Usage	:	Error handling function for when SendPrimitiveL() 
       
    43 						leaves.
       
    44 	@since			7.0
       
    45 	@param			aError	The error with which SendPrimitiveL() left.
       
    46 	@return			An error code. If the input error value could be handled, 
       
    47 					then KErrNone is returned, otherwise the input error code
       
    48 					is returned.
       
    49 */
       
    50 	//##ModelId=3C4C419D0227
       
    51 	virtual TInt WspPrimitiveSenderCallbackError(TInt aError) =0;
       
    52 
       
    53 	};
       
    54 
       
    55 #endif	// __MWSPPRIMITIVESENDERCALLBACK_H__