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
geotilefetcher_esri.h
Go to the documentation of this file.
1// Copyright (C) 2013-2018 Esri <contracts@esri.com>
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 GEOTILEFETCHERESRI_H
5#define GEOTILEFETCHERESRI_H
6
7#include <QtLocation/private/qgeotilefetcher_p.h>
8
10
11class QGeoTiledMappingManagerEngine;
12class QNetworkAccessManager;
13
15{
17
18public:
20
21 inline const QByteArray &userAgent() const;
22 inline void setUserAgent(const QByteArray &userAgent);
23
24 inline const QString &token() const;
25 inline void setToken(const QString &token);
26
27private:
28 QGeoTiledMapReply *getTileImage(const QGeoTileSpec &spec) override;
29
30 QNetworkAccessManager *m_networkManager;
31 QByteArray m_userAgent;
32 QString m_token;
33};
34
36{
37 return m_userAgent;
38}
39
40inline void GeoTileFetcherEsri::setUserAgent(const QByteArray &userAgent)
41{
42 m_userAgent = userAgent;
43}
44
45inline const QString &GeoTileFetcherEsri::token() const
46{
47 return m_token;
48}
49
50inline void GeoTileFetcherEsri::setToken(const QString &token)
51{
52 m_token = token;
53}
54
55QT_END_NAMESPACE
56
57#endif // GEOTILEFETCHERESRI_H
void setUserAgent(const QByteArray &userAgent)
const QByteArray & userAgent() const
const QString & token() const
void setToken(const QString &token)
QGeoTiledMapReply * getTileImage(const QGeoTileSpec &spec) override
static const QString kParamMaximumZoomLevel(kPrefixMapping+QStringLiteral("maximumZoomLevel"))
static const QString kPropCopyright(QStringLiteral("copyrightText"))
static const QString kPropMapSources(QStringLiteral("mapSources"))
static const QString kParamUserAgent(kPrefixEsri+QStringLiteral("useragent"))
static const QString kPropNight(QStringLiteral("night"))
static const QString kParamToken(kPrefixEsri+QStringLiteral("token"))
static const QString kPropName(QStringLiteral("name"))
static QT_BEGIN_NAMESPACE const QString kPrefixEsri(QStringLiteral("esri."))
static const QString kParamMinimumZoomLevel(kPrefixMapping+QStringLiteral("minimumZoomLevel"))
static const QString kPropMapId(QStringLiteral("mapId"))
static const QString kPrefixMapping(kPrefixEsri+QStringLiteral("mapping."))
static const QString kPropMobile(QStringLiteral("mobile"))
static const QString kPropStyle(QStringLiteral("style"))
static const QString kPropUrl(QStringLiteral("url"))
static const QString kPropDescription(QStringLiteral("description"))
Combined button and popup list for selecting options.