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_URLRESPONSE_H
|
|
19 |
#define NW_HED_URLRESPONSE_H
|
|
20 |
|
|
21 |
#include "nw_object_dynamic.h"
|
|
22 |
#include "nw_adt_dynamicvector.h"
|
|
23 |
#include "nw_text_abstract.h"
|
|
24 |
#include "urlloader_urlresponse.h"
|
|
25 |
#include "nw_hed_export.h"
|
|
26 |
#include "BrsrStatusCodes.h"
|
|
27 |
|
|
28 |
#ifdef __cplusplus
|
|
29 |
extern "C" {
|
|
30 |
#endif /* __cplusplus */
|
|
31 |
|
|
32 |
/* ------------------------------------------------------------------------- *
|
|
33 |
forward declarations
|
|
34 |
* ------------------------------------------------------------------------- */
|
|
35 |
typedef struct NW_HED_UrlResponse_Class_s NW_HED_UrlResponse_Class_t;
|
|
36 |
typedef struct NW_HED_UrlResponse_s NW_HED_UrlResponse_t;
|
|
37 |
|
|
38 |
/* ------------------------------------------------------------------------- *
|
|
39 |
class definition
|
|
40 |
* ------------------------------------------------------------------------- */
|
|
41 |
typedef struct NW_HED_UrlResponse_ClassPart_s {
|
|
42 |
void** unused;
|
|
43 |
} NW_HED_UrlResponse_ClassPart_t;
|
|
44 |
|
|
45 |
struct NW_HED_UrlResponse_Class_s {
|
|
46 |
NW_Object_Core_ClassPart_t NW_Object_Core;
|
|
47 |
NW_Object_Base_ClassPart_t NW_Object_Base;
|
|
48 |
NW_Object_Dynamic_ClassPart_t NW_Object_Dynamic;
|
|
49 |
NW_HED_UrlResponse_ClassPart_t NW_HED_UrlResponse;
|
|
50 |
};
|
|
51 |
|
|
52 |
/* ------------------------------------------------------------------------- *
|
|
53 |
object definiton
|
|
54 |
* ------------------------------------------------------------------------- */
|
|
55 |
struct NW_HED_UrlResponse_s {
|
|
56 |
NW_Object_Dynamic_t super;
|
|
57 |
|
|
58 |
/* member variables */
|
|
59 |
NW_Text_t* url;
|
|
60 |
|
|
61 |
NW_Ucs2* rawUrl;
|
|
62 |
NW_Uint8 ownRawUrl;
|
|
63 |
};
|
|
64 |
|
|
65 |
/* ------------------------------------------------------------------------- *
|
|
66 |
convenience macros
|
|
67 |
* ------------------------------------------------------------------------- */
|
|
68 |
#define NW_HED_UrlResponse_GetClassPart(_object) \
|
|
69 |
(NW_Object_GetClassPart (_object, NW_HED_UrlResponse))
|
|
70 |
|
|
71 |
#define NW_HED_UrlResponseOf(_object) \
|
|
72 |
(NW_Object_Cast (_object, NW_HED_UrlResponse))
|
|
73 |
|
|
74 |
/* ------------------------------------------------------------------------- *
|
|
75 |
global static data
|
|
76 |
* ------------------------------------------------------------------------- */
|
|
77 |
NW_HED_EXPORT const NW_HED_UrlResponse_Class_t NW_HED_UrlResponse_Class;
|
|
78 |
|
|
79 |
/* ------------------------------------------------------------------------- *
|
|
80 |
public methods
|
|
81 |
* ------------------------------------------------------------------------- */
|
|
82 |
|
|
83 |
/* ------------------------------------------------------------------------- *
|
|
84 |
convenience functions
|
|
85 |
* ------------------------------------------------------------------------- */
|
|
86 |
NW_HED_EXPORT
|
|
87 |
NW_HED_UrlResponse_t*
|
|
88 |
NW_HED_UrlResponse_New (const NW_Url_Resp_t* response);
|
|
89 |
|
|
90 |
NW_HED_EXPORT
|
|
91 |
const NW_Text_t*
|
|
92 |
NW_HED_UrlResponse_GetUrl (const NW_HED_UrlResponse_t* thisObj);
|
|
93 |
|
|
94 |
NW_HED_EXPORT
|
|
95 |
const NW_Ucs2*
|
|
96 |
NW_HED_UrlResponse_GetRawUrl (const NW_HED_UrlResponse_t* thisObj);
|
|
97 |
|
|
98 |
NW_HED_EXPORT
|
|
99 |
TBrowserStatusCode
|
|
100 |
NW_HED_UrlResponse_UpdateUrl (NW_HED_UrlResponse_t* thisObj, const NW_Text_t* newUrl);
|
|
101 |
|
|
102 |
NW_HED_EXPORT
|
|
103 |
NW_Bool
|
|
104 |
NW_HED_UrlResponse_Equal (const NW_HED_UrlResponse_t* urlResponse1,
|
|
105 |
const NW_HED_UrlResponse_t* urlResponse2);
|
|
106 |
|
|
107 |
NW_HED_EXPORT
|
|
108 |
NW_HED_UrlResponse_t*
|
|
109 |
NW_HED_UrlResponse_Clone (const NW_HED_UrlResponse_t* thisObj);
|
|
110 |
|
|
111 |
#ifdef __cplusplus
|
|
112 |
} // extern "C" {
|
|
113 |
#endif /* __cplusplus */
|
|
114 |
|
|
115 |
#endif /* NW_HED_URLRESPONSE_H */
|