calendarui/controller/src/calendeleteui.cpp
changeset 55 2c54b51f39c4
parent 51 0b38fc5b94c6
child 57 bb2d3e476f29
equal deleted inserted replaced
51:0b38fc5b94c6 55:2c54b51f39c4
   398 	mDatePicker->setMaximumDate(currentDate);
   398 	mDatePicker->setMaximumDate(currentDate);
   399 	mDatePicker->setDate(currentDate);
   399 	mDatePicker->setDate(currentDate);
   400 
   400 
   401 	popUp->setContentWidget(mDatePicker);  
   401 	popUp->setContentWidget(mDatePicker);  
   402 	mDeleteAction = new HbAction(
   402 	mDeleteAction = new HbAction(
   403 						hbTrId("txt_calendar_button_dialog_delete"), popUp);
   403 						hbTrId("txt_common_button_delete"), popUp);
   404 	popUp->addAction(mDeleteAction);
   404 	popUp->addAction(mDeleteAction);
   405 	mCancelAction = new HbAction(hbTrId("txt_common_button_cancel"),popUp);
   405 	mCancelAction = new HbAction(hbTrId("txt_common_button_cancel"),popUp);
   406 	popUp->addAction(mCancelAction);
   406 	popUp->addAction(mCancelAction);
   407 	// Show the popup
   407 	// Show the popup
   408 	popUp->open(this, SLOT(handleDateQuery(HbAction*)));
   408 	popUp->open(this, SLOT(handleDateQuery(HbAction*)));
   488     popUp->setHeadingWidget(new HbLabel(
   488     popUp->setHeadingWidget(new HbLabel(
   489 						hbTrId("txt_calendar_title_delete_repeated_entry")));
   489 						hbTrId("txt_calendar_title_delete_repeated_entry")));
   490 
   490 
   491     // Add cancel action
   491     // Add cancel action
   492     HbAction *cancelAction = new HbAction(
   492     HbAction *cancelAction = new HbAction(
   493 							hbTrId("txt_calendar_button_softkey1_cancel"));
   493 							hbTrId("txt_common_button_cancel_singledialog"));
   494     popUp->addAction(cancelAction);
   494     popUp->addAction(cancelAction);
   495     connect(editButtonList, SIGNAL(itemSelected(int)), this,
   495     connect(editButtonList, SIGNAL(itemSelected(int)), this,
   496 										SLOT(handleRepeatedEntryDelete(int)));
   496 										SLOT(handleRepeatedEntryDelete(int)));
   497     connect(editButtonList, SIGNAL(itemSelected(int)), popUp, SLOT(close()));
   497     connect(editButtonList, SIGNAL(itemSelected(int)), popUp, SLOT(close()));
   498     connect(cancelAction, SIGNAL(triggered()), this, 
   498     connect(cancelAction, SIGNAL(triggered()), this, 
   600     for(int i=0; i < list.count(); i++)
   600     for(int i=0; i < list.count(); i++)
   601         {
   601         {
   602         popup->removeAction(list[i]);
   602         popup->removeAction(list[i]);
   603         }
   603         }
   604     mDeleteAction = new HbAction(
   604     mDeleteAction = new HbAction(
   605 						hbTrId("txt_calendar_button_dialog_delete"), popup);
   605 						hbTrId("txt_common_button_delete"), popup);
   606     popup->addAction(mDeleteAction);
   606     popup->addAction(mDeleteAction);
   607     mCancelAction = new HbAction(hbTrId("txt_common_button_cancel"), popup); 
   607     mCancelAction = new HbAction(hbTrId("txt_common_button_cancel"), popup); 
   608     popup->addAction(mCancelAction);
   608     popup->addAction(mCancelAction);
   609     popup->open(this, SLOT(handleDeletion(HbAction*)));
   609     popup->open(this, SLOT(handleDeletion(HbAction*)));
   610     
   610     
   744     AgendaUtil::FilterFlags filter =
   744     AgendaUtil::FilterFlags filter =
   745     	        AgendaUtil::FilterFlags(AgendaUtil::IncludeAnniversaries
   745     	        AgendaUtil::FilterFlags(AgendaUtil::IncludeAnniversaries
   746     	                | AgendaUtil::IncludeAppointments
   746     	                | AgendaUtil::IncludeAppointments
   747     	                | AgendaUtil::IncludeEvents
   747     	                | AgendaUtil::IncludeEvents
   748     	                | AgendaUtil::IncludeReminders
   748     	                | AgendaUtil::IncludeReminders
   749     	                | AgendaUtil::IncludeIncompletedTodos);
   749     	                | AgendaUtil::IncludeIncompletedTodos
       
   750     	                | AgendaUtil::IncludeCompletedTodos
       
   751     	                | AgendaUtil::IncludeAnniversaries);
   750     // 1: First pass, delete all entries.
   752     // 1: First pass, delete all entries.
   751     iController.agendaInterface()->deleteEntries(iStartTime, iEndTime, filter);
   753     iController.agendaInterface()->deleteEntries(iStartTime, iEndTime, filter);
   752 
   754 
   753     OstTraceFunctionExit0( CALENDELETEUI_DELETEDAYRANGEL_EXIT );
   755     OstTraceFunctionExit0( CALENDELETEUI_DELETEDAYRANGEL_EXIT );
   754     }
   756     }