predictivesearch/PcsUtils/src/CPsData.cpp
branchRCL_3
changeset 35 4ae315f230bc
parent 15 e8e3147d53eb
child 64 c1e8ba0c2b16
equal deleted inserted replaced
32:2828b4d142c0 35:4ae315f230bc
   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