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
qgeotiledmappingmanagerengine_nokia.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 QGEOTILEDMAPPINGMANAGERENGINE_NOKIA_H
5#define QGEOTILEDMAPPINGMANAGERENGINE_NOKIA_H
6
8#include <QtPositioning/QGeoRectangle>
9#include "qgeomaptype_p.h"
10#include "qgeomapversion.h"
11
12#include <QGeoServiceProvider>
13
14#include <QList>
15#include <QHash>
16#include <QSet>
17
19
20class QByteArray;
21class QGeoTileSpec;
23
25{
27
28public:
32 QString *errorString);
34
35 QGeoMap *createMap() override;
37 qreal zoomLevel,
38 const QSet<QGeoTileSpec> &tiles);
39 QString getScheme(int mapId) const;
40 QString getBaseScheme(int mapId) const;
41 int mapVersion() const;
42
43public Q_SLOTS:
45 void parseNewVersionInfo(const QByteArray &versionData);
46
47private:
48 class CopyrightDesc
49 {
50 public:
51 CopyrightDesc()
52 : maxLevel(-1),
53 minLevel(-1) {}
54
55 qreal maxLevel;
56 qreal minLevel;
57 QList<QGeoRectangle> boxes;
58 QString alt;
60 };
61
62 void initialize();
63 void populateMapSchemes();
64 void updateVersion(const QJsonObject &newVersionData);
65 void saveMapVersion();
66 void loadMapVersion();
67
68 QHash<QString, QList<CopyrightDesc> > m_copyrights;
69 QHash<int, QString> m_mapSchemes;
70 QGeoMapVersion m_mapVersion;
71
72 QString m_cacheDirectory;
73};
74
76
77#endif // QGEOTILEDMAPPINGMANAGERENGINE_NOKIA_H
\inmodule QtCore
Definition qbytearray.h:57
QVariantMap parameters() const
Error
Describes an error related to the loading and setup of a service provider plugin.
void parseNewVersionInfo(const QByteArray &versionData)
QString evaluateCopyrightsText(const QGeoMapType &mapType, qreal zoomLevel, const QSet< QGeoTileSpec > &tiles)
QGeoTiledMappingManagerEngineNokia(QGeoNetworkAccessManager *networkManager, const QVariantMap &parameters, QGeoServiceProvider::Error *error, QString *errorString)
void loadCopyrightsDescriptorsFromJson(const QByteArray &jsonData)
\inmodule QtCore\reentrant
Definition qjsonobject.h:20
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
GLuint GLsizei const GLchar * label
[43]
#define Q_OBJECT
#define Q_SLOTS
double qreal
Definition qtypes.h:187