4#ifndef PLACEMANAGERENGINEESRI_H
5#define PLACEMANAGERENGINEESRI_H
7#include <QtLocation/QPlaceManagerEngine>
8#include <QtLocation/QGeoServiceProvider>
33 QList<QLocale>
locales()
const override;
37 void geocodeServerReplyFinished();
38 void geocodeServerReplyError();
46 void initializeGeocodeServer();
51 void finishCategories();
55 QList<PlaceCategoriesReplyEsri *> m_pendingCategoriesReply;
56 QHash<QString, QPlaceCategory> m_categories;
57 QHash<QString, QStringList> m_subcategories;
58 QHash<QString, QString> m_parentCategory;
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;
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.
PlaceManagerEngineEsri(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString)
QString parentCategoryId(const QString &categoryId) const override
Returns the parent category identifier of the category corresponding to categoryId.
Error
Describes an error related to the loading and setup of a service provider plugin.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QNetworkAccessManager class allows the application to send network requests and receive replies.
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
Error
Describes an error which occurred during an operation.
\macro QT_RESTRICTED_CAST_FROM_ASCII
const QLoggingCategory & category()
[1]
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
QNetworkRequest request(url)