equal
deleted
inserted
replaced
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()) |