diff -r fd30d51f876b -r a949c2543c15 calendarui/controller/src/calenactionuiutils.cpp --- a/calendarui/controller/src/calenactionuiutils.cpp Mon May 03 12:30:32 2010 +0300 +++ b/calendarui/controller/src/calenactionuiutils.cpp Fri May 14 15:51:09 2010 +0300 @@ -105,62 +105,4 @@ TRACE_EXIT_POINT; } -int CalenActionUiUtils::showDeleteConfirmationQueryL(const TDeleteConfirmationType type, - const int count) - { - TRACE_ENTRY_POINT; - int retStatus = 0; - - - HbMessageBox popup(HbMessageBox::MessageTypeQuestion); - popup.setIconVisible(true); - popup.setTimeout(HbPopup::NoTimeout); - - QString text = 0; - - switch(type) - { - case CalenActionUiUtils::EDeleteEntry: - { - // TODO: Add the text id - text.append("Delete entry?"); - break; - } - case CalenActionUiUtils::EDeleteToDo: - { - text.append(hbTrId("txt_calendar_info_delete_todo_note")); - break; - } - case CalenActionUiUtils::EDeleteToDos: - {//"Delete %N to-do notes?" - // TODO: Add the text id - text.append("Delete %N to-do's?").arg(count); - break; - } - case CalenActionUiUtils::EDeleteAll: - { - text.append(hbTrId("txt_calendar_info_delete_all_calendar_entries")); - break; - } - default: - break; - } - - popup.setText(text); - - popup.setPrimaryAction(new HbAction( - hbTrId("txt_calendar_button_delete"), &popup)); - popup.setSecondaryAction(new HbAction( - hbTrId("txt_calendar_button_cancel"), &popup)); - HbAction *selected = popup.exec(); - if (selected == popup.primaryAction()) { - retStatus = 1; - } - - TRACE_EXIT_POINT - return retStatus; - } - - - // End of file