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
qgeotilefetcherosm.h
Go to the documentation of this file.
1// Copyright (C) 2016 Aaron McCarthy <mccarthy.aaron@gmail.com>
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 QGEOTILEFETCHEROSM_H
6#define QGEOTILEFETCHEROSM_H
7
9#include <QtLocation/private/qgeotilefetcher_p.h>
10#include <QList>
11
13
14class QNetworkAccessManager;
15class QGeoMappingManagerEngine;
17
19{
20 Q_OBJECT
21 Q_DECLARE_PRIVATE(QGeoTileFetcherOsm)
22
23 friend class QGeoMapReplyOsm;
25public:
26 QGeoTileFetcherOsm(const QList<QGeoTileProviderOsm *> &providers, QNetworkAccessManager *nm,
27 QGeoMappingManagerEngine *parent);
28
29 void setUserAgent(const QByteArray &userAgent);
30
33
34protected:
35 bool initialized() const override;
36
37protected Q_SLOTS:
40 void restartTimer();
41
42private:
43 QGeoTiledMapReply *getTileImage(const QGeoTileSpec &spec) override;
44 void readyUpdated();
45
46 QByteArray m_userAgent;
47 QList<QGeoTileProviderOsm *> m_providers;
48 QNetworkAccessManager *m_nm;
49 bool m_ready;
50};
51
52QT_END_NAMESPACE
53
54#endif // QGEOTILEFETCHEROSM_H
bool initialized() const override
void onProviderResolutionError(const QGeoTileProviderOsm *provider)
QGeoTiledMapReply * getTileImage(const QGeoTileSpec &spec) override
void setUserAgent(const QByteArray &userAgent)
QGeoTileFetcherOsm(const QList< QGeoTileProviderOsm * > &providers, QNetworkAccessManager *nm, QGeoMappingManagerEngine *parent)
void evaluateCopyrights(const QSet< QGeoTileSpec > &visibleTiles) override
Combined button and popup list for selecting options.