55 // replaces the below |
55 // replaces the below |
56 class Q_CONTACTS_EXPORT QContactGeoLocation : public QContactDetail |
56 class Q_CONTACTS_EXPORT QContactGeoLocation : public QContactDetail |
57 { |
57 { |
58 public: |
58 public: |
59 #ifdef Q_QDOC |
59 #ifdef Q_QDOC |
60 const char* DefinitionName; |
60 static const QLatin1Constant DefinitionName; |
61 const char* FieldLabel; |
61 static const QLatin1Constant FieldLabel; |
62 const char* FieldLatitude; |
62 static const QLatin1Constant FieldLatitude; |
63 const char* FieldLongitude; |
63 static const QLatin1Constant FieldLongitude; |
64 const char* FieldAccuracy; |
64 static const QLatin1Constant FieldAccuracy; |
65 const char* FieldAltitude; |
65 static const QLatin1Constant FieldAltitude; |
66 const char* FieldAltitudeAccuracy; |
66 static const QLatin1Constant FieldAltitudeAccuracy; |
67 const char* FieldHeading; |
67 static const QLatin1Constant FieldHeading; |
68 const char* FieldSpeed; |
68 static const QLatin1Constant FieldSpeed; |
69 const char* FieldTimestamp; |
69 static const QLatin1Constant FieldTimestamp; |
70 #else |
70 #else |
71 Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactGeoLocation, "GeoLocation") |
71 Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactGeoLocation, "GeoLocation") |
72 Q_DECLARE_LATIN1_LITERAL(FieldLabel, "Label"); |
72 Q_DECLARE_LATIN1_CONSTANT(FieldLabel, "Label"); |
73 Q_DECLARE_LATIN1_LITERAL(FieldLatitude, "Latitude"); |
73 Q_DECLARE_LATIN1_CONSTANT(FieldLatitude, "Latitude"); |
74 Q_DECLARE_LATIN1_LITERAL(FieldLongitude, "Longitude"); |
74 Q_DECLARE_LATIN1_CONSTANT(FieldLongitude, "Longitude"); |
75 Q_DECLARE_LATIN1_LITERAL(FieldAccuracy, "Accuracy"); |
75 Q_DECLARE_LATIN1_CONSTANT(FieldAccuracy, "Accuracy"); |
76 Q_DECLARE_LATIN1_LITERAL(FieldAltitude, "Altitude"); |
76 Q_DECLARE_LATIN1_CONSTANT(FieldAltitude, "Altitude"); |
77 Q_DECLARE_LATIN1_LITERAL(FieldAltitudeAccuracy, "AltitudeAccuracy"); |
77 Q_DECLARE_LATIN1_CONSTANT(FieldAltitudeAccuracy, "AltitudeAccuracy"); |
78 Q_DECLARE_LATIN1_LITERAL(FieldHeading, "Heading"); |
78 Q_DECLARE_LATIN1_CONSTANT(FieldHeading, "Heading"); |
79 Q_DECLARE_LATIN1_LITERAL(FieldSpeed, "Speed"); |
79 Q_DECLARE_LATIN1_CONSTANT(FieldSpeed, "Speed"); |
80 Q_DECLARE_LATIN1_LITERAL(FieldTimestamp, "Timestamp"); |
80 Q_DECLARE_LATIN1_CONSTANT(FieldTimestamp, "Timestamp"); |
81 #endif |
81 #endif |
82 |
82 |
83 void setLabel(const QString& label) {setValue(FieldLabel, label);} |
83 void setLabel(const QString& label) {setValue(FieldLabel, label);} |
84 QString label() const {return value(FieldLabel);} |
84 QString label() const {return value(FieldLabel);} |
85 void setLatitude(double latitude) {setValue(FieldLatitude, latitude);} |
85 void setLatitude(double latitude) {setValue(FieldLatitude, latitude);} |