pimappservices/calendar/server/src/agsasyncdelete.cpp
changeset 49 5de72ea7a065
parent 0 f979ecb2b13e
equal deleted inserted replaced
37:360d55486d7f 49:5de72ea7a065
   244 				CleanupStack::PushL(entry);
   244 				CleanupStack::PushL(entry);
   245 				iModel.DeleteEntryL(*entry, ETrue, NULL);
   245 				iModel.DeleteEntryL(*entry, ETrue, NULL);
   246 				CleanupStack::PopAndDestroy(entry);
   246 				CleanupStack::PopAndDestroy(entry);
   247 				}
   247 				}
   248 			}
   248 			}
   249 			
   249 		iModel.ResetDeleteRollbackArray();
   250 		iTidyDeleteArray->Reset();
   250 		iTidyDeleteArray->Reset();
   251 		iModel.FlushL();
   251 		iModel.FlushL();
   252 		}
   252 		}
   253 	}
   253 	}
   254 
   254 
   286 			const TInt KCount = KChildIds.Count();
   286 			const TInt KCount = KChildIds.Count();
   287 			// Check each child to see if they are all fall in the date range
   287 			// Check each child to see if they are all fall in the date range
   288 			for (TInt i = 0; i < KCount && todelete; ++i)
   288 			for (TInt i = 0; i < KCount && todelete; ++i)
   289 				{
   289 				{
   290 				const CAgnSimpleEntry* KChildEntry = iModel.GetSimpleEntryFromIndexes(KChildIds[i].ChildId());
   290 				const CAgnSimpleEntry* KChildEntry = iModel.GetSimpleEntryFromIndexes(KChildIds[i].ChildId());
   291 				todelete = FallInTimeRangeL(*KChildEntry);
   291 				if(KChildEntry != NULL)
       
   292 				    {
       
   293                     todelete = FallInTimeRangeL(*KChildEntry);
       
   294 				    }
       
   295 				
   292 				}
   296 				}
   293 			}
   297 			}
   294 
   298 
   295 	#if defined (__CAL_ENTRY_LOGGING__) || (__CAL_VERBOSE_LOGGING__)
   299 	#if defined (__CAL_ENTRY_LOGGING__) || (__CAL_VERBOSE_LOGGING__)
   296 		if(todelete)
   300 		if(todelete)