|
1 /* |
|
2 * Copyright (c) 1999 - 2001 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 /*************************************************************************** |
|
20 ** File: nw_errnotify.h |
|
21 ** Subsystem Name: nwx_wae |
|
22 ** Purpose: Provides interface to Errors |
|
23 **************************************************************************/ |
|
24 #ifndef NW_ERRNOTIFY_H |
|
25 #define NW_ERRNOTIFY_H |
|
26 |
|
27 #ifdef __cplusplus |
|
28 extern "C" { |
|
29 #endif |
|
30 |
|
31 #include "nwx_defs.h" |
|
32 /* |
|
33 ** Includes |
|
34 */ |
|
35 |
|
36 /* |
|
37 ** Type Declarations |
|
38 */ |
|
39 typedef struct _NW_ErrorApi_t NW_ErrorApi_t; |
|
40 |
|
41 /* The callback to call when done displaying a error dialog */ |
|
42 typedef TBrowserStatusCode (NW_ErrorCB_t)(void *callback_ctx, |
|
43 TBrowserStatusCode status); |
|
44 |
|
45 typedef TBrowserStatusCode (*NW_NotifyError_t) (void *wae, const TBrowserStatusCode status, |
|
46 void *callback_ctx, |
|
47 NW_ErrorCB_t *callback); |
|
48 |
|
49 typedef TBrowserStatusCode (*NW_HttpError_t) (void *wae, const NW_WaeHttpStatus_t httpError, |
|
50 const NW_Ucs2 *uri, |
|
51 void *callback_ctx, |
|
52 NW_ErrorCB_t *callback); |
|
53 |
|
54 |
|
55 struct _NW_ErrorApi_t { |
|
56 /* notify the user that an error has occured */ |
|
57 NW_NotifyError_t notifyError; |
|
58 NW_HttpError_t httpError; |
|
59 }; |
|
60 |
|
61 #ifdef __cplusplus |
|
62 } /* extern "C" */ |
|
63 #endif |
|
64 |
|
65 #endif /* NW_ERRNOTIFY_H */ |