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
4#ifndef QGEOFILETILECACHEOSM_H
5#define QGEOFILETILECACHEOSM_H
6
8#include <QtLocation/private/qgeofiletilecache_p.h>
9#include <QHash>
10#include <qatomic.h>
11#include <QDir>
12
14
16{
18public:
21 const QString &directory = QString(), QObject *parent = nullptr);
23
24 QSharedPointer<QGeoTileTexture> get(const QGeoTileSpec &spec) override;
25
28
29protected Q_SLOTS:
31 void onProviderResolutionError(const QGeoTileProviderOsm *provider, QNetworkReply::NetworkError error);
32
33protected:
34 void init() override;
35 inline QString tileSpecToFilename(const QGeoTileSpec &spec, const QString &format, int providerId) const;
36 QString tileSpecToFilename(const QGeoTileSpec &spec, const QString &format, const QString &directory) const override;
37 QGeoTileSpec filenameToTileSpec(const QString &filename) const override;
38 QSharedPointer<QGeoTileTexture> getFromOfflineStorage(const QGeoTileSpec &spec);
39 void dropTiles(int mapId);
40 void loadTiles(int mapId);
41
43
49};
50
51QT_END_NAMESPACE
52
53#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)