--- a/calendarui/organizerplugin/aiagendapluginengine/src/CalenEngine.cpp Wed Sep 15 12:11:35 2010 +0300
+++ b/calendarui/organizerplugin/aiagendapluginengine/src/CalenEngine.cpp Wed Oct 13 14:30:35 2010 +0300
@@ -30,13 +30,14 @@
#include <calsession.h>
#include <calcalendarinfo.h>
#include <calcalendariterator.h>
+#include <calenmulticaluids.hrh>
enum TCalenEnginePanic
{
EMultipleCommands = 0
};
-
+const TInt KBuffLength = 24;
// -----------------------------------------------------------------------------
// ?implementation_description
@@ -188,7 +189,19 @@
for(CCalCalendarInfo* calendarInfo = calIter->FirstL() ;
calendarInfo != NULL ; calendarInfo = calIter->NextL() )
{
- if(calendarInfo->Enabled())
+ TBuf8<KBuffLength> keyBuff;
+ // Mark the meta property as SoftDeleted
+ keyBuff.Zero();
+ keyBuff.AppendNum(EMarkAsDelete);
+ TBool softDelete = EFalse;
+ TPckgC<TBool> pkgSoftDelete( softDelete );
+ TRAPD(err,pkgSoftDelete.Set(calendarInfo->PropertyValueL(keyBuff)));
+ if( KErrNone == err )
+ {
+ softDelete = pkgSoftDelete();
+ }
+
+ if(!softDelete && calendarInfo->Enabled() )
{
TCalInfo calInfo;
calInfo.iFileName = calendarInfo->FileNameL();