equal
deleted
inserted
replaced
164 // Handles the auto update freuency modification commands |
164 // Handles the auto update freuency modification commands |
165 // --------------------------------------------------------- |
165 // --------------------------------------------------------- |
166 // |
166 // |
167 void CFeedsEditFeedDialog::HandleFreqCmdL() |
167 void CFeedsEditFeedDialog::HandleFreqCmdL() |
168 { |
168 { |
169 TBuf<32> title(_L("Auto update")); |
|
170 TInt currentlySelected = KAutoUpdatingOff; |
169 TInt currentlySelected = KAutoUpdatingOff; |
171 |
170 |
172 // options array |
171 // options array |
173 CDesCArrayFlat* values = new( ELeave )CDesCArrayFlat(1); |
172 CDesCArrayFlat* values = new( ELeave )CDesCArrayFlat(1); |
174 |
173 |
217 case KWeek: |
216 case KWeek: |
218 currentlySelected = EFeedsEditAutomaticUpdatingWeekly; |
217 currentlySelected = EFeedsEditAutomaticUpdatingWeekly; |
219 break; |
218 break; |
220 } |
219 } |
221 |
220 |
222 currentlySelected = ShowRadioButtonSettingPageL(title,values,currentlySelected); |
221 HBufC* title; |
|
222 title=iCoeEnv->AllocReadResourceLC(R_FEEDS_AUTOUPDATING_FEED); |
|
223 currentlySelected = ShowRadioButtonSettingPageL(*title,values,currentlySelected); |
|
224 CleanupStack::PopAndDestroy(); // title |
223 |
225 |
224 if(!iActionCancelled) |
226 if(!iActionCancelled) |
225 { |
227 { |
226 switch(currentlySelected) |
228 switch(currentlySelected) |
227 { |
229 { |
426 (iFreq != EFeedsEditAutomaticUpdatingOff) && (iPreviousFreq != iFreq)) |
428 (iFreq != EFeedsEditAutomaticUpdatingOff) && (iPreviousFreq != iFreq)) |
427 { |
429 { |
428 HBufC* note = StringLoader::LoadLC( R_FEEDS_DATAQUERY_AUTOUPDATEWARN ); |
430 HBufC* note = StringLoader::LoadLC( R_FEEDS_DATAQUERY_AUTOUPDATEWARN ); |
429 if(iPreviousFreq == 0) |
431 if(iPreviousFreq == 0) |
430 { |
432 { |
431 // ShowInfoDialogwithOkSoftKeyL( note->Des() ); |
433 ShowInfoDialogwithOkSoftKeyL(note->Des()); |
432 ShowInfoDialogwithOkSoftKeyL( _L("Enabling automatic updating may increase your monthly phone bill") ); |
|
433 } |
434 } |
434 CleanupStack::PopAndDestroy(); // note |
435 CleanupStack::PopAndDestroy(); // note |
435 iPreviousFreq = iFreq; |
436 iPreviousFreq = iFreq; |
436 } |
437 } |
437 iObserver.UpdateFeedL(*name, *url, iFreq); |
438 iObserver.UpdateFeedL(*name, *url, iFreq); |