calendarui/controller/src/calendeleteui.cpp
changeset 57 bb2d3e476f29
parent 55 2c54b51f39c4
child 70 a5ed90760192
--- a/calendarui/controller/src/calendeleteui.cpp	Mon Jul 26 13:54:38 2010 +0530
+++ b/calendarui/controller/src/calendeleteui.cpp	Mon Aug 09 18:30:52 2010 +0530
@@ -322,6 +322,8 @@
 					// Show a confirmation note whether the user
 					// wants to delete the single instance or all of them
 					showRepeatingEntryDeleteQuery();
+				} else if (CalenAgendaUtils::isAlldayEvent(entry)) {
+					showDeleteQuery(EDeleteEvent);
 				} else {
 					// If the entry is not a repeating entry,
 					// delete it directly
@@ -545,6 +547,8 @@
 									instance, AgendaUtil::ThisAndAll);
 				break;
 		}
+	}else {
+	    iController.BroadcastNotification(ECalenNotifyDeleteFailed);
 	}
 	OstTraceFunctionExit0( CALENDELETEUI_HANDLEREPEATEDENTRYDELETE_EXIT );
 }
@@ -590,6 +594,11 @@
             text.append(hbTrId("txt_calendar_info_delete_all_calendar_entries"));
             break;
             }
+        case EDeleteEvent:
+            {
+            text.append(hbTrId("txt_calendar_info_delete_allday_event"));
+            break;
+            }
         default:
             break;
         }
@@ -657,6 +666,8 @@
 						iController.Services().agendaInterface()->deleteRepeatedEntry( 
 								instance, mRecurrenceRange );
 					}
+				}else {
+				    iController.BroadcastNotification(ECalenNotifyDeleteFailed); 
 				}
 			}
 				break;
@@ -672,11 +683,12 @@
 				break;
 				
 		}
+	} else {
+		// If the user presses cancel button the notification will be
+		// ECalenNotifyDeleteFailed as default.
+		// Notify the status
+		iController.BroadcastNotification(notification);
 	}
-	// If the user presses cancel button the notification will be
-	// ECalenNotifyDeleteFailed as default.
-	// Notify the status
-	iController.BroadcastNotification(notification);
 	
 	// Reset the member variables
 	mDeleteAction = NULL;