applayerpluginsandutils/httptransportplugins/httptransporthandler/thttptrlayerpanic.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2003-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 __THTTPTRLAYERPANIC_H__
       
    17 #define __THTTPTRLAYERPANIC_H__
       
    18 
       
    19 #include <e32std.h>
       
    20 
       
    21 class THttpTrLayerPanic
       
    22 /**	
       
    23 The THttpTrLayerPanic class provides the panic function and codes for the 
       
    24 http transport layer.
       
    25 */
       
    26 	{
       
    27 public:	// enums
       
    28 
       
    29 /**	
       
    30 	Panic codes for the http transport handler.
       
    31 */
       
    32 	enum THttpTrLayerPanicCode
       
    33 		{
       
    34 		/** An input stream API was used when it is in the wrong state.
       
    35 		*/
       
    36 		EBadInputStreamState			= 0,
       
    37 		/** An output stream API was used when it is in the wrong state.
       
    38 		*/
       
    39 		EBadOutputStreamState			= 1,
       
    40 		/** The input stream state machine has broken.
       
    41 		*/
       
    42 		EBadInputStreamError			= 2,
       
    43 		/** The output stream state machine has broken.
       
    44 		*/
       
    45 		EBadOutputStreamError			= 3,
       
    46 		/** The socket listener is in an unexpected state.
       
    47 		*/
       
    48 		EBadSocketListenerState			= 4,
       
    49 		/** The input stream was used before an observer bound to it.
       
    50 		*/
       
    51 		EInputStreamNotBound			= 5,
       
    52 		/** The output stream was used before an observer bound to it.
       
    53 		*/
       
    54 		EOutputStreamNotBound			= 6,
       
    55 		/** The socket connector is in an unexpected state.
       
    56 		*/
       
    57 		EBadSocketConnectorState		= 7,
       
    58 		/** A NULL pointer to a connection object has been given.
       
    59 		*/
       
    60 		EExpectedConnectionNotSupplied	= 8,
       
    61 		/** A secure socket was used before starting the secure handshake.
       
    62 		*/
       
    63 		ETlsSocketNotStarted			= 9,
       
    64 		/** The input stream was suspended when it already was.
       
    65 		*/
       
    66 		EInputStreamAlreadySuspended	= 10,
       
    67 		/** The input stream was resumed when it was not suspended.
       
    68 		*/
       
    69 		EInputStreamNotSuspended		= 11
       
    70 		};
       
    71 
       
    72 public:	// methods
       
    73 
       
    74 	static void Panic(THttpTrLayerPanicCode aPanic);
       
    75 
       
    76 	};
       
    77 
       
    78 #endif	// __THTTPTRLAYERPANIC_H__