1.1 --- a/epoc32/include/wapmsgerr.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/wapmsgerr.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,249 @@
1.4 -wapmsgerr.h
1.5 +// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// 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.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +#ifndef __WAPMSGERR_H__
1.21 +#define __WAPMSGERR_H__
1.22 +
1.23 +#include <e32base.h>
1.24 +
1.25 +namespace Wap
1.26 +/**
1.27 +* Defines WAP-related types and error codes.
1.28 +*/
1.29 + {
1.30 + _LIT(KWapMsgPanicDescriptor, "WAPMESSAGE");
1.31 +
1.32 +/** Defines start values for categories of WAP-related error codes. */
1.33 +enum
1.34 + {
1.35 + /** Base value for all error codes. */
1.36 + ERetCodeBase = -5500,
1.37 + /** Base value for connection-orientated WSP error codes. */
1.38 + EWSPCORetCodeBase = ERetCodeBase + 25,
1.39 + /** Base value for connectionless WSP error codes. */
1.40 + EWSPCLRetCodeBase = ERetCodeBase + 50,
1.41 + /** Base value for WTP error codes. */
1.42 + EWTPRetCodeBase = ERetCodeBase + 75,
1.43 + /** Base value for WDP error codes. */
1.44 + EWDPRetCodeBase = ERetCodeBase + 100,
1.45 + /** Base value for WTLS error codes. */
1.46 + EWTLSRetCodeBase = ERetCodeBase + 125,
1.47 + /** Maximum value for WAP-related error codes. */
1.48 + ERetCodeTop = ERetCodeBase + 200
1.49 + };
1.50 +
1.51 +/** General WAP error codes. */
1.52 +enum TGeneralReturnCodes
1.53 + {
1.54 + /** There is more data to be read. */
1.55 + EMoreData = ERetCodeBase + 0,
1.56 + /** One of: no bearer set; unknown bearer; a connection exists with different bearer;
1.57 + * unable to get a local host name from bearer. */
1.58 + EBearerError = ERetCodeBase + 1,
1.59 + /** The port is already used in another bound connection. */
1.60 + EPortAlreadyBound = ERetCodeBase + 2,
1.61 + /** Local port cannot be opened. */
1.62 + ECannotOpenPort = ERetCodeBase + 3,
1.63 + /** There are too many existing connections. */
1.64 + ETooManyConnections = ERetCodeBase + 4,
1.65 + /** Connection handle is invalid. */
1.66 + EBadConnection = ERetCodeBase + 5,
1.67 + /** Passed buffer is too small. */
1.68 + EBufferTooSmall = ERetCodeBase + 6
1.69 + };
1.70 +
1.71 +/** WTLS-related error codes. */
1.72 +enum TWtlsReturnCodes
1.73 + {
1.74 + /** Out of memory. */
1.75 + EWtlsOutOfMemory = EWTLSRetCodeBase + 0,
1.76 + /** Socket error. */
1.77 + EWtlsSocketError = EWTLSRetCodeBase + 1,
1.78 + /** Invalid parameter used. */
1.79 + EWtlsBadParameters = EWTLSRetCodeBase + 2,
1.80 + /** Socket error. */
1.81 + EWtlsSocketError2 = EWTLSRetCodeBase + 3,
1.82 + /** Resume ID not found. */
1.83 + EWtlsResumeIDNotFound = EWTLSRetCodeBase + 4,
1.84 + /** Resume error. */
1.85 + EWtlsResumeError = EWTLSRetCodeBase + 5,
1.86 + /** Renegotiation request error. */
1.87 + EWtlsRenegotiationRequest = EWTLSRetCodeBase + 6,
1.88 + /** Illegal call. */
1.89 + EWtlsIllegalCall = EWTLSRetCodeBase + 7,
1.90 + /** Connection close notify error. */
1.91 + EWtlsConnectionCloseNotify = EWTLSRetCodeBase + 8,
1.92 + /** Close notify error. */
1.93 + EWtlsSessionCloseNotify = EWTLSRetCodeBase + 9,
1.94 + /** No connection. */
1.95 + EWtlsNoConnection = EWTLSRetCodeBase + 10,
1.96 + /** Unexpected message. */
1.97 + EWtlsUnexpectedMessage = EWTLSRetCodeBase + 11,
1.98 + /** Bad MAC record. */
1.99 + EWtlsBadRecordMac = EWTLSRetCodeBase + 12,
1.100 + /** Decryption failed. */
1.101 + EWtlsDecryptionFailed = EWTLSRetCodeBase + 13,
1.102 + /** Record overflow. */
1.103 + EWtlsRecordOverflow = EWTLSRetCodeBase + 14,
1.104 + /** Handshake failure. */
1.105 + EWtlsHandshakeFailure = EWTLSRetCodeBase + 15,
1.106 + /** Decompression failure. */
1.107 + EWtlsDecompressionFailure = EWTLSRetCodeBase + 16,
1.108 + /** Bad certificate. */
1.109 + EWtlsBadCertificate = EWTLSRetCodeBase + 17,
1.110 + /** Unsupported certificate. */
1.111 + EWtlsUnsupportedCertificate = EWTLSRetCodeBase + 18,
1.112 + /** Certificate revoked. */
1.113 + EWtlsCertificateRevoked = EWTLSRetCodeBase + 19,
1.114 + /** Certificate expired. */
1.115 + EWtlsCertificateExpired = EWTLSRetCodeBase + 20,
1.116 + /** Certificate unknown. */
1.117 + EWtlsCertificateUnknown = EWTLSRetCodeBase + 21,
1.118 + /** Illegal parameter. */
1.119 + EWtlsIllegalParameter = EWTLSRetCodeBase + 22,
1.120 + /** Unknown certificate authority. */
1.121 + EWtlsUnknownCA = EWTLSRetCodeBase + 23,
1.122 + /** Access denied. */
1.123 + EWtlsAccessDenied = EWTLSRetCodeBase + 24,
1.124 + /** Decoding error. */
1.125 + EWtlsDecodeError = EWTLSRetCodeBase + 25,
1.126 + /** Decryption error. */
1.127 + EWtlsDecryptError = EWTLSRetCodeBase + 26,
1.128 + /** Unknown key ID. */
1.129 + EWtlsUnknownKeyId = EWTLSRetCodeBase + 27,
1.130 + /** Disabled key ID. */
1.131 + EWtlsDisableKeyId = EWTLSRetCodeBase + 28,
1.132 + /** Key exchange disabled. */
1.133 + EWtlsKeyExchangeDisabled = EWTLSRetCodeBase + 29,
1.134 + /** Session not ready. */
1.135 + EWtlsSessionNotReady = EWTLSRetCodeBase + 30,
1.136 + /** Unknown parameter index. */
1.137 + EWtlsUnknownParameterIndex = EWTLSRetCodeBase + 31,
1.138 + /** Duplicate finished Recv() call. */
1.139 + EWtlsDuplicateFinishedRecv = EWTLSRetCodeBase + 32,
1.140 + /** Export restriction error. */
1.141 + EWtlsExportRestriction = EWTLSRetCodeBase + 33,
1.142 + /** Protocol version error. */
1.143 + EWtlsProtocolVersion = EWTLSRetCodeBase + 34,
1.144 + /** Insufficient security. */
1.145 + EWtlsInsufficientSecurity = EWTLSRetCodeBase + 35,
1.146 + /** Internal error. */
1.147 + EWtlsInternalError = EWTLSRetCodeBase + 36,
1.148 + /** User cancelled operation. */
1.149 + EWtlsUserCanceled = EWTLSRetCodeBase + 37,
1.150 + /** No renegotiation. */
1.151 + EWtlsNoRenegotiation = EWTLSRetCodeBase + 38,
1.152 +
1.153 + /** General error. */
1.154 + EWtlsErrGeneral = EWTLSRetCodeBase + 39,
1.155 + /** Bulk algorithm error. */
1.156 + EWtlsErrBulk = EWTLSRetCodeBase + 40,
1.157 + /** MAC algorithm error. */
1.158 + EWtlsErrMac = EWTLSRetCodeBase + 41,
1.159 + /** Sequence number mode error. */
1.160 + EWtlsErrSequenceNumberMode = EWTLSRetCodeBase + 42,
1.161 + /** Key refresh rate error. */
1.162 + EWtlsErrKeyRefreshRate = EWTLSRetCodeBase + 43,
1.163 +
1.164 + };
1.165 +
1.166 +/** Connection-orientated WSP error codes. */
1.167 +enum TWspCoReturnCodes
1.168 + {
1.169 + /** Given buffer is too small. */
1.170 + EWspCoBufferTooSmall = EWSPCORetCodeBase + 0,
1.171 + /** Session handle is not valid. */
1.172 + EWspCoInvalidSession = EWSPCORetCodeBase + 1,
1.173 + /** Invalid transaction. */
1.174 + EWspCoInvalidTransaction = EWSPCORetCodeBase + 2,
1.175 + /** Given parameter is invalid. */
1.176 + EWspCoParameterError = EWSPCORetCodeBase + 3,
1.177 + /** Session is not connected. */
1.178 + EWspCoSessionNotConnected = EWSPCORetCodeBase + 4,
1.179 + /** Functionality is not supported in this session. */
1.180 + EWspCoNotSupported = EWSPCORetCodeBase + 5,
1.181 + /** Function is not applicable in this state of an object. */
1.182 + EWspCoInvalidState = EWSPCORetCodeBase + 6,
1.183 + /** Session has been closed. */
1.184 + EWspCoSessionClosed = EWSPCORetCodeBase + 7,
1.185 + /** Server MRU exceeded. */
1.186 + EWspCoMRUExceeded = EWSPCORetCodeBase + 8,
1.187 + /** Invalid buffer size. */
1.188 + EWspCoInvalidBufferSize = EWSPCORetCodeBase + 9,
1.189 + /** Data not available. */
1.190 + EWspCoDataNotAvailable = EWSPCORetCodeBase + 10,
1.191 + /** Timeout error. */
1.192 + EWspCoErrorTimeout = EWSPCORetCodeBase + 11
1.193 + };
1.194 +
1.195 +
1.196 +/** Connectionless WSP error codes. */
1.197 +enum TWspClReturnCodes
1.198 + {
1.199 + /** Given buffer is too small. */
1.200 + EWspClBufferTooSmall = EWSPCLRetCodeBase + 0,
1.201 + /** Session handle is not valid. */
1.202 + EWspClInvalidSession = EWSPCLRetCodeBase + 1,
1.203 + /** Given parameter is invalid. */
1.204 + EWspClParameterError = EWSPCLRetCodeBase + 2,
1.205 + /** Session is not connected. */
1.206 + EWspClSessionNotConnected = EWSPCLRetCodeBase + 3,
1.207 + /** Functionality is not supported in this session. */
1.208 + EWspClNotSupported = EWSPCLRetCodeBase + 4,
1.209 + /** Function is not applicable in this state of an object. */
1.210 + EWspClInvalidState = EWSPCLRetCodeBase + 5,
1.211 + /** Session has been closed. */
1.212 + EWspClSessionClosed = EWSPCLRetCodeBase + 6,
1.213 + /** Server MRU exceeded. */
1.214 + EWspClMRUExceeded = EWSPCLRetCodeBase + 7,
1.215 + /** Invalid buffer size. */
1.216 + EWspClInvalidBufferSize = EWSPCLRetCodeBase + 8,
1.217 + /** Data not available. */
1.218 + EWspClDataNotAvailable = EWSPCLRetCodeBase + 9,
1.219 + /** Timeout error. */
1.220 + EWspClErrorTimeout = EWSPCLRetCodeBase + 10
1.221 + };
1.222 +
1.223 +/** WTP-related error codes. */
1.224 +enum TWtpReturnCodes
1.225 + {
1.226 + /** Out of memory. */
1.227 + EWtpNoMemory = EWTPRetCodeBase + 0,
1.228 + /** Invalid argument. */
1.229 + EWtpBadArgument = EWTPRetCodeBase + 1,
1.230 + /** Provider aborted. */
1.231 + EWtpProviderProtoErr = EWTPRetCodeBase + 2,
1.232 + /** Provider aborted. */
1.233 + EWtpProviderAbortInvalidTID = EWTPRetCodeBase + 3,
1.234 + /** Provider aborted. */
1.235 + EWtpProviderAbortNoClass2 = EWTPRetCodeBase + 4,
1.236 + /** Provider aborted. */
1.237 + EWtpProviderAbortNoSAR = EWTPRetCodeBase + 5,
1.238 + /** Provider aborted. */
1.239 + EWtpProviderAbortNoUACK = EWTPRetCodeBase + 6,
1.240 + /** Provider aborted. */
1.241 + EWtpProviderAbortVers1 = EWTPRetCodeBase + 7,
1.242 + /** Provider aborted. */
1.243 + EWtpProviderAbortNoResponse = EWTPRetCodeBase + 8,
1.244 + /** Provider aborted. */
1.245 + EWtpProviderAbortMsgTooLarge = EWTPRetCodeBase + 9,
1.246 + /** Provider aborted. */
1.247 + EWtpProviderAbortGeneral = EWTPRetCodeBase + 10,
1.248 + /** Service has shutdown. */
1.249 + EWtpShutdownError = EWTPRetCodeBase + 11
1.250 + };
1.251 +}
1.252 +
1.253 +#endif // __WAPMSGERR_H__