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
placesearchreply_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 PLACESEARCHREPLYESRI_H
5#define PLACESEARCHREPLYESRI_H
6
7#include <QtLocation/QPlaceSearchReply>
8#include <QNetworkReply>
9
11
13class QNetworkReply;
14class QPlaceResult;
15
17{
19
20public:
25
27
28private slots:
30 void replyFinished();
31 void networkError(QNetworkReply::NetworkError error);
32
33private:
34 QPlaceResult parsePlaceResult(const QJsonObject &item) const;
35
36 const QHash<QString, QString> &m_candidateFields;
37 const QHash<QString, QString> &m_countries;
38};
39
40QT_END_NAMESPACE
41
42#endif // PLACESEARCHREPLYESRI_H
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.
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.
static const QString kSingleLineKey(QStringLiteral("singleLine"))
static const QString kCountriesKey(QStringLiteral("detailedCountries"))
static const QString kLocalizedNamesKey(QStringLiteral("localizedNames"))
static const QString kOutFieldsKey(QStringLiteral("outFields"))
static const QString kCandidateFieldsKey(QStringLiteral("candidateFields"))
static const QString kMaxLocationsKey(QStringLiteral("maxLocations"))
static QT_BEGIN_NAMESPACE const QString kCategoriesKey(QStringLiteral("categories"))
static const QString kLocationKey(QStringLiteral("location"))
static const QUrl kUrlFindAddressCandidates("https://geocode.arcgis.com/arcgis/rest/services/World/" "GeocodeServer/findAddressCandidates")
static const QString kNameKey(QStringLiteral("name"))
static const QUrl kUrlGeocodeServer("https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer?f=pjson")