|
1 /* |
|
2 * Copyright (c) 2002-2005 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: header file for implementation of save url functionality |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef AIWBROWSERPROVIDERSAVEURL_H |
|
20 #define AIWBROWSERPROVIDERSAVEURL_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <AiwServiceIfMenu.h> |
|
24 |
|
25 // CLASS DECLARATION |
|
26 |
|
27 /** |
|
28 * Class which solves the save url functionality. |
|
29 * |
|
30 * @since Series 60 3.1 |
|
31 */ |
|
32 |
|
33 class CAiwBrowserProviderSaveUrl : public CAiwServiceIfMenu |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * Two-phased constructor. |
|
38 */ |
|
39 static CAiwBrowserProviderSaveUrl* NewL(); |
|
40 /** |
|
41 * Destructor. |
|
42 */ |
|
43 ~CAiwBrowserProviderSaveUrl(); |
|
44 // New functions |
|
45 private: // From CAiwServiceIfMenu |
|
46 /** |
|
47 * Input prompt dialog used by Search and Home page features library |
|
48 * @since Series 60 3.1 |
|
49 * @param aMsg prompt message |
|
50 * @param aResp entered text |
|
51 * @param aMaxLength maximum length allowed in editor |
|
52 * @param aLowerCase use lower case in editor or not |
|
53 * @return AVKON error code |
|
54 */ |
|
55 TInt DialogPromptReqL( const TDesC& aMsg, |
|
56 TDes* aResp, |
|
57 TBool aLowerCase, |
|
58 TInt aMaxLength = 0 ); |
|
59 /** |
|
60 * Display an information note with no buttons. |
|
61 * @since Series 60 3.1 |
|
62 * @param aDialogResourceId Resource id of note to display. |
|
63 * Available notes: R_WMLBROWSER_OK_NOTE (check mark animation); |
|
64 * R_WMLBROWSER_INFO_NOTE (info mark animation). |
|
65 * @param aPromptResourceId Resource id of the prompt. |
|
66 */ |
|
67 static void InfoNoteL |
|
68 ( TInt aDialogResourceId, const TInt aPromptResourceId ); |
|
69 |
|
70 /** |
|
71 * Display an error note with buttons Ok - <empty>. |
|
72 * @since Series 60 3.1 |
|
73 * @param aPromptResourceId Resource id of the prompt (not the |
|
74 * dialog!). |
|
75 */ |
|
76 static void ErrorNoteL( const TInt aPromptResourceId ); |
|
77 |
|
78 private: // From CAiwServiceIfMenu |
|
79 /** |
|
80 * init |
|
81 * @since Series 60 3.1 |
|
82 * @param all defined in aiw framework |
|
83 * @return none |
|
84 */ |
|
85 void InitialiseL(MAiwNotifyCallback& aFrameworkCallback, |
|
86 const RCriteriaArray& aInterest); |
|
87 |
|
88 /** |
|
89 * Handles service commands |
|
90 * @since Series 60 3.1 |
|
91 * @param all defined in aiw framework |
|
92 * @return none |
|
93 */ |
|
94 void HandleServiceCmdL(const TInt& aCmdId, |
|
95 const CAiwGenericParamList& aInParamList, |
|
96 CAiwGenericParamList& aOutParamList, |
|
97 TUint aCmdOptions = 0, |
|
98 const MAiwNotifyCallback* aCallback = NULL); |
|
99 /** |
|
100 * initializes menupane objects |
|
101 * @since Series 60 3.1 |
|
102 * @param menupane |
|
103 * @param index |
|
104 * @param cascade id |
|
105 * @param parameter list |
|
106 * @return none |
|
107 */ |
|
108 void InitializeMenuPaneL(CAiwMenuPane& aMenuPane, |
|
109 TInt aIndex, |
|
110 TInt aCascadeId, |
|
111 const CAiwGenericParamList& aInParamList); |
|
112 /** |
|
113 * Handles menu commands |
|
114 * @since Series 60 3.1 |
|
115 * @param menu command id |
|
116 * @param in parameter list |
|
117 * @param out parameter list |
|
118 * @param command options |
|
119 * @param callback |
|
120 * @return none |
|
121 */ |
|
122 void HandleMenuCmdL(TInt aMenuCmdId, |
|
123 const CAiwGenericParamList& aInParamList, |
|
124 CAiwGenericParamList& aOutParamList, |
|
125 TUint aCmdOptions = 0, |
|
126 const MAiwNotifyCallback* aCallback = NULL); |
|
127 |
|
128 private: // Implementation |
|
129 /** |
|
130 * constructor |
|
131 * @since Series 60 3.1 |
|
132 * @param none |
|
133 * @return none |
|
134 */ |
|
135 CAiwBrowserProviderSaveUrl(); |
|
136 /** |
|
137 * constructl |
|
138 * @since Series 60 3.1 |
|
139 * @param none |
|
140 * @return none |
|
141 */ |
|
142 void ConstructL(); |
|
143 /** |
|
144 * Saves url |
|
145 * @since Series 60 3.1 |
|
146 * @param url to save |
|
147 * @param name of the bookmark |
|
148 * @param username |
|
149 * @param password |
|
150 * @param access point id |
|
151 * @return none |
|
152 */ |
|
153 void SaveUrlL( const TDesC& aUrl, |
|
154 const TDesC& aName, |
|
155 const TDesC& aUserName, |
|
156 const TDesC& aPassword, |
|
157 const TUint32 aApId ); |
|
158 |
|
159 private: // Data |
|
160 TInt iResourceOffset; |
|
161 MAiwNotifyCallback* iNotifyCallback; |
|
162 const RCriteriaArray* iInterest; |
|
163 }; |
|
164 |
|
165 #endif // __CAiwBrowserProviderSaveUrl_H__ |