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
qgeofiletilecacheosm.h
Go to the documentation of this file.
1// Copyright (C) 2016 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
5#ifndef QGEOFILETILECACHEOSM_H
6#define QGEOFILETILECACHEOSM_H
7
9#include <QtLocation/private/qgeofiletilecache_p.h>
10#include <QHash>
11#include <qatomic.h>
12#include <QDir>
13
15
17{
19public:
22 const QString &directory = QString(), QObject *parent = nullptr);
24
25 QSharedPointer<QGeoTileTexture> get(const QGeoTileSpec &spec) override;
26
29
30protected Q_SLOTS:
32 void onProviderResolutionError(const QGeoTileProviderOsm *provider, QNetworkReply::NetworkError error);
33
34protected:
35 void init() override;
36 inline QString tileSpecToFilename(const QGeoTileSpec &spec, const QString &format, int providerId) const;
37 QString tileSpecToFilename(const QGeoTileSpec &spec, const QString &format, const QString &directory) const override;
38 QGeoTileSpec filenameToTileSpec(const QString &filename) const override;
39 QSharedPointer<QGeoTileTexture> getFromOfflineStorage(const QGeoTileSpec &spec);
40 void dropTiles(int mapId);
41 void loadTiles(int mapId);
42
44
50};
51
52QT_END_NAMESPACE
53
54#endif // QGEOFILETILECACHEOSM_H
void onProviderResolutionError(const QGeoTileProviderOsm *provider, QNetworkReply::NetworkError error)
QList< QDateTime > m_maxMapIdTimestamps
QSharedPointer< QGeoTileTexture > getFromOfflineStorage(const QGeoTileSpec &spec)
QList< QGeoTileProviderOsm * > m_providers
QString tileSpecToFilename(const QGeoTileSpec &spec, const QString &format, const QString &directory) const override
QGeoTileSpec filenameToTileSpec(const QString &filename) const override
QString tileSpecToFilename(const QGeoTileSpec &spec, const QString &format, int providerId) const
QSharedPointer< QGeoTileTexture > get(const QGeoTileSpec &spec) override
void clearObsoleteTiles(const QGeoTileProviderOsm *p)
Combined button and popup list for selecting options.