53 /* Leaf class */ |
53 /* Leaf class */ |
54 class Q_CONTACTS_EXPORT QContactAnniversary : public QContactDetail |
54 class Q_CONTACTS_EXPORT QContactAnniversary : 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* FieldCalendarId; |
59 static const QLatin1Constant FieldCalendarId; |
60 const char* FieldOriginalDate; |
60 static const QLatin1Constant FieldOriginalDate; |
61 const char* FieldEvent; |
61 static const QLatin1Constant FieldEvent; |
62 const char* FieldSubType; |
62 static const QLatin1Constant FieldSubType; |
63 const char* SubTypeWedding; |
63 static const QLatin1Constant SubTypeWedding; |
64 const char* SubTypeEngagement; |
64 static const QLatin1Constant SubTypeEngagement; |
65 const char* SubTypeHouse; |
65 static const QLatin1Constant SubTypeHouse; |
66 const char* SubTypeEmployment; |
66 static const QLatin1Constant SubTypeEmployment; |
67 const char* SubTypeMemorial; |
67 static const QLatin1Constant SubTypeMemorial; |
68 #else |
68 #else |
69 Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactAnniversary, "Anniversary") |
69 Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactAnniversary, "Anniversary") |
70 Q_DECLARE_LATIN1_LITERAL(FieldCalendarId, "CalendarId"); |
70 Q_DECLARE_LATIN1_CONSTANT(FieldCalendarId, "CalendarId"); |
71 Q_DECLARE_LATIN1_LITERAL(FieldOriginalDate, "OriginalDate"); |
71 Q_DECLARE_LATIN1_CONSTANT(FieldOriginalDate, "OriginalDate"); |
72 Q_DECLARE_LATIN1_LITERAL(FieldEvent, "Event"); |
72 Q_DECLARE_LATIN1_CONSTANT(FieldEvent, "Event"); |
73 Q_DECLARE_LATIN1_LITERAL(FieldSubType, "SubType"); |
73 Q_DECLARE_LATIN1_CONSTANT(FieldSubType, "SubType"); |
74 Q_DECLARE_LATIN1_LITERAL(SubTypeWedding, "Wedding"); |
74 Q_DECLARE_LATIN1_CONSTANT(SubTypeWedding, "Wedding"); |
75 Q_DECLARE_LATIN1_LITERAL(SubTypeEngagement, "Engagement"); |
75 Q_DECLARE_LATIN1_CONSTANT(SubTypeEngagement, "Engagement"); |
76 Q_DECLARE_LATIN1_LITERAL(SubTypeHouse, "House"); |
76 Q_DECLARE_LATIN1_CONSTANT(SubTypeHouse, "House"); |
77 Q_DECLARE_LATIN1_LITERAL(SubTypeEmployment, "Employment"); |
77 Q_DECLARE_LATIN1_CONSTANT(SubTypeEmployment, "Employment"); |
78 Q_DECLARE_LATIN1_LITERAL(SubTypeMemorial, "Memorial"); |
78 Q_DECLARE_LATIN1_CONSTANT(SubTypeMemorial, "Memorial"); |
79 #endif |
79 #endif |
80 |
80 |
81 void setOriginalDate(const QDate& date) {setValue(FieldOriginalDate, date);} |
81 void setOriginalDate(const QDate& date) {setValue(FieldOriginalDate, date);} |
82 QDate originalDate() const {return value<QDate>(FieldOriginalDate);} |
82 QDate originalDate() const {return value<QDate>(FieldOriginalDate);} |
83 void setCalendarId(const QString& calendarId) {setValue(FieldCalendarId, calendarId);} |
83 void setCalendarId(const QString& calendarId) {setValue(FieldCalendarId, calendarId);} |