equal
deleted
inserted
replaced
53 /* Leaf class */ |
53 /* Leaf class */ |
54 class Q_CONTACTS_EXPORT QContactType : public QContactDetail |
54 class Q_CONTACTS_EXPORT QContactType : 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* FieldType; |
59 static const QLatin1Constant FieldType; |
60 const char* TypeContact; |
60 static const QLatin1Constant TypeContact; |
61 const char* TypeGroup; |
61 static const QLatin1Constant TypeGroup; |
62 #else |
62 #else |
63 Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactType, "Type") |
63 Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactType, "Type") |
64 Q_DECLARE_LATIN1_LITERAL(FieldType, "Type"); |
64 Q_DECLARE_LATIN1_CONSTANT(FieldType, "Type"); |
65 Q_DECLARE_LATIN1_LITERAL(TypeContact, "Contact"); |
65 Q_DECLARE_LATIN1_CONSTANT(TypeContact, "Contact"); |
66 Q_DECLARE_LATIN1_LITERAL(TypeGroup, "Group"); |
66 Q_DECLARE_LATIN1_CONSTANT(TypeGroup, "Group"); |
67 #endif |
67 #endif |
68 |
68 |
69 void setType(const QString& type) {setValue(FieldType, type);} |
69 void setType(const QString& type) {setValue(FieldType, type);} |
70 QString type() const {return value(FieldType);} |
70 QString type() const {return value(FieldType);} |
71 }; |
71 }; |