calendarui/controller/src/calenactionuiutils.cpp
changeset 45 b6db4fd4947b
parent 18 c198609911f9
child 51 0b38fc5b94c6
child 58 ef813d54df51
--- a/calendarui/controller/src/calenactionuiutils.cpp	Mon May 03 12:30:32 2010 +0300
+++ b/calendarui/controller/src/calenactionuiutils.cpp	Mon Jun 28 15:22:02 2010 +0530
@@ -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