80 return !operator==(other); |
80 return !operator==(other); |
81 } |
81 } |
82 |
82 |
83 bool isValid() const; |
83 bool isValid() const; |
84 |
84 |
85 void setDateTime(const QDateTime &dateTime); |
85 void setTimestamp(const QDateTime ×tamp); |
86 QDateTime dateTime() const; |
86 QDateTime timestamp() const; |
87 |
87 |
88 void setCoordinate(const QGeoCoordinate &coordinate); |
88 void setCoordinate(const QGeoCoordinate &coordinate); |
89 QGeoCoordinate coordinate() const; |
89 QGeoCoordinate coordinate() const; |
90 |
90 |
91 void setAttribute(Attribute attribute, qreal value); |
91 void setAttribute(Attribute attribute, qreal value); |
93 void removeAttribute(Attribute attribute); |
93 void removeAttribute(Attribute attribute); |
94 bool hasAttribute(Attribute attribute) const; |
94 bool hasAttribute(Attribute attribute) const; |
95 |
95 |
96 private: |
96 private: |
97 #ifndef QT_NO_DEBUG_STREAM |
97 #ifndef QT_NO_DEBUG_STREAM |
98 friend Q_LOCATION_EXPORT QDebug operator<<(QDebug dbg, const QGeoPositionInfo &update); |
98 friend Q_LOCATION_EXPORT QDebug operator<<(QDebug dbg, const QGeoPositionInfo &info); |
99 #endif |
99 #endif |
100 #ifndef QT_NO_DATASTREAM |
100 #ifndef QT_NO_DATASTREAM |
101 friend Q_LOCATION_EXPORT QDataStream &operator<<(QDataStream &stream, const QGeoPositionInfo &update); |
101 friend Q_LOCATION_EXPORT QDataStream &operator<<(QDataStream &stream, const QGeoPositionInfo &info); |
102 friend Q_LOCATION_EXPORT QDataStream &operator>>(QDataStream &stream, QGeoPositionInfo &update); |
102 friend Q_LOCATION_EXPORT QDataStream &operator>>(QDataStream &stream, QGeoPositionInfo &info); |
103 #endif |
103 #endif |
104 QGeoPositionInfoPrivate *d; |
104 QGeoPositionInfoPrivate *d; |
105 }; |
105 }; |
106 |
106 |
107 #ifndef QT_NO_DEBUG_STREAM |
107 #ifndef QT_NO_DEBUG_STREAM |
108 Q_LOCATION_EXPORT QDebug operator<<(QDebug dbg, const QGeoPositionInfo &update); |
108 Q_LOCATION_EXPORT QDebug operator<<(QDebug dbg, const QGeoPositionInfo &info); |
109 #endif |
109 #endif |
110 |
110 |
111 #ifndef QT_NO_DATASTREAM |
111 #ifndef QT_NO_DATASTREAM |
112 Q_LOCATION_EXPORT QDataStream &operator<<(QDataStream &stream, const QGeoPositionInfo &update); |
112 Q_LOCATION_EXPORT QDataStream &operator<<(QDataStream &stream, const QGeoPositionInfo &info); |
113 Q_LOCATION_EXPORT QDataStream &operator>>(QDataStream &stream, QGeoPositionInfo &update); |
113 Q_LOCATION_EXPORT QDataStream &operator>>(QDataStream &stream, QGeoPositionInfo &info); |
114 #endif |
114 #endif |
115 |
115 |
116 QTM_END_NAMESPACE |
116 QTM_END_NAMESPACE |
117 |
117 |
118 QT_END_HEADER |
118 QT_END_HEADER |