qtmobility/src/contacts/details/qcontactname.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    53 
    53 
    54 class Q_CONTACTS_EXPORT QContactName : public QContactDetail
    54 class Q_CONTACTS_EXPORT QContactName : public QContactDetail
    55 {
    55 {
    56 public:
    56 public:
    57 #ifdef Q_QDOC
    57 #ifdef Q_QDOC
    58     const char* DefinitionName;
    58     static const QLatin1Constant DefinitionName;
    59     const char* FieldPrefix;
    59     static const QLatin1Constant FieldPrefix;
    60     const char* FieldFirst; // deprecated
    60     static const QLatin1Constant FieldFirstName;
    61     const char* FieldMiddle;// deprecated
    61     static const QLatin1Constant FieldMiddleName;
    62     const char* FieldLast;  // deprecated
    62     static const QLatin1Constant FieldLastName;
    63     const char* FieldFirstName;
    63     static const QLatin1Constant FieldSuffix;
    64     const char* FieldMiddleName;
    64     static const QLatin1Constant FieldCustomLabel;
    65     const char* FieldLastName;
       
    66     const char* FieldSuffix;
       
    67     const char* FieldCustomLabel;
       
    68 #else
    65 #else
    69     Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactName, "Name")
    66     Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactName, "Name")
    70     Q_DECLARE_LATIN1_LITERAL(FieldPrefix, "Prefix");
    67     Q_DECLARE_LATIN1_CONSTANT(FieldPrefix, "Prefix");
    71     Q_DECLARE_LATIN1_LITERAL(FieldFirst, "FirstName");  // deprecated
    68     Q_DECLARE_LATIN1_CONSTANT(FieldFirstName, "FirstName");
    72     Q_DECLARE_LATIN1_LITERAL(FieldMiddle, "MiddleName");// deprecated
    69     Q_DECLARE_LATIN1_CONSTANT(FieldMiddleName, "MiddleName");
    73     Q_DECLARE_LATIN1_LITERAL(FieldLast, "LastName");    // deprecated
    70     Q_DECLARE_LATIN1_CONSTANT(FieldLastName, "LastName");
    74     Q_DECLARE_LATIN1_LITERAL(FieldFirstName, "FirstName");
    71     Q_DECLARE_LATIN1_CONSTANT(FieldSuffix, "Suffix");
    75     Q_DECLARE_LATIN1_LITERAL(FieldMiddleName, "MiddleName");
    72     Q_DECLARE_LATIN1_CONSTANT(FieldCustomLabel, "CustomLabel");
    76     Q_DECLARE_LATIN1_LITERAL(FieldLastName, "LastName");
       
    77     Q_DECLARE_LATIN1_LITERAL(FieldSuffix, "Suffix");
       
    78     Q_DECLARE_LATIN1_LITERAL(FieldCustomLabel, "CustomLabel");
       
    79 #endif
    73 #endif
    80 
    74 
    81     QString prefix() const {return value(FieldPrefix);}
    75     QString prefix() const {return value(FieldPrefix);}
    82     QString firstName() const {return value(FieldFirstName);}
    76     QString firstName() const {return value(FieldFirstName);}
    83     QString middleName() const {return value(FieldMiddleName);}
    77     QString middleName() const {return value(FieldMiddleName);}