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
qgeotilefetchermapbox.h
Go to the documentation of this file.
1// Copyright (C) 2014 Canonical 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 QGEOTILEFETCHERMAPBOX_H
5#define QGEOTILEFETCHERMAPBOX_H
6
7#include <qlist.h>
8#include <QtLocation/private/qgeotilefetcher_p.h>
9
11
14
16{
18
19public:
21
22 void setUserAgent(const QByteArray &userAgent);
23 void setMapIds(const QList<QString> &mapIds);
24 void setFormat(const QString &format);
25 void setAccessToken(const QString &accessToken);
26
27private:
28 QGeoTiledMapReply *getTileImage(const QGeoTileSpec &spec) override;
29
30 QNetworkAccessManager *m_networkManager;
31 QByteArray m_userAgent;
32 QString m_format;
33 QString m_replyFormat;
34 QString m_accessToken;
35 QList<QString> m_mapIds;
36 int m_scaleFactor;
37};
38
40
41#endif // QGEOTILEFETCHERMAPBOX_H
\inmodule QtCore
Definition qbytearray.h:57
QGeoTileFetcherMapbox(int scaleFactor, QGeoTiledMappingManagerEngine *parent)
void setMapIds(const QList< QString > &mapIds)
void setAccessToken(const QString &accessToken)
void setUserAgent(const QByteArray &userAgent)
QGeoTiledMapReply * getTileImage(const QGeoTileSpec &spec) override
void setFormat(const QString &format)
\inmodule QtLocation
The QNetworkAccessManager class allows the application to send network requests and receive replies.
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum format
#define Q_OBJECT