94
|
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 |
#ifndef NW_HED_DOM_TREE_H
|
|
20 |
#define NW_HED_DOM_TREE_H
|
|
21 |
|
|
22 |
#include "nwx_http_header.h"
|
|
23 |
#include "nwx_buffer.h"
|
|
24 |
|
|
25 |
#include <nw_dom_node.h>
|
|
26 |
|
|
27 |
#ifdef __cplusplus
|
|
28 |
extern "C" {
|
|
29 |
#endif /* __cplusplus */
|
|
30 |
|
|
31 |
|
|
32 |
/* ------------------------------------------------------------------------- *
|
|
33 |
public data types
|
|
34 |
* ------------------------------------------------------------------------- */
|
|
35 |
|
|
36 |
typedef struct NW_HED_DomTree_s NW_HED_DomTree_t;
|
|
37 |
|
|
38 |
|
|
39 |
/* ------------------------------------------------------------------------- *
|
|
40 |
public methods
|
|
41 |
* ------------------------------------------------------------------------- */
|
|
42 |
|
|
43 |
NW_HED_DomTree_t* NW_HED_DomTree_New (NW_Buffer_t* domBuffer,
|
|
44 |
NW_Http_CharSet_t charset,
|
|
45 |
NW_Uint32 defaultPublicId,
|
|
46 |
void* WBXMLEncStrTbl);
|
|
47 |
|
|
48 |
TBrowserStatusCode NW_HED_DomTree_Append (NW_HED_DomTree_t** ppDomTree,
|
|
49 |
NW_Buffer_t* domBuffer,
|
|
50 |
NW_Http_CharSet_t charset,
|
|
51 |
NW_Uint32 defaultPublicId,
|
|
52 |
NW_Uint32 cp_count,
|
|
53 |
NW_Int32 lastValid,
|
|
54 |
void* WBXMLEncStrTbl);
|
|
55 |
|
|
56 |
void NW_HED_DomTree_Delete (NW_HED_DomTree_t* thisObj);
|
|
57 |
|
|
58 |
NW_DOM_Node_t* NW_HED_DomTree_GetRootNode (const NW_HED_DomTree_t* thisObj);
|
|
59 |
|
|
60 |
NW_Uint32 NW_HED_DomTree_GetPublicId (const NW_HED_DomTree_t* thisObj);
|
|
61 |
|
|
62 |
NW_Uint8 NW_HED_DomTree_GetVersion (const NW_HED_DomTree_t* thisObj);
|
|
63 |
|
|
64 |
NW_Uint32 NW_HED_DomTree_GetCharEncoding (const NW_HED_DomTree_t* thisObj);
|
|
65 |
|
|
66 |
NW_Buffer_t* NW_HED_DomTree_GetDomBuffer (const NW_HED_DomTree_t* thisObj);
|
|
67 |
|
|
68 |
NW_Buffer_t* NW_HED_DomTree_OrphanDomBuffer (NW_HED_DomTree_t* thisObj);
|
|
69 |
|
|
70 |
#ifdef __cplusplus
|
|
71 |
} // extern "C" {
|
|
72 |
#endif /* __cplusplus */
|
|
73 |
|
|
74 |
#endif /* NW_HED_DOM_TREE_H */
|