|
1 /* |
|
2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Status codes used by Browser Engine |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef BRSR_STATUS_CODES_H |
|
19 #define BRSR_STATUS_CODES_H |
|
20 |
|
21 #ifdef __cplusplus |
|
22 extern "C" { |
|
23 #endif |
|
24 |
|
25 typedef signed int TBrowserStatusCode; |
|
26 |
|
27 /* |
|
28 ** Includes |
|
29 */ |
|
30 |
|
31 #define BRSR_STAT_IS_SUCCESS(a) ((a) == KBrsrSuccess) |
|
32 #define BRSR_STAT_IS_FAILURE(a) ((a) != KBrsrSuccess) |
|
33 |
|
34 /* Used by NW_HED_DocumentNode_HandleError to specify the error "class" */ |
|
35 #define BRSR_STAT_CLASS_NONE 0 |
|
36 #define BRSR_STAT_CLASS_GENERAL 1 |
|
37 #define BRSR_STAT_CLASS_HTTP 2 |
|
38 |
|
39 |
|
40 #define KBrsrSuccess 0 |
|
41 #define KBrsrFailure -26000 |
|
42 #define KBrsrFileNotFound -26003 |
|
43 #define KBrsrFileWriteError -26008 |
|
44 #define KBrsrFileDiskFullError -26009 |
|
45 #define KBrsrOutOfMemory -26011 |
|
46 #define KBrsrUnexpectedError -26012 |
|
47 #define KBrsrNotImplemented -26013 |
|
48 #define KBrsrWaitTimeout -26014 |
|
49 #define KBrsrBufferTooSmall -26015 |
|
50 #define KBrsrBadInputParam -26016 |
|
51 #define KBrsrMissingInputParam -26017 |
|
52 #define KBrsrMalformedUrl -26018 |
|
53 #define KBrsrNotFound -26021 |
|
54 #define KBrsrBufferEnd -26022 |
|
55 #define KBrsrIterateMore -26023 |
|
56 #define KBrsrIterateDone -26024 |
|
57 #define KBrsrUnknownScheme -26026 |
|
58 #define KBrsrBadRedirect -26027 |
|
59 #define KBrsrTooManyRedirects -26028 |
|
60 #define KBrsrHttpStatus -26035 |
|
61 #define KBrsrMissingAuthHeader -26037 |
|
62 #define KBrsrCancelled -26038 |
|
63 #define KBrsrWpsaNoActiveTransactions -26067 |
|
64 #define KBrsrNoContentLength -26068 |
|
65 #define KBrsrTransactionCompete -26069 |
|
66 #define KBrsrWimiInvalidPin -26072 |
|
67 #define KBrsrWimiPinBlocked -26073 |
|
68 #define KBrsrWimiNoCard -26075 |
|
69 #define KBrsrWimiNoInit -26084 |
|
70 #define KBrsrWimiBadCert -26085 |
|
71 #define KBrsrWimiWimErr -26089 |
|
72 #define KBrsrWimiSessionNotSet -26090 |
|
73 #define KBrsrWimiCertNotFound -26091 |
|
74 #define KBrsrWimiKeyNotFound -26092 |
|
75 #define KBrsrWimiDuplicateCert -26093 |
|
76 #define KBrsrWtlsHandshakeFail -26102 |
|
77 #define KBrsrWtlsUnknowCertAuth -26110 |
|
78 #define KBrsrWtlsUcNotYetValid -26111 |
|
79 #define KBrsrWtlsUcExpired -26112 |
|
80 #define KBrsrWtlsUnsupCert -26114 |
|
81 #define KBrsrWtlsDecodeFail -26116 |
|
82 #define KBrsrScriptCardNotInDeck -26131 |
|
83 #define KBrsrScriptNoAccess -26132 |
|
84 #define KBrsrScriptBadContent -26133 |
|
85 #define KBrsrScriptErrorUserExit -26134 |
|
86 #define KBrsrScriptErrorUserAbort -26135 |
|
87 #define KBrsrScriptErrorStackUnderflow -26136 |
|
88 #define KBrsrScriptErrorStackOverflow -26137 |
|
89 #define KBrsrScriptFatalLibFuncError -26138 |
|
90 #define KBrsrScriptInvalidFuncArgs -26139 |
|
91 #define KBrsrScriptVerificationFailed -26140 |
|
92 #define KBrsrScriptExternalFunctionNotFound -26141 |
|
93 #define KBrsrScriptUnableToLoadCompilationUnit -26142 |
|
94 #define KBrsrScriptAccessViolation -26143 |
|
95 #define KBrsrWmlbrowserCardNotInDeck -26144 |
|
96 #define KBrsrWmlbrowserNoAccess -26145 |
|
97 #define KBrsrWmlbrowserBadContent -26146 |
|
98 #define KBrsrWmlbrowserBadContentType -26148 |
|
99 #define KBrsrWmlbrowserInputNonconformingToMask -26149 |
|
100 #define KBrsrWmlbrowserOnPickEx -26150 |
|
101 #define KBrsrXhtmlBadContent -26151 |
|
102 #define KBrsrCryptoUserCancel -26152 |
|
103 #define KBrsrCryptoNoCert -26153 |
|
104 #define KBrsrUnsupportedFormCharset -26156 |
|
105 #define KBrsrScrproxyScrAbort -26163 |
|
106 #define KBrsrScrproxyScrBusy -26164 |
|
107 #define KBrsrScrproxyScrNotResponding -26165 |
|
108 #define KBrsrWaeNavigationCancelled -26167 |
|
109 #define KBrsrConnCancelled -26172 |
|
110 #define KBrsrConnFailed -26173 |
|
111 #define KBrsrLmgrConstraintTooSmall -26189 |
|
112 #define KBrsrLmgrNotConstrained -26190 |
|
113 #define KBrsrLmgrFormatOverflow -26191 |
|
114 #define KBrsrLmgrSplitOk -26192 |
|
115 #define KBrsrLmgrNoSplit -26194 |
|
116 #define KBrsrLmgrNotClear -26196 |
|
117 #define KBrsrDomNoStringReturned -26199 |
|
118 #define KBrsrDomNodeTypeErr -26200 |
|
119 #define KBrsrDomNoValuePrefix -26201 |
|
120 #define KBrsrWbxmlErrorBytecode -26202 |
|
121 #define KBrsrWbxmlErrorCharsetUnsupported -26203 |
|
122 #define KBrsrHedNoCurrentHistEntry -26211 |
|
123 #define KBrsrHedNoPreviousHistEntry -26212 |
|
124 #define KBrsrHedNoNextHistEntry -26213 |
|
125 #define KBrsrHedContentDispatched -26215 |
|
126 #define KBrsrTcpHostUnreachable -26223 |
|
127 #define KBrsrSavedPageFailed -26224 |
|
128 #define KBrsrRestartParsing -26225 |
|
129 #define KBrsrMvcConverterNotFound -26226 |
|
130 #define KBrsrContinue -26227 |
|
131 #define KBrsrLastErrorCode -26999 |
|
132 |
|
133 // HTTP status codes |
|
134 #define KBrsrHTTP100 -25100 |
|
135 #define KBrsrHTTP101 -25101 |
|
136 #define KBrsrHTTP102 -25102 |
|
137 #define KBrsrHTTP200 -25200 |
|
138 #define KBrsrHTTP201 -25201 |
|
139 #define KBrsrHTTP202 -25202 |
|
140 #define KBrsrHTTP203 -25203 |
|
141 #define KBrsrHTTP204 -25204 |
|
142 #define KBrsrHTTP205 -25205 |
|
143 #define KBrsrHTTP206 -25206 |
|
144 #define KBrsrHTTP300 -25300 |
|
145 #define KBrsrHTTP301 -25301 |
|
146 #define KBrsrHTTP302 -25302 |
|
147 #define KBrsrHTTP303 -25303 |
|
148 #define KBrsrHTTP304 -25304 |
|
149 #define KBrsrHTTP305 -25305 |
|
150 #define KBrsrHTTP400 -25400 |
|
151 #define KBrsrHTTP401 -25401 |
|
152 #define KBrsrHTTP402 -25402 |
|
153 #define KBrsrHTTP403 -25403 |
|
154 #define KBrsrHTTP404 -25404 |
|
155 #define KBrsrHTTP405 -25405 |
|
156 #define KBrsrHTTP406 -25406 |
|
157 #define KBrsrHTTP407 -25407 |
|
158 #define KBrsrHTTP408 -25408 |
|
159 #define KBrsrHTTP409 -25409 |
|
160 #define KBrsrHTTP410 -25410 |
|
161 #define KBrsrHTTP411 -25411 |
|
162 #define KBrsrHTTP412 -25412 |
|
163 #define KBrsrHTTP413 -25413 |
|
164 #define KBrsrHTTP414 -25414 |
|
165 #define KBrsrHTTP415 -25415 |
|
166 #define KBrsrHTTP500 -25500 |
|
167 #define KBrsrHTTP501 -25501 |
|
168 #define KBrsrHTTP502 -25502 |
|
169 #define KBrsrHTTP503 -25503 |
|
170 #define KBrsrHTTP504 -25504 |
|
171 #define KBrsrHTTP505 -25505 |
|
172 |
|
173 |
|
174 #ifdef __cplusplus |
|
175 } /* extern "C" */ |
|
176 #endif |
|
177 |
|
178 #endif /* BRSR_STATUS_CODES_H */ |