equal
deleted
inserted
replaced
25 #include <podcast.rsg> |
25 #include <podcast.rsg> |
26 #include "SettingsEngine.h" |
26 #include "SettingsEngine.h" |
27 |
27 |
28 #include <akncommondialogsdynmem.h> |
28 #include <akncommondialogsdynmem.h> |
29 #include <pathinfo.h> |
29 #include <pathinfo.h> |
|
30 #include <aknquerydialog.h> |
30 |
31 |
31 |
32 |
32 class CIapSetting: public CAknEnumeratedTextPopupSettingItem |
33 class CIapSetting: public CAknEnumeratedTextPopupSettingItem |
33 { |
34 { |
34 public: |
35 public: |
538 case EAknSoftkeyBack: |
539 case EAknSoftkeyBack: |
539 { |
540 { |
540 iListbox->StoreSettings(); |
541 iListbox->StoreSettings(); |
541 AppUi()->ActivateViewL(iPreviousView); |
542 AppUi()->ActivateViewL(iPreviousView); |
542 } |
543 } |
543 break; |
544 break; |
|
545 case EPodcastResetDb: |
|
546 CAknQueryDialog* dlg= new(ELeave) CAknQueryDialog(); |
|
547 |
|
548 CleanupStack::PushL(dlg); |
|
549 HBufC *text = iCoeEnv->AllocReadResourceLC(R_RESET_DB_QUERY); |
|
550 dlg->SetPromptL(*text); |
|
551 CleanupStack::PopAndDestroy(text); |
|
552 CleanupStack::Pop(dlg); |
|
553 if(dlg->ExecuteLD(R_QUERYDLG)) |
|
554 { |
|
555 iPodcastModel.DropDB(); |
|
556 AppUi()->Exit(); |
|
557 } |
|
558 break; |
544 default: |
559 default: |
545 AppUi()->HandleCommandL(aCommand); |
560 AppUi()->HandleCommandL(aCommand); |
546 break; |
561 break; |
547 } |
562 } |
548 } |
563 } |