equal
deleted
inserted
replaced
53 /* Leaf class */ |
53 /* Leaf class */ |
54 class Q_CONTACTS_EXPORT QContactBirthday : public QContactDetail |
54 class Q_CONTACTS_EXPORT QContactBirthday : 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* FieldBirthday; |
59 static const QLatin1Constant FieldBirthday; |
60 #else |
60 #else |
61 Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactBirthday, "Birthday") |
61 Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactBirthday, "Birthday") |
62 Q_DECLARE_LATIN1_LITERAL(FieldBirthday, "Birthday"); |
62 Q_DECLARE_LATIN1_CONSTANT(FieldBirthday, "Birthday"); |
63 #endif |
63 #endif |
64 |
64 |
65 void setDate(const QDate& date) {setValue(FieldBirthday, date);} |
65 void setDate(const QDate& date) {setValue(FieldBirthday, date);} |
66 QDate date() const {return value<QDate>(FieldBirthday);} |
66 QDate date() const {return value<QDate>(FieldBirthday);} |
67 }; |
67 }; |