4#ifndef QPLACEMANAGERENGINEMAPBOX_H
5#define QPLACEMANAGERENGINEMAPBOX_H
7#include <QtLocation/QPlaceManagerEngine>
8#include <QtLocation/QGeoServiceProvider>
12class QNetworkAccessManager;
34 void setLocales(
const QList<QLocale> &locales)
override;
44 void onReplyError(QPlaceReply::Error,
const QString &errorString);
47 enum PlaceSearchType {
52 QPlaceReply *doSearch(
const QPlaceSearchRequest&, PlaceSearchType);
54 QNetworkAccessManager *m_networkManager;
55 QByteArray m_userAgent;
56 QString m_accessToken;
60 QList<QLocale> m_locales;
61 QHash<QString, QPlaceCategory> m_categories;
QGeoMap * createMap() override
~QGeoTiledMappingManagerEngineMapbox()
QPlaceReply * initializeCategories() override
Initializes the categories of the manager engine.
QStringList childCategoryIds(const QString &categoryId) const override
Returns the child category identifiers of the category corresponding to categoryId.
QList< QLocale > locales() const override
Returns a list of preferred locales.
~QPlaceManagerEngineMapbox()
QPlaceSearchReply * search(const QPlaceSearchRequest &) override
Searches for places according to the parameters specified in request.
QList< QPlaceCategory > childCategories(const QString &parentId) const override
Returns a list of categories that are children of the category corresponding to parentId.
QString parentCategoryId(const QString &categoryId) const override
Returns the parent category identifier of the category corresponding to categoryId.
void setLocales(const QList< QLocale > &locales) override
Set the list of preferred locales.
QPlaceCategory category(const QString &categoryId) const override
Returns the category corresponding to the given categoryId.
QPlaceSearchSuggestionReply * searchSuggestions(const QPlaceSearchRequest &) override
Requests a set of search term suggestions according to the parameters specified in request.
static QT_BEGIN_NAMESPACE QString msgAccessTokenParameter()