equal
deleted
inserted
replaced
46 #include "calencontroller.h" |
46 #include "calencontroller.h" |
47 |
47 |
48 const TInt KHashLength = 64; |
48 const TInt KHashLength = 64; |
49 const TInt KBuffLength = 24; |
49 const TInt KBuffLength = 24; |
50 |
50 |
|
51 _LIT( KCalendarDatabaseFilePath, "c:calendar" ); |
51 // ---------------------------------------------------------------------------- |
52 // ---------------------------------------------------------------------------- |
52 // CCalenNotifier::CCalenNotifier |
53 // CCalenNotifier::CCalenNotifier |
53 // C++ default constructor. |
54 // C++ default constructor. |
54 // (other items were commented in a header). |
55 // (other items were commented in a header). |
55 // ---------------------------------------------------------------------------- |
56 // ---------------------------------------------------------------------------- |
801 markAsdelete = pkgMarkAsDelete(); |
802 markAsdelete = pkgMarkAsDelete(); |
802 |
803 |
803 CleanupStack::PopAndDestroy(calendarInfo); |
804 CleanupStack::PopAndDestroy(calendarInfo); |
804 |
805 |
805 //remove calendar except default calendar |
806 //remove calendar except default calendar |
806 if (err == KErrNone && markAsdelete |
807 if (err == KErrNone && markAsdelete && aCalendarInfoChangeEntries[index]->FileNameL().CompareF( |
807 && aCalendarInfoChangeEntries[index]->FileNameL().CompareF( |
808 KCalendarDatabaseFilePath)) |
808 iGlobalData->CalSessionL().DefaultFileNameL())) |
|
809 { |
809 { |
810 iFilnameDeleted = aCalendarInfoChangeEntries[index]->FileNameL().AllocL(); |
810 iFilnameDeleted = aCalendarInfoChangeEntries[index]->FileNameL().AllocL(); |
811 BroadcastNotification(ECalenNotifyDeleteInstanceView); |
811 BroadcastNotification(ECalenNotifyDeleteInstanceView); |
812 iGlobalData->RemoveCalendarL(iFilnameDeleted->Des()); |
812 iGlobalData->RemoveCalendarL(iFilnameDeleted->Des()); |
813 BroadcastNotification(ECalenNotifyCalendarFileDeleted); |
813 BroadcastNotification(ECalenNotifyCalendarFileDeleted); |