Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qgeotilespec_p.h
Go to the documentation of this file.
1// Copyright (C) 2015 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QGEOTILESPEC_H
5#define QGEOTILESPEC_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtLocation/private/qlocationglobal_p.h>
19#include <QtCore/QMetaType>
20#include <QtCore/QList>
21#include <QtCore/QSet>
22#include <QString>
23
24#include <QSharedDataPointer>
25
27
30
31class Q_LOCATION_EXPORT QGeoTileSpec
32{
33public:
36 QGeoTileSpec(QGeoTileSpec &&other) noexcept = default;
37 QGeoTileSpec(const QString &plugin, int mapId, int zoom, int x, int y, int version = -1);
39
40 QGeoTileSpec &operator=(const QGeoTileSpec &other) noexcept;
41 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QGeoTileSpec)
42
43 void swap(QGeoTileSpec &other) noexcept { d.swap(other.d); }
44
45 QString plugin() const;
46
47 void setZoom(int zoom);
48 int zoom() const;
49
50 void setX(int x);
51 int x() const;
52
53 void setY(int y);
54 int y() const;
55
56 void setMapId(int mapId);
57 int mapId() const;
58
59 void setVersion(int version);
60 int version() const;
61
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); }
68
69private:
70 QSharedDataPointer<QGeoTileSpecPrivate> d;
71
72 bool isEqual(const QGeoTileSpec &rhs) const noexcept;
73 bool isLess(const QGeoTileSpec &rhs) const noexcept;
74};
75
76Q_LOCATION_EXPORT unsigned int qHash(const QGeoTileSpec &spec);
77
78Q_LOCATION_EXPORT QDebug operator<<(QDebug, const QGeoTileSpec &);
79
81
83Q_DECLARE_METATYPE(QList<QGeoTileSpec>)
84Q_DECLARE_METATYPE(QSet<QGeoTileSpec>)
85
86#endif // QGEOTILESPEC_H
static bool isEqual(const aiUVTransform &a, const aiUVTransform &b)
\inmodule QtCore
QGeoTileSpec(QGeoTileSpec &&other) noexcept=default
friend bool operator!=(const QGeoTileSpec &lhs, const QGeoTileSpec &rhs) noexcept
friend bool operator==(const QGeoTileSpec &lhs, const QGeoTileSpec &rhs) noexcept
QGeoTileSpec(const QGeoTileSpec &other) noexcept
QSharedData & operator=(const QSharedData &)=delete
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
format setVersion(3, 2)
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
Q_LOCATION_EXPORT QDebug operator<<(QDebug, const QGeoTileSpec &)
Q_LOCATION_EXPORT unsigned int qHash(const QGeoTileSpec &spec)
#define Q_DECLARE_METATYPE(TYPE)
Definition qmetatype.h:1525
GLint GLint GLint GLint GLint x
[0]
GLint y
static bool operator<(const QSettingsIniKey &k1, const QSettingsIniKey &k2)
#define QT_DECLARE_QSDP_SPECIALIZATION_DTOR_WITH_EXPORT(Class, ExportMacro)
p setX(p.x()+1)
QSharedPointer< T > other(t)
[5]
this swap(other)