application/src/PodcastSettingsView.cpp
branchsymbian1
changeset 164 000f9fc147b2
parent 65 bcd88ba95046
child 176 1c8b56cb6409
child 347 b8d687bb7ca1
equal deleted inserted replaced
161:ce4f70a6d1d2 164:000f9fc147b2
   541 		iListbox->StoreSettings();
   541 		iListbox->StoreSettings();
   542 		AppUi()->ActivateViewL(iPreviousView);
   542 		AppUi()->ActivateViewL(iPreviousView);
   543 		}
   543 		}
   544 		break;
   544 		break;
   545 	case EPodcastResetDb:
   545 	case EPodcastResetDb:
       
   546 		{
   546 		CAknQueryDialog* dlg= new(ELeave) CAknQueryDialog();
   547 		CAknQueryDialog* dlg= new(ELeave) CAknQueryDialog();
   547 		
   548 		
   548 		CleanupStack::PushL(dlg);
   549 		CleanupStack::PushL(dlg);
   549 		HBufC *text = iCoeEnv->AllocReadResourceLC(R_RESET_DB_QUERY);
   550 		HBufC *text = iCoeEnv->AllocReadResourceLC(R_RESET_DB_QUERY);
   550 		dlg->SetPromptL(*text);
   551 		dlg->SetPromptL(*text);
   553 		if(dlg->ExecuteLD(R_QUERYDLG))
   554 		if(dlg->ExecuteLD(R_QUERYDLG))
   554 			{
   555 			{
   555 			iPodcastModel.DropDB();
   556 			iPodcastModel.DropDB();
   556 			AppUi()->Exit();
   557 			AppUi()->Exit();
   557 			}
   558 			}
       
   559 		}
   558 		break;
   560 		break;
   559 	default:
   561 	default:
       
   562 		{
   560 		AppUi()->HandleCommandL(aCommand);
   563 		AppUi()->HandleCommandL(aCommand);
       
   564 		}
   561 		break;
   565 		break;
   562 	}
   566 	}
   563 }
   567 }
   564 
   568 
   565 void CPodcastSettingsView::HandleStatusPaneSizeChange()
   569 void CPodcastSettingsView::HandleStatusPaneSizeChange()