19#include <QtLocation/private/qlocationglobal_p.h>
20#include <QtCore/QMetaType>
21#include <QtCore/QList>
25#include <QSharedDataPointer>
29class QGeoTileSpecPrivate;
30QT_DECLARE_QSDP_SPECIALIZATION_DTOR_WITH_EXPORT(QGeoTileSpecPrivate, Q_LOCATION_EXPORT)
36 QGeoTileSpec(
const QGeoTileSpec &other)
noexcept;
37 QGeoTileSpec(QGeoTileSpec &&other)
noexcept =
default;
38 QGeoTileSpec(
const QString &plugin,
int mapId,
int zoom,
int x,
int y,
int version = -1);
41 QGeoTileSpec &operator=(
const QGeoTileSpec &other)
noexcept;
42 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QGeoTileSpec)
44 void swap(QGeoTileSpec &other)
noexcept { d.swap(other.d); }
46 QString plugin()
const;
48 void setZoom(
int zoom);
57 void setMapId(
int mapId);
60 void setVersion(
int version);
63 friend inline bool operator==(
const QGeoTileSpec &lhs,
const QGeoTileSpec &rhs)
noexcept
64 {
return lhs.isEqual(rhs); }
65 friend inline bool operator!=(
const QGeoTileSpec &lhs,
const QGeoTileSpec &rhs)
noexcept
66 {
return !lhs.isEqual(rhs); }
67 friend inline bool operator < (
const QGeoTileSpec &lhs,
const QGeoTileSpec &rhs)
noexcept
68 {
return lhs.isLess(rhs); }
71 QSharedDataPointer<QGeoTileSpecPrivate> d;
73 bool isEqual(
const QGeoTileSpec &rhs)
const noexcept;
74 bool isLess(
const QGeoTileSpec &rhs)
const noexcept;
77Q_LOCATION_EXPORT
unsigned int qHash(
const QGeoTileSpec &spec);
79Q_LOCATION_EXPORT
QDebug operator<<(QDebug,
const QGeoTileSpec &);
84Q_DECLARE_METATYPE(QList<QGeoTileSpec>)
85Q_DECLARE_METATYPE(QSet<QGeoTileSpec>)
Combined button and popup list for selecting options.
Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::Filters filters)
size_t qHash(const QHashedString &string)