// ---------------------------------------------------------------------------
// CPIMContactFieldInfo::FieldAttributes
// (other items were commented in a header)
// ---------------------------------------------------------------------------
//
TPIMAttribute CPIMContactFieldInfo::FieldAttributes(
    const CContentType& aContentType) const
{
    JELOG2(EPim);
    TPIMAttribute retVal = KPIMAttrNone;
    for (TInt i = 0; i < KPIMFieldAttributeMapSize; i++)
    {
        // Generate uid from the specified Contacts Model field id
        TUid uid =
            { KPIMFieldAttributeMap[i][1] };
        // Match if this content type contains certain PIM attribute
        if (aContentType.ContainsFieldType(uid))
        {
            retVal |= KPIMFieldAttributeMap[i][0];
        }
    }
    return retVal;
}