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
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
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
46{
47 return m_token;
48}
49
51{
52 m_token = token;
53}
54
56
57#endif // GEOTILEFETCHERESRI_H
GeoTileFetcherEsri(QGeoTiledMappingManagerEngine *parent)
void setUserAgent(const QByteArray &userAgent)
const QByteArray & userAgent() const
const QString & token() const
void setToken(const QString &token)
QGeoTiledMapReply * getTileImage(const QGeoTileSpec &spec) override
\inmodule QtCore
Definition qbytearray.h:57
\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
Token token
Definition keywords.cpp:444
Combined button and popup list for selecting options.
#define Q_OBJECT