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_ILOADRECIPIENT_H
|
|
19 |
#define NW_HED_ILOADRECIPIENT_H
|
|
20 |
|
|
21 |
#include "nw_object_interface.h"
|
|
22 |
#include "nw_Text_Abstract.h"
|
|
23 |
#include "nw_hed_urlrequest.h"
|
|
24 |
#include "urlloader_urlresponse.h"
|
|
25 |
#include "BrsrStatusCodes.h"
|
|
26 |
|
|
27 |
#ifdef __cplusplus
|
|
28 |
extern "C" {
|
|
29 |
#endif /* __cplusplus */
|
|
30 |
|
|
31 |
/* ------------------------------------------------------------------------- *
|
|
32 |
forward declarations
|
|
33 |
* ------------------------------------------------------------------------- */
|
|
34 |
typedef struct NW_HED_ILoadRecipient_Class_s NW_HED_ILoadRecipient_Class_t;
|
|
35 |
typedef struct NW_HED_ILoadRecipient_s NW_HED_ILoadRecipient_t;
|
|
36 |
|
|
37 |
/* ------------------------------------------------------------------------- *
|
|
38 |
method type prototypes
|
|
39 |
* ------------------------------------------------------------------------- */
|
|
40 |
typedef
|
|
41 |
TBrowserStatusCode
|
|
42 |
(*NW_HED_ILoadRecipient_ProcessPartialLoad_t) (NW_HED_ILoadRecipient_t* loadRecipient,
|
|
43 |
TBrowserStatusCode loadStatus,
|
|
44 |
NW_Uint16 transactionId,
|
|
45 |
NW_Int32 chunkIndex,
|
|
46 |
NW_Url_Resp_t* response,
|
|
47 |
NW_HED_UrlRequest_t* urlRequest,
|
|
48 |
void* clientData);
|
|
49 |
|
|
50 |
/* ------------------------------------------------------------------------- *
|
|
51 |
class definition
|
|
52 |
* ------------------------------------------------------------------------- */
|
|
53 |
typedef struct NW_HED_ILoadRecipient_ClassPart_s {
|
|
54 |
NW_HED_ILoadRecipient_ProcessPartialLoad_t processPartialLoad;
|
|
55 |
} NW_HED_ILoadRecipient_ClassPart_t;
|
|
56 |
|
|
57 |
struct NW_HED_ILoadRecipient_Class_s {
|
|
58 |
NW_Object_Core_ClassPart_t NW_Object_Core;
|
|
59 |
NW_Object_Interface_ClassPart_t NW_Object_Interface;
|
|
60 |
NW_HED_ILoadRecipient_ClassPart_t NW_HED_ILoadRecipient;
|
|
61 |
};
|
|
62 |
|
|
63 |
/* ------------------------------------------------------------------------- *
|
|
64 |
object definiton
|
|
65 |
* ------------------------------------------------------------------------- */
|
|
66 |
struct NW_HED_ILoadRecipient_s {
|
|
67 |
NW_Object_Interface_t super;
|
|
68 |
};
|
|
69 |
|
|
70 |
/* ------------------------------------------------------------------------- *
|
|
71 |
convenience macros
|
|
72 |
* ------------------------------------------------------------------------- */
|
|
73 |
#define NW_HED_ILoadRecipient_GetClassPart(_object) \
|
|
74 |
(NW_Object_GetClassPart (_object, NW_HED_ILoadRecipient))
|
|
75 |
|
|
76 |
#define NW_HED_ILoadRecipientOf(_object) \
|
|
77 |
(NW_Object_Cast (_object, NW_HED_ILoadRecipient))
|
|
78 |
|
|
79 |
/* ------------------------------------------------------------------------- *
|
|
80 |
global static data
|
|
81 |
* ------------------------------------------------------------------------- */
|
|
82 |
NW_HED_EXPORT const NW_Object_Core_Class_t NW_HED_ILoadRecipient_Class;
|
|
83 |
|
|
84 |
/* ------------------------------------------------------------------------- *
|
|
85 |
public methods
|
|
86 |
* ------------------------------------------------------------------------- */
|
|
87 |
#define NW_HED_ILoadRecipient_ProcessPartialLoad(_loadRecipient, _loadStatus, _transactionId, _chunkIndex, _response, _urlRequest, _clientData) \
|
|
88 |
(NW_Object_Invoke ((_loadRecipient), NW_HED_ILoadRecipient, processPartialLoad) \
|
|
89 |
((_loadRecipient), (_loadStatus), (_transactionId), (_chunkIndex), (_response), (_urlRequest), \
|
|
90 |
(_clientData)))
|
|
91 |
|
|
92 |
|
|
93 |
#ifdef __cplusplus
|
|
94 |
} // extern "C" {
|
|
95 |
#endif /* __cplusplus */
|
|
96 |
|
|
97 |
#endif /* NW_HED_ILOADRECIPIENT_H */
|