94
|
1 |
/*
|
|
2 |
* Copyright (c) 2000 - 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 |
#ifndef NW_HED_ERRORCONTENTHANDLER_H
|
|
19 |
#define NW_HED_ERRORCONTENTHANDLER_H
|
|
20 |
|
|
21 |
#include "nw_hed_contenthandler.h"
|
|
22 |
#include "nw_text_ucs2.h"
|
|
23 |
#include "urlloader_urlresponse.h"
|
|
24 |
#include "BrsrStatusCodes.h"
|
|
25 |
|
|
26 |
#ifdef __cplusplus
|
|
27 |
extern "C" {
|
|
28 |
#endif /* __cplusplus */
|
|
29 |
|
|
30 |
/* ------------------------------------------------------------------------- */
|
|
31 |
typedef struct NW_HED_ErrorContentHandler_Class_s NW_HED_ErrorContentHandler_Class_t;
|
|
32 |
typedef struct NW_HED_ErrorContentHandler_s NW_HED_ErrorContentHandler_t;
|
|
33 |
|
|
34 |
/* ------------------------------------------------------------------------- */
|
|
35 |
typedef struct NW_HED_ErrorContentHandler_ClassPart_s {
|
|
36 |
NW_Uint8 foo;
|
|
37 |
} NW_HED_ErrorContentHandler_ClassPart_t;
|
|
38 |
|
|
39 |
struct NW_HED_ErrorContentHandler_Class_s {
|
|
40 |
NW_Object_Core_ClassPart_t NW_Object_Core;
|
|
41 |
NW_Object_Base_ClassPart_t NW_Object_Base;
|
|
42 |
NW_Object_Dynamic_ClassPart_t NW_Object_Dynamic;
|
|
43 |
NW_HED_DocumentNode_ClassPart_t NW_HED_DocumentNode;
|
|
44 |
NW_HED_ContentHandler_ClassPart_t NW_HED_ContentHandler;
|
|
45 |
NW_HED_ErrorContentHandler_ClassPart_t NW_HED_ErrorContentHandler;
|
|
46 |
};
|
|
47 |
|
|
48 |
/* ------------------------------------------------------------------------- */
|
|
49 |
struct NW_HED_ErrorContentHandler_s {
|
|
50 |
NW_HED_ContentHandler_t super;
|
|
51 |
|
|
52 |
/* member variables */
|
|
53 |
NW_Text_t* title;
|
|
54 |
TBrowserStatusCode status;
|
|
55 |
NW_Uint8 wsp_status; /* encoded HTTP return status */
|
|
56 |
|
|
57 |
};
|
|
58 |
|
|
59 |
/* ------------------------------------------------------------------------- */
|
|
60 |
#define NW_HED_ErrorContentHandler_GetClassPart(_object) \
|
|
61 |
(NW_Object_GetClassPart (_object, NW_HED_ErrorContentHandler))
|
|
62 |
|
|
63 |
#define NW_HED_ErrorContentHandlerOf(_object) \
|
|
64 |
(NW_Object_Cast (_object, NW_HED_ErrorContentHandler))
|
|
65 |
|
|
66 |
/* ------------------------------------------------------------------------- */
|
|
67 |
NW_HED_EXPORT const NW_HED_ErrorContentHandler_Class_t NW_HED_ErrorContentHandler_Class;
|
|
68 |
|
|
69 |
/* ------------------------------------------------------------------------- */
|
|
70 |
NW_HED_EXPORT
|
|
71 |
NW_HED_ErrorContentHandler_t*
|
|
72 |
NW_HED_ErrorContentHandler_New (NW_HED_DocumentNode_t* parent,
|
|
73 |
NW_HED_UrlRequest_t* urlRequest,
|
|
74 |
TBrowserStatusCode status,
|
|
75 |
NW_Uint8 wsp_status);
|
|
76 |
|
|
77 |
#ifdef __cplusplus
|
|
78 |
} // extern "C" {
|
|
79 |
#endif /* __cplusplus */
|
|
80 |
|
|
81 |
#endif /* NW_HED_ERRORCONTENTHANDLER_H */
|