epoc32/include/httpstd.h
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 2fe1408b6811
child 4 837f303aceeb
     1.1 --- a/epoc32/include/httpstd.h	Tue Mar 16 16:12:26 2010 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,96 +0,0 @@
     1.4 -// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 -// All rights reserved.
     1.6 -// This component and the accompanying materials are made available
     1.7 -// 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
     1.8 -// which accompanies this distribution, and is available
     1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 -//
    1.11 -// Initial Contributors:
    1.12 -// Nokia Corporation - initial contribution.
    1.13 -//
    1.14 -// Contributors:
    1.15 -//
    1.16 -// Description:
    1.17 -// Purpose:  This file sets the values for HTTP's return/error codes and
    1.18 -// panic codes.
    1.19 -// 
    1.20 -//
    1.21 -
    1.22 -#if !defined(__HTTPSTD_H__)
    1.23 -#define __HTTPSTD_H__
    1.24 -
    1.25 -// System includes
    1.26 -//
    1.27 -#if !defined(__E32STD_H__)
    1.28 -#include <e32std.h>
    1.29 -#endif
    1.30 -#if !defined(__WAPENGSTD_H__)
    1.31 -#include <wapengstd.h>
    1.32 -#endif
    1.33 -
    1.34 -enum
    1.35 -/**
    1.36 -Base values of code ranges
    1.37 -@publishedAll
    1.38 -@deprecated
    1.39 -*/{
    1.40 -	EHttpRetCodeBase     = -20000,
    1.41 -	EHttpPanicCodeBase   = EHttpRetCodeBase - 200
    1.42 -	};
    1.43 -
    1.44 -typedef enum 
    1.45 -/**
    1.46 -Return/leave codes for HTTPUTIL and HTTP plugins
    1.47 -@publishedAll
    1.48 -@deprecated
    1.49 -*/
    1.50 -	{
    1.51 -	// Informational (+ve) status codes
    1.52 -	EHttp_401_Unauthorized		  = KHttpPluginStatusBase + 401,// occurs when HTTP authentication is used, username/password dialogs raised as a response. Need to consider how UI deals with authentication failures here.
    1.53 -	EHttpAuthenticationAborted	  = KHttpPluginStatusBase + 11,// The user cancelled the password box
    1.54 -	EHttpAuthenticationFailed	  = KHttpPluginStatusBase + 10,// The user's password was rejected by the origin server
    1.55 -	EHttpNoError				  = KErrNone,			  // No error
    1.56 -	// Error (-ve) status codes
    1.57 -	EHttpGeneralError			  = EHttpRetCodeBase,	  // Unspecified error condition
    1.58 -	EHttpCannotFindServer		  = EHttpRetCodeBase - 1, // URL specified a non-existent or inaccessible domain
    1.59 -	EHttpCannotFindPlugin		  = EHttpRetCodeBase - 2, // Plug-in server failed to create an HTTP plugin
    1.60 -	EHttpUnsupportedMethod		  = EHttpRetCodeBase - 3, // An HTTP method was specified that is not supported
    1.61 -	EHttpWapAPReadFailure		  = EHttpRetCodeBase - 4, // An error occurred when reading the WAP AP from CommsDB
    1.62 -	EHttpNetDialSetupFailed		  = EHttpRetCodeBase - 5, // Failed to configure Net Dial
    1.63 -	EHttpWtlsConfigFailed		  = EHttpRetCodeBase - 6, // Failed to configure the WTLS layer of the WAP Stack
    1.64 -	EHttpWtlsBadServerCert		  = EHttpRetCodeBase - 7, // WTLS rejected the certificate obtained from the WAP GW
    1.65 -	EHttpWtlsServerCertRejected	  = EHttpRetCodeBase - 8, // The user rejected the certificate from the WAP GW
    1.66 -	EHttpWtlsCipherRejected		  = EHttpRetCodeBase - 9, // The user rejected the cipher strength negotiated in WTLS
    1.67 -	EHttpGatewayCannotBeReached	  = EHttpRetCodeBase - 10,// A session could not be established with the WAP Gateway
    1.68 -	EHttpGatewayTransactionAbort  = EHttpRetCodeBase - 11,// A transaction was aborted by the gateway or the stack
    1.69 -	EHttpGatewaySessionDisconnect = EHttpRetCodeBase - 12,// The session was disconnected by the WAP Gateway
    1.70 -	EHttpCancellationAbort		  = EHttpRetCodeBase - 13,// Error code for leave when cancellation has occured during RunL()
    1.71 -	EHttpReceivingErrorDeck		  = EHttpRetCodeBase - 14 // Could not find document, so receiving an error deck
    1.72 -	} THttpReturnCode;
    1.73 -
    1.74 -// Note that HTTP Status codes series 40x and 50x are error conditions. They
    1.75 -// will be added to the EHttpRetCodeBase to send to the HTTP Data Provider
    1.76 -// observer. e.g. HTTP/404 will become EHttpRetCodeBase-404 = -20404.  The
    1.77 -// exception to this rule is HTTP/401, which gets fully handled in HTTP and
    1.78 -// so is treated above as an informational status message.
    1.79 -
    1.80 -typedef enum 
    1.81 -/**
    1.82 -Panic codes for HTTPUTIL and HTTP plugins
    1.83 -@publishedAll
    1.84 -@deprecated
    1.85 -*/
    1.86 -    {
    1.87 -	EHttpGeneralPanic				= EHttpPanicCodeBase,		// Unspecified panic condition
    1.88 -    EHttpDialInNotSupported			= EHttpPanicCodeBase - 1,	// The WAP Access Point specified a dial-in ISP!
    1.89 -	EHttpWapAccessPointInfoChanged	= EHttpPanicCodeBase - 2,	// The WAP AP info changed between initial read and
    1.90 -																// the subsequent NetDial override (debug only)
    1.91 -	EHttpCommDBContainsBadData		= EHttpPanicCodeBase - 3,	// Comms DB contains garbled/inconsistent WAP AP data
    1.92 -	EHttpConnectionLessNotSupported	= EHttpPanicCodeBase - 4,	// Comms DB specified a CL mode, which isn't available (yet)
    1.93 -	EHttpNoHandlerAvailable			= EHttpPanicCodeBase - 5,	// Very bad situation for HTTP Methods
    1.94 -	EHttpResourceFileLoadFailed		= EHttpPanicCodeBase - 6,	// Resource file missing or corrupt
    1.95 -	EHttpReservedForFutureExpansion	= EHttpPanicCodeBase - 7	// Feature not available - reserved for BC only
    1.96 -    } THttpPanicCode;
    1.97 -
    1.98 -
    1.99 -#endif // __HTTPSTD_H__