|
1 /* |
|
2 * Copyright (c) 2003 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: Callback classes from Link resolver to the UI and back |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MLINKRESOLVERCALLBACKS_H |
|
21 #define MLINKRESOLVERCALLBACKS_H |
|
22 |
|
23 |
|
24 #include "BrsrStatusCodes.h" |
|
25 #include "BrCtlDefs.h" |
|
26 #include "urlloader_urlresponse.h" |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 // INCLUDES |
|
32 |
|
33 // CONSTANTS |
|
34 |
|
35 // MACROS |
|
36 |
|
37 // DATA TYPES |
|
38 |
|
39 // FUNCTION PROTOTYPES |
|
40 |
|
41 // FORWARD DECLARATIONS |
|
42 |
|
43 // CLASS DECLARATION |
|
44 class MBrCtlLinkResolver; |
|
45 class CWmlResourceLoadListener; |
|
46 |
|
47 /** |
|
48 * Callback class for requests to the UI from Link Resolver. |
|
49 * |
|
50 * @lib httploader.lib |
|
51 * @since 2.0 |
|
52 */ |
|
53 class MHttpLoader_LinkResolverCallbacks |
|
54 { |
|
55 |
|
56 public: // New functions |
|
57 |
|
58 /** |
|
59 * Called to obtain the current URL. |
|
60 * @since 2.8 |
|
61 * @param |
|
62 * @return The current URL |
|
63 */ |
|
64 virtual HBufC* CurrentUrlLC() = 0; |
|
65 |
|
66 /** |
|
67 * Called to obtain a pointer to the Link Resolver |
|
68 * @since 2.8 |
|
69 * @return The Browser Control's Link Resolver |
|
70 */ |
|
71 virtual MBrCtlLinkResolver* LinkResolver() = 0; |
|
72 |
|
73 |
|
74 /** |
|
75 * Called to check if the Host Application should be called to resolve the URL |
|
76 * @since 2.8 |
|
77 * @return ETrue if the Host Application will resolve the URL, EFalse otherwise |
|
78 */ |
|
79 virtual TBool ShouldResolveUrl(TBool aIsTopLevel, NW_Uint8 aReason) = 0; |
|
80 |
|
81 /** |
|
82 * Called to Load Url to resolve the URL |
|
83 * @since 3.1 |
|
84 * @return |
|
85 */ |
|
86 virtual void LoadLinkUrl(const TDesC& aUrl, void* aHeaders ) = 0; |
|
87 |
|
88 /** |
|
89 * Called to Load Url to resolve the URL |
|
90 * @since 3.1 |
|
91 * @return |
|
92 */ |
|
93 virtual void PostLinkUrl(TDesC& aUrl, TDesC8& aPostData, TDesC& aContentType) = 0; |
|
94 |
|
95 /** |
|
96 * Called to Load Ebbeded content |
|
97 * @since 3.1 |
|
98 * @return |
|
99 */ |
|
100 virtual CWmlResourceLoadListener* LoadEmbededUrl( const TDesC& aUrl, void *aLoadContext, |
|
101 void* aPartialLoadCallback, TUint16 aTransId ) = 0; |
|
102 |
|
103 /** |
|
104 * Called to set the ONENTERBACKWORD event |
|
105 * @since 3.1 |
|
106 * @return void |
|
107 */ |
|
108 virtual void SetOnEnterBackwordReason() = 0; |
|
109 |
|
110 /** |
|
111 * Convert a charset from string to IANA encoding |
|
112 * @since 2.8 |
|
113 * @return IANA encoding of the charset |
|
114 */ |
|
115 virtual TUint16 ConvertCharset(const TDesC8& aCharset) = 0; |
|
116 |
|
117 }; |
|
118 |
|
119 #endif // MLINKRESOLVERCALLBACKS_H |
|
120 |
|
121 // End of File |