equal
deleted
inserted
replaced
334 // CPsData::CompareById |
334 // CPsData::CompareById |
335 // Compare function |
335 // Compare function |
336 // ---------------------------------------------------------------------------- |
336 // ---------------------------------------------------------------------------- |
337 EXPORT_C TBool CPsData::CompareById(const CPsData& aObject1, const CPsData& aObject2) |
337 EXPORT_C TBool CPsData::CompareById(const CPsData& aObject1, const CPsData& aObject2) |
338 { |
338 { |
339 if(aObject1.Id() == aObject2.Id()) |
339 // Both Id() and UriId() must match if data objects represent the same contact. |
340 { |
340 // Values of Id() are guaranteed to be unique only within one store. |
341 return ETrue; |
341 if ( aObject1.Id() == aObject2.Id() && aObject1.UriId() == aObject2.UriId() ) |
342 } |
342 { |
343 |
343 return ETrue; |
344 return EFalse; |
344 } |
|
345 return EFalse; |
345 } |
346 } |
346 |
347 |
347 |
348 |
348 // ---------------------------------------------------------------------------- |
349 // ---------------------------------------------------------------------------- |
349 // CPsData::IsDataMatch |
350 // CPsData::IsDataMatch |