calendarui/controller/src/calennotifier.cpp
branchRCL_3
changeset 16 55d60436f00b
parent 15 9711e452b5e9
child 27 aba12c885d83
equal deleted inserted replaced
15:9711e452b5e9 16:55d60436f00b
   791 
   791 
   792                 CleanupStack::PopAndDestroy(calendarInfo);
   792                 CleanupStack::PopAndDestroy(calendarInfo);
   793 
   793 
   794                 if (err == KErrNone && markAsdelete)
   794                 if (err == KErrNone && markAsdelete)
   795                     {
   795                     {
   796                     //BroadcastNotification(ECalenNotifyCloseDialog);
       
   797                     BroadcastNotification(ECalenNotifyDeleteInstanceView);
       
   798                     BroadcastNotification(ECalenNotifyCalendarFileDeleted);
       
   799                     iFilnameDeleted = aCalendarInfoChangeEntries[index]->FileNameL().AllocL();
   796                     iFilnameDeleted = aCalendarInfoChangeEntries[index]->FileNameL().AllocL();
   800                     iAsyncCallback->CallBack();
   797                     iAsyncCallback->CallBack();
   801                     }
   798                     }
   802                 else
   799                 else
   803                     {
   800                     {
   829 // CCalenNotifier::AsyncRemoveCalendarL()
   826 // CCalenNotifier::AsyncRemoveCalendarL()
   830 //
   827 //
   831 void CCalenNotifier::AsyncRemoveCalendarL()
   828 void CCalenNotifier::AsyncRemoveCalendarL()
   832     {
   829     {
   833     TRACE_ENTRY_POINT
   830     TRACE_ENTRY_POINT
       
   831     BroadcastNotification(ECalenNotifyDeleteInstanceView);
   834     iGlobalData->RemoveCalendarL(iFilnameDeleted->Des());
   832     iGlobalData->RemoveCalendarL(iFilnameDeleted->Des());
       
   833     BroadcastNotification(ECalenNotifyCalendarFileDeleted);
       
   834                        
   835     delete iFilnameDeleted;
   835     delete iFilnameDeleted;
   836     iFilnameDeleted = NULL;
   836     iFilnameDeleted = NULL;
   837     TRACE_EXIT_POINT
   837     TRACE_EXIT_POINT
   838     }
   838     }
   839 // End of file
   839 // End of file