53 /* Leaf class */ |
53 /* Leaf class */ |
54 class Q_CONTACTS_EXPORT QContactGender : public QContactDetail |
54 class Q_CONTACTS_EXPORT QContactGender : 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* FieldGender; |
59 static const QLatin1Constant FieldGender; |
60 const char* GenderMale; |
60 static const QLatin1Constant GenderMale; |
61 const char* GenderFemale; |
61 static const QLatin1Constant GenderFemale; |
62 const char* GenderUnspecified; |
62 static const QLatin1Constant GenderUnspecified; |
63 #else |
63 #else |
64 Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactGender, "Gender") |
64 Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactGender, "Gender") |
65 Q_DECLARE_LATIN1_LITERAL(FieldGender, "Gender"); |
65 Q_DECLARE_LATIN1_CONSTANT(FieldGender, "Gender"); |
66 Q_DECLARE_LATIN1_LITERAL(GenderMale, "Male"); |
66 Q_DECLARE_LATIN1_CONSTANT(GenderMale, "Male"); |
67 Q_DECLARE_LATIN1_LITERAL(GenderFemale, "Female"); |
67 Q_DECLARE_LATIN1_CONSTANT(GenderFemale, "Female"); |
68 Q_DECLARE_LATIN1_LITERAL(GenderUnspecified, "Unspecified"); |
68 Q_DECLARE_LATIN1_CONSTANT(GenderUnspecified, "Unspecified"); |
69 #endif |
69 #endif |
70 |
70 |
71 void setGender(const QString& gender) {setValue(FieldGender, gender);} |
71 void setGender(const QString& gender) {setValue(FieldGender, gender);} |
72 QString gender() const {return value(FieldGender);} |
72 QString gender() const {return value(FieldGender);} |
73 }; |
73 }; |