4#ifndef PLACEMANAGERENGINEESRI_H
5#define PLACEMANAGERENGINEESRI_H
7#include <QtLocation/QPlaceManagerEngine>
8#include <QtLocation/QGeoServiceProvider>
12class PlaceCategoriesReplyEsri;
13class QNetworkAccessManager;
34 void setLocales(
const QList<QLocale> &locales)
override;
38 void geocodeServerReplyError();
40 void replyError(QPlaceReply::Error errorCode,
const QString &errorString);
43 QNetworkAccessManager *m_networkManager =
nullptr;
46 void initializeGeocodeServer();
48 QNetworkReply *m_geocodeServerReply =
nullptr;
51 void finishCategories();
52 void errorCaterogies(
const QString &error);
53 void parseCategories(
const QJsonArray &jsonArray,
const QString &parentCategoryId);
55 QList<PlaceCategoriesReplyEsri *> m_pendingCategoriesReply;
56 QHash<QString, QPlaceCategory> m_categories;
57 QHash<QString, QStringList> m_subcategories;
58 QHash<QString, QString> m_parentCategory;
61 QString localizedName(
const QJsonObject &jsonObject);
62 void parseCandidateFields(
const QJsonArray &jsonArray);
63 void parseCountries(
const QJsonArray &jsonArray);
65 QList<QLocale> m_locales;
66 QHash<QString, QString> m_candidateFieldsLocale;
67 QHash<QString, QString> m_countriesLocale;
QGeoMap * createMap() override
const QList< GeoMapSource * > & mapSources() const
virtual ~GeoTiledMappingManagerEngineEsri()
GeoMapSource * mapSource(int mapId) const
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.
QPlaceSearchReply * search(const QPlaceSearchRequest &request) 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.
QList< QLocale > locales() const override
Returns a list of preferred locales.
~PlaceManagerEngineEsri()
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.
QString parentCategoryId(const QString &categoryId) const override
Returns the parent category identifier of the category corresponding to categoryId.