4#include "private/qgeopositioninfo_p.h"
8#include <QtCore/QtNumeric>
262 return *lhs.d == *rhs.d;
265#ifndef QT_NO_DEBUG_STREAM
269 dbg.nospace() <<
"QGeoPositionInfo(" <<
info.d->timestamp;
270 dbg.nospace() <<
", ";
271 dbg <<
info.d->coord;
282 dbg <<
"GroundSpeed=";
285 dbg <<
"VerticalSpeed=";
288 dbg <<
"MagneticVariation=";
291 dbg <<
"HorizontalAccuracy=";
294 dbg <<
"VerticalAccuracy=";
297 dbg <<
"DirectionAccuracy=";
308#ifndef QT_NO_DATASTREAM
376 timestamp(
other.timestamp),
378 doubleAttribs(
other.doubleAttribs)
396 return info.d.data();
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
bool isValid() const
Returns true if this datetime represents a definite moment, otherwise false.
void detach()
If the shared data object's reference count is greater than 1, this function creates a deep copy of t...
bool isValid
This property holds the validity of this geo coordinate.
static QGeoPositionInfoPrivate * get(const QGeoPositionInfo &info)
virtual ~QGeoPositionInfoPrivate()
QGeoPositionInfoPrivate()
QHash< QGeoPositionInfo::Attribute, qreal > doubleAttribs
bool operator==(const QGeoPositionInfoPrivate &other) const
bool isValid() const
Returns true if the timestamp() and coordinate() values are both valid.
Attribute
Defines the attributes for positional information.
qreal attribute(Attribute attribute) const
Returns the value of the specified attribute as a qreal value.
~QGeoPositionInfo()
Destroys a QGeoPositionInfo object.
void setCoordinate(const QGeoCoordinate &coordinate)
Sets the coordinate for this position to coordinate.
QGeoCoordinate coordinate() const
Returns the coordinate for this position.
void setAttribute(Attribute attribute, qreal value)
Sets the value for attribute to value.
QGeoPositionInfo()
Creates an invalid QGeoPositionInfo object.
void setTimestamp(const QDateTime ×tamp)
Sets the date and time at which this position was reported to timestamp.
QDateTime timestamp() const
Returns the date and time at which this position was reported, in UTC time.
friend class QGeoPositionInfoPrivate
bool hasAttribute(Attribute attribute) const
Returns true if the specified attribute is present for this QGeoPositionInfo object.
void removeAttribute(Attribute attribute)
Removes the specified attribute and its value.
bool remove(const Key &key)
Removes the item that has the key from the hash.
bool contains(const Key &key) const noexcept
Returns true if the hash contains an item with the key; otherwise returns false.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
char * toString(const MyPoint &point)
Q_CORE_EXPORT char * qstrdup(const char *)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
EGLOutputLayerEXT EGLint attribute
size_t qHash(const QGeoPositionInfo &key, size_t seed) noexcept
constexpr QtPrivate::QHashMultiReturnType< T... > qHashMulti(size_t seed, const T &... args) noexcept(std::conjunction_v< QtPrivate::QNothrowHashable< T >... >)
Q_CORE_EXPORT Q_DECL_CONST_FUNCTION double qQNaN()
GLboolean GLboolean GLboolean GLboolean a
[7]
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
#define QT_DEFINE_QESDP_SPECIALIZATION_DTOR(Class)
#define qPrintable(string)
QFileInfo info(fileName)
[8]