/** Merging pure (minimal) contact with the template should be out of scope of the Persistence Layer. The only reason to have this functions in the test interface is that CContactItem::RestoreTemplateFieldsL() is not exported. */ void CLplTester::MergeContactWithTemplateL(CContactItem& aContact, const CContactItem& aTempl, const CContactItemViewDef& aView) const { if (aContact.TemplateRefId()!=KNullContactId && aContact.Type() != KUidContactCardTemplate) { aContact.RestoreTemplateFieldsL(iProps.SystemTemplateL().CardFields(), aTempl.CardFields(), aView); } }