53 /* Leaf class */ |
53 /* Leaf class */ |
54 class Q_CONTACTS_EXPORT QContactUrl : public QContactDetail |
54 class Q_CONTACTS_EXPORT QContactUrl : 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* FieldUrl; |
59 static const QLatin1Constant FieldUrl; |
60 const char* FieldSubType; |
60 static const QLatin1Constant FieldSubType; |
61 const char* SubTypeHomePage; |
61 static const QLatin1Constant SubTypeHomePage; |
62 const char* SubTypeFavourite; |
62 static const QLatin1Constant SubTypeFavourite; |
63 const char* SubTypeSocialNetworking; |
63 static const QLatin1Constant SubTypeSocialNetworking; |
64 #else |
64 #else |
65 Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactUrl, "Url") |
65 Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactUrl, "Url") |
66 Q_DECLARE_LATIN1_LITERAL(FieldUrl, "Url"); |
66 Q_DECLARE_LATIN1_CONSTANT(FieldUrl, "Url"); |
67 Q_DECLARE_LATIN1_LITERAL(FieldSubType, "SubType"); |
67 Q_DECLARE_LATIN1_CONSTANT(FieldSubType, "SubType"); |
68 Q_DECLARE_LATIN1_LITERAL(SubTypeHomePage, "HomePage"); |
68 Q_DECLARE_LATIN1_CONSTANT(SubTypeHomePage, "HomePage"); |
69 Q_DECLARE_LATIN1_LITERAL(SubTypeFavourite, "Favourite"); |
69 Q_DECLARE_LATIN1_CONSTANT(SubTypeFavourite, "Favourite"); |
70 #endif |
70 #endif |
71 |
71 |
72 void setUrl(const QString& url) {setValue(FieldUrl, url);} |
72 void setUrl(const QString& url) {setValue(FieldUrl, url);} |
73 QString url() const {return value(FieldUrl);} |
73 QString url() const {return value(FieldUrl);} |
74 |
74 |