18#include <QtLocation/private/qlocationglobal_p.h>
19#include <QtCore/QMetaType>
20#include <QtCore/QList>
24#include <QSharedDataPointer>
28class QGeoTileSpecPrivate;
29QT_DECLARE_QSDP_SPECIALIZATION_DTOR_WITH_EXPORT(QGeoTileSpecPrivate, Q_LOCATION_EXPORT)
35 QGeoTileSpec(
const QGeoTileSpec &other)
noexcept;
36 QGeoTileSpec(QGeoTileSpec &&other)
noexcept =
default;
37 QGeoTileSpec(
const QString &plugin,
int mapId,
int zoom,
int x,
int y,
int version = -1);
40 QGeoTileSpec &operator=(
const QGeoTileSpec &other)
noexcept;
41 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QGeoTileSpec)
43 void swap(QGeoTileSpec &other)
noexcept { d.swap(other.d); }
45 QString plugin()
const;
47 void setZoom(
int zoom);
56 void setMapId(
int mapId);
59 void setVersion(
int version);
62 friend inline bool operator==(
const QGeoTileSpec &lhs,
const QGeoTileSpec &rhs)
noexcept
63 {
return lhs.isEqual(rhs); }
64 friend inline bool operator!=(
const QGeoTileSpec &lhs,
const QGeoTileSpec &rhs)
noexcept
65 {
return !lhs.isEqual(rhs); }
66 friend inline bool operator < (
const QGeoTileSpec &lhs,
const QGeoTileSpec &rhs)
noexcept
67 {
return lhs.isLess(rhs); }
70 QSharedDataPointer<QGeoTileSpecPrivate> d;
72 bool isEqual(
const QGeoTileSpec &rhs)
const noexcept;
73 bool isLess(
const QGeoTileSpec &rhs)
const noexcept;
76Q_LOCATION_EXPORT
unsigned int qHash(
const QGeoTileSpec &spec);
78Q_LOCATION_EXPORT
QDebug operator<<(QDebug,
const QGeoTileSpec &);
83Q_DECLARE_METATYPE(QList<QGeoTileSpec>)
84Q_DECLARE_METATYPE(QSet<QGeoTileSpec>)
Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::Filters filters)
size_t qHash(const QHashedString &string)