122 delete iParameters; |
122 delete iParameters; |
123 } |
123 } |
124 |
124 |
125 //---------------------------------------------------------------------------- |
125 //---------------------------------------------------------------------------- |
126 |
126 |
127 TBool CCreatorBrowser::AskDataFromUserL(TInt aCommand, TInt& aNumberOfEntries) |
127 TBool CCreatorBrowser::AskDataFromUserL(TInt aCommand) |
128 { |
128 { |
129 LOGSTRING("Creator: CCreatorBrowser::AskDataFromUserL"); |
129 LOGSTRING("Creator: CCreatorBrowser::AskDataFromUserL"); |
130 |
130 |
|
131 CCreatorModuleBase::AskDataFromUserL( aCommand );//ignore retval |
|
132 |
131 TBool result( EFalse ); |
133 TBool result( EFalse ); |
132 switch ( aCommand ) |
134 switch ( aCommand ) |
133 { |
135 { |
134 case ECmdDeleteBrowserBookmarks: |
136 case ECmdDeleteBrowserBookmarks: |
135 { |
137 { |
136 result = iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Browser bookmarks?") ); |
138 result = iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Browser bookmarks?"), this, ECreatorModuleDelete ); |
137 break; |
139 break; |
138 } |
140 } |
139 case ECmdDeleteCreatorBrowserBookmarks: |
141 case ECmdDeleteCreatorBrowserBookmarks: |
140 { |
142 { |
141 result = iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Browser bookmarks created with Creator?") ); |
143 result = iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Browser bookmarks created with Creator?"), this, ECreatorModuleDelete ); |
142 break; |
144 break; |
143 } |
145 } |
144 case ECmdDeleteBrowserBookmarkFolders: |
146 case ECmdDeleteBrowserBookmarkFolders: |
145 { |
147 { |
146 result = iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Browser bookmark folders?") ); |
148 result = iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Browser bookmark folders?"), this, ECreatorModuleDelete ); |
147 break; |
149 break; |
148 } |
150 } |
149 case ECmdDeleteCreatorBrowserBookmarkFolders: |
151 case ECmdDeleteCreatorBrowserBookmarkFolders: |
150 { |
152 { |
151 result = iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Browser bookmark folders created with Creator?") ); |
153 result = iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Browser bookmark folders created with Creator?"), this, ECreatorModuleDelete ); |
152 break; |
154 break; |
153 } |
155 } |
154 case ECmdDeleteBrowserSavedPages: |
156 case ECmdDeleteBrowserSavedPages: |
155 { |
157 { |
156 result = iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Browser saved pages?") ); |
158 result = iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Browser saved pages?"), this, ECreatorModuleDelete ); |
157 break; |
159 break; |
158 } |
160 } |
159 case ECmdDeleteCreatorBrowserSavedPages: |
161 case ECmdDeleteCreatorBrowserSavedPages: |
160 { |
162 { |
161 result = iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Browser saved pages created with Creator?") ); |
163 result = iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Browser saved pages created with Creator?"), this, ECreatorModuleDelete ); |
162 break; |
164 break; |
163 } |
165 } |
164 case ECmdDeleteBrowserSavedPageFolders: |
166 case ECmdDeleteBrowserSavedPageFolders: |
165 { |
167 { |
166 result = iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Browser saved pages folders?") ); |
168 result = iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Browser saved pages folders?"), this, ECreatorModuleDelete ); |
167 break; |
169 break; |
168 } |
170 } |
169 case ECmdDeleteCreatorBrowserSavedPageFolders: |
171 case ECmdDeleteCreatorBrowserSavedPageFolders: |
170 { |
172 { |
171 result = iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Browser saved pages folders created with Creator?") ); |
173 result = iEngine->GetEngineWrapper()->YesNoQueryDialog( _L("Delete all Browser saved pages folders created with Creator?"), this, ECreatorModuleDelete ); |
172 break; |
174 break; |
173 } |
175 } |
174 default: |
176 default: |
175 { |
177 { |
176 result = iEngine->GetEngineWrapper()->EntriesQueryDialog(aNumberOfEntries, _L("How many entries to create?")); |
178 result = iEngine->GetEngineWrapper()->EntriesQueryDialog(&iEntriesToBeCreated, _L("How many entries to create?"), EFalse, this, ECreatorModuleStart ); |
177 break; |
179 break; |
178 } |
180 } |
179 } |
181 } |
180 return result; |
182 return result; |
181 } |
183 } |