phonebookengines/contactsmodel/src/CNTITEM.CPP
branchRCL_3
changeset 3 04ab22b956c2
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
equal deleted inserted replaced
0:e686773b3f54 3:04ab22b956c2
   285 					{
   285 					{
   286 					++misses;
   286 					++misses;
   287 					}				
   287 					}				
   288 				}
   288 				}
   289 
   289 
   290 			// Check if the incoming contact item has a vCard property mapping
       
   291 			// that is also present in the current template field's Field Types.
       
   292 			// This covers the (unusual) case where a template field is defined
       
   293 			// to have a vCard property mapping which is also the same as one of
       
   294 			// field types (which contains property parameter mappings).
       
   295 			for(TInt fieldTypeIdx=0; fieldTypeIdx < fieldContentType.FieldTypeCount(); ++fieldTypeIdx)
       
   296 				{
       
   297 				if(fieldContentType.FieldType(fieldTypeIdx) == aContentType.Mapping())
       
   298 					{
       
   299 					++hits;
       
   300 					}
       
   301 				}
       
   302 			
   290 			
   303 			misses+=fieldContentType.FieldTypeCount()-hits;
   291 			misses+=fieldContentType.FieldTypeCount()-hits;
   304 			score+=10*hits-5*misses;
   292 			score+=10*hits-5*misses;
   305 			
   293 			
   306 			if (!field.UserAddedField())
   294 			if (!field.UserAddedField())