applayerprotocols/httpexamples/nwsswsptrhnd/TNwssWspTrHndPanic.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2002-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 TNwssWspTrHndPanic.h
       
    18  @warning : This file contains Rose Model ID comments - please do not delete
       
    19 */
       
    20 #ifndef __TNWSSWSPTRHNDPANIC_H__
       
    21 #define __TNWSSWSPTRHNDPANIC_H__
       
    22 
       
    23 // System includes
       
    24 #include <e32std.h>
       
    25 
       
    26 // Constants used in this file
       
    27 _LIT(KStubPanicType, "NWSSWSPTH");
       
    28 
       
    29 
       
    30 /**
       
    31 	@since			7.0
       
    32 	This class provides a trivial panic utility used throughout the WSP Transport Handler.
       
    33  */
       
    34 //##ModelId=3C4C46CE0250
       
    35 class TNwssWspTrHndPanic
       
    36 	{
       
    37 public: // type definitions
       
    38 
       
    39 	/** Panic codes for the WSP TH, NWSS stack binding
       
    40 	*/
       
    41 	typedef enum
       
    42 		{
       
    43 		EServiceNotSupported = 1,
       
    44 		ETransLUTOverflow = 2,
       
    45 		EUnknownMethod = 3,
       
    46 		EURIOverflow = 4,
       
    47 		EWrongSessionType = 5,
       
    48 		EWrongBearerType = 6,
       
    49 		ECOPushNotSupported = 7,
       
    50 		EConnectionLessNotSupported = 8,
       
    51 		EUnknownWspEvent = 9,
       
    52 		EEventOnUnknownTransaction = 10,
       
    53 		EInvalidTransactionInLUT = 11,
       
    54 		EFailedToGetSessionData = 12,
       
    55 		EFailedToGetTransactionData = 13,
       
    56 		EInternalCapCodecError = 14,
       
    57 		ECapabilityOverrun = 15,
       
    58 		EFailedToAcknowledgeTrans = 16,
       
    59 		EFailedToReleaseTrans = 17,
       
    60 		ELargeDataTransferNotSupported = 18,
       
    61 		EFailedToAbortTrans = 19,
       
    62 		ETransLUTLeakage = 20,
       
    63 		EConnectedUponDestruction = 21,
       
    64 		EFailedToOpenWspSession = 22,
       
    65 		// panics that derive from specific NWSS wap stack error codes
       
    66 		EBearerError         = 23,
       
    67 		EPortAlreadyBound    = 24,
       
    68 		ECannotOpenPort      = 25,
       
    69 		ETooManyConnections  = 26,
       
    70 		EBadConnection       = 27,
       
    71 		EBufferTooSmall      = 28,
       
    72 		EInvalidSession      = 29,
       
    73 		EInvalidTransaction  = 30,
       
    74 		EParameterError      = 31,
       
    75 		ESessionNotConnected = 32,
       
    76 		ENotSupported        = 33,
       
    77 		EInvalidState        = 34,
       
    78 		ESessionClosed       = 35,
       
    79 		EMRUExceeded         = 36,
       
    80 		EInvalidBufferSize   = 37,
       
    81 		EDataNotAvailable    = 38,
       
    82 		EErrorTimeout        = 39,
       
    83 		//
       
    84 		EMORExceeded		 = 40,
       
    85 		EDeferedMethodFailed = 41,
       
    86 		//
       
    87 		EInsufficientCryptoStrength = 42,
       
    88 		//
       
    89 		EUnknownPanic = 999
       
    90 		} TNwssWspTrHndPanicCode;
       
    91 
       
    92 public: // methods
       
    93 
       
    94 /**Panic the stub.  Uses the specified panic code.
       
    95 	@since			7.0
       
    96 	@param			aPanic		(in) The code with which the client is panicked.
       
    97  */
       
    98 	//##ModelId=3C4C46CE0264
       
    99 	inline static void Panic(TNwssWspTrHndPanicCode aPanic);
       
   100 
       
   101 	};
       
   102 
       
   103 
       
   104 // Include inline method definitions
       
   105 #include "TNwssWspTrHndPanic.inl"
       
   106 
       
   107 #endif // __TNWSSWSPTRHNDPANIC_H__