379 switch(aSettingId) |
379 switch(aSettingId) |
380 { |
380 { |
381 case EPodcastSettingShowDir: |
381 case EPodcastSettingShowDir: |
382 DP("EPodcastSettingShowDir"); |
382 DP("EPodcastSettingShowDir"); |
383 return new (ELeave) CAknTextSettingItem(aSettingId, iShowDir); |
383 return new (ELeave) CAknTextSettingItem(aSettingId, iShowDir); |
384 break; |
|
385 case EPodcastSettingAutoUpdate: |
384 case EPodcastSettingAutoUpdate: |
386 DP("EPodcastSettingAutoUpdate"); |
385 DP("EPodcastSettingAutoUpdate"); |
387 iSettingAutoUpdate = new (ELeave) CAknEnumeratedTextPopupSettingItem(aSettingId, iAutoUpdate); |
386 iSettingAutoUpdate = new (ELeave) CAknEnumeratedTextPopupSettingItem(aSettingId, iAutoUpdate); |
388 return iSettingAutoUpdate; |
387 return iSettingAutoUpdate; |
389 break; |
|
390 case EPodcastSettingConnection: |
388 case EPodcastSettingConnection: |
391 DP("EPodcastSettingConnection"); |
389 DP("EPodcastSettingConnection"); |
392 return new (ELeave) CConnectionSetting (aSettingId, iConnection, iPodcastModel); |
390 return new (ELeave) CConnectionSetting (aSettingId, iConnection, iPodcastModel); |
393 break; |
|
394 case EPodcastSettingIAPList: |
391 case EPodcastSettingIAPList: |
395 DP("EPodcastSettingIAPList"); |
392 DP("EPodcastSettingIAPList"); |
396 iSettingIAP = new (ELeave) CIapSetting (aSettingId, iIap, iPodcastModel); |
393 iSettingIAP = new (ELeave) CIapSetting (aSettingId, iIap, iPodcastModel); |
397 return iSettingIAP; |
394 return iSettingIAP; |
398 break; |
|
399 case EPodcastSettingAutoDownload: |
395 case EPodcastSettingAutoDownload: |
400 DP("EPodcastSettingAutoDownload"); |
396 DP("EPodcastSettingAutoDownload"); |
401 iSettingAutoDownload = new (ELeave) CAknBinaryPopupSettingItem (aSettingId, iAutoDownload); |
397 iSettingAutoDownload = new (ELeave) CAknBinaryPopupSettingItem (aSettingId, iAutoDownload); |
402 return iSettingAutoDownload; |
398 return iSettingAutoDownload; |
403 break; |
|
404 default: |
399 default: |
405 return CAknSettingItemList::CreateSettingItemL(aSettingId); |
400 return CAknSettingItemList::CreateSettingItemL(aSettingId); |
406 break; |
401 } |
407 } |
402 //DP("CreateSettingItemL END"); |
408 DP("CreateSettingItemL END"); |
403 //return NULL; |
409 return NULL; |
|
410 } |
404 } |
411 |
405 |
412 TFileName iShowDir; |
406 TFileName iShowDir; |
413 |
407 |
414 TInt iAutoUpdate; |
408 TInt iAutoUpdate; |
541 iListbox->StoreSettings(); |
535 iListbox->StoreSettings(); |
542 AppUi()->ActivateViewL(iPreviousView); |
536 AppUi()->ActivateViewL(iPreviousView); |
543 } |
537 } |
544 break; |
538 break; |
545 case EPodcastResetDb: |
539 case EPodcastResetDb: |
|
540 { |
546 CAknQueryDialog* dlg= new(ELeave) CAknQueryDialog(); |
541 CAknQueryDialog* dlg= new(ELeave) CAknQueryDialog(); |
547 |
542 |
548 CleanupStack::PushL(dlg); |
543 CleanupStack::PushL(dlg); |
549 HBufC *text = iCoeEnv->AllocReadResourceLC(R_RESET_DB_QUERY); |
544 HBufC *text = iCoeEnv->AllocReadResourceLC(R_RESET_DB_QUERY); |
550 dlg->SetPromptL(*text); |
545 dlg->SetPromptL(*text); |