Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qgeotilespec_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 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// Qt-Security score:significant reason:default
4#ifndef QGEOTILESPEC_P_H
5#define QGEOTILESPEC_P_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 <QtCore/qhashfunctions.h>
19#include <QString>
20#include <QSharedData>
21
22QT_BEGIN_NAMESPACE
23
24class QGeoTileSpecPrivate : public QSharedData
25{
26public:
27 QGeoTileSpecPrivate(const QString &plugin = {}, int mapId = 0,
28 int zoom = -1, int x = -1, int y = -1, int version = -1)
29 : plugin_(plugin), mapId_(mapId), zoom_(zoom),
30 x_(x), y_(y), version_(version)
31 {}
32
33
34 size_t hash(size_t seed) const
35 {
36 return qHashMulti(seed,
37 mapId_,
38 zoom_,
39 x_,
40 y_,
41 version_,
42 plugin_);
43 }
44
45 inline bool operator==(const QGeoTileSpecPrivate &rhs) const
46 {
47 return mapId_ == rhs.mapId_
48 && zoom_ == rhs.zoom_
49 && x_ == rhs.x_
50 && y_ == rhs.y_
51 && version_ == rhs.version_
52 && plugin_ == rhs.plugin_;
53 }
54 bool operator<(const QGeoTileSpecPrivate &rhs) const;
55
56 QString plugin_;
57 int mapId_ = 0;
58 int zoom_ = -1;
59 int x_ = -1;
60 int y_ = -1;
61 int version_ = -1;
62};
63
65
66#endif // QGEOTILESPEC_P_H
Combined button and popup list for selecting options.
QDebug operator<<(QDebug dbg, const QFileInfo &fi)