Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
placemanagerengine_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
PLACEMANAGERENGINEESRI_H
5
#
define
PLACEMANAGERENGINEESRI_H
6
7
#
include
<
QtLocation
/
QPlaceManagerEngine
>
8
#
include
<
QtLocation
/
QGeoServiceProvider
>
9
10
QT_BEGIN_NAMESPACE
11
12
class
PlaceCategoriesReplyEsri;
13
class
QNetworkAccessManager;
14
class
QNetworkReply;
15
16
class
PlaceManagerEngineEsri
:
public
QPlaceManagerEngine
17
{
18
Q_OBJECT
19
20
public
:
21
PlaceManagerEngineEsri
(
const
QVariantMap
&
parameters
,
QGeoServiceProvider
::
Error
*
error
,
QString
*
errorString
);
22
~
PlaceManagerEngineEsri
();
23
24
QPlaceSearchReply
*
search
(
const
QPlaceSearchRequest &request)
override
;
25
26
QPlaceReply
*
initializeCategories
()
override
;
27
QString
parentCategoryId
(
const
QString &categoryId)
const
override
;
28
QStringList
childCategoryIds
(
const
QString &categoryId)
const
override
;
29
QPlaceCategory
category
(
const
QString &categoryId)
const
override
;
30
31
QList
<
QPlaceCategory
>
childCategories
(
const
QString &parentId)
const
override
;
32
33
QList
<
QLocale
>
locales
()
const
override
;
34
void
setLocales
(
const
QList<QLocale> &locales)
override
;
35
36
private
slots
:
37
void
geocodeServerReplyFinished
();
38
void
geocodeServerReplyError();
39
void
replyFinished();
40
void
replyError(QPlaceReply::Error errorCode,
const
QString &errorString);
41
42
private
:
43
QNetworkAccessManager *m_networkManager =
nullptr
;
44
45
// geocode serveur
46
void
initializeGeocodeServer();
47
48
QNetworkReply *m_geocodeServerReply =
nullptr
;
49
50
// categories
51
void
finishCategories();
52
void
errorCaterogies(
const
QString &error);
53
void
parseCategories(
const
QJsonArray &jsonArray,
const
QString &parentCategoryId);
54
55
QList<PlaceCategoriesReplyEsri *> m_pendingCategoriesReply;
56
QHash<QString, QPlaceCategory> m_categories;
57
QHash<QString, QStringList> m_subcategories;
58
QHash<QString, QString> m_parentCategory;
59
60
// localized names
61
QString localizedName(
const
QJsonObject &jsonObject);
62
void
parseCandidateFields(
const
QJsonArray &jsonArray);
63
void
parseCountries(
const
QJsonArray &jsonArray);
64
65
QList<QLocale> m_locales;
66
QHash<QString, QString> m_candidateFieldsLocale;
67
QHash<QString, QString> m_countriesLocale;
68
void
localizedName();
69
};
70
71
QT_END_NAMESPACE
72
73
#
endif
// PLACEMANAGERENGINEESRI_H
GeoRoutingManagerEngineEsri
Definition
georoutingmanagerengine_esri.h:15
GeoTiledMappingManagerEngineEsri
Definition
geotiledmappingmanagerengine_esri.h:16
GeoTiledMappingManagerEngineEsri::createMap
QGeoMap * createMap() override
Definition
geotiledmappingmanagerengine_esri.cpp:185
GeoTiledMappingManagerEngineEsri::mapSources
const QList< GeoMapSource * > & mapSources() const
Definition
geotiledmappingmanagerengine_esri.h:35
GeoTiledMappingManagerEngineEsri::~GeoTiledMappingManagerEngineEsri
virtual ~GeoTiledMappingManagerEngineEsri()
Definition
geotiledmappingmanagerengine_esri.cpp:180
GeoTiledMappingManagerEngineEsri::mapSource
GeoMapSource * mapSource(int mapId) const
Definition
geotiledmappingmanagerengine_esri.cpp:255
PlaceManagerEngineEsri
Definition
placemanagerengine_esri.h:17
PlaceManagerEngineEsri::initializeCategories
QPlaceReply * initializeCategories() override
Initializes the categories of the manager engine.
Definition
placemanagerengine_esri.cpp:146
PlaceManagerEngineEsri::childCategoryIds
QStringList childCategoryIds(const QString &categoryId) const override
Returns the child category identifiers of the category corresponding to categoryId.
Definition
placemanagerengine_esri.cpp:199
PlaceManagerEngineEsri::search
QPlaceSearchReply * search(const QPlaceSearchRequest &request) override
Searches for places according to the parameters specified in request.
Definition
placemanagerengine_esri.cpp:65
PlaceManagerEngineEsri::childCategories
QList< QPlaceCategory > childCategories(const QString &parentId) const override
Returns a list of categories that are children of the category corresponding to parentId.
Definition
placemanagerengine_esri.cpp:209
PlaceManagerEngineEsri::locales
QList< QLocale > locales() const override
Returns a list of preferred locales.
Definition
placemanagerengine_esri.cpp:53
PlaceManagerEngineEsri::~PlaceManagerEngineEsri
~PlaceManagerEngineEsri()
Definition
placemanagerengine_esri.cpp:49
PlaceManagerEngineEsri::setLocales
void setLocales(const QList< QLocale > &locales) override
Set the list of preferred locales.
Definition
placemanagerengine_esri.cpp:58
PlaceManagerEngineEsri::category
QPlaceCategory category(const QString &categoryId) const override
Returns the category corresponding to the given categoryId.
Definition
placemanagerengine_esri.cpp:204
PlaceManagerEngineEsri::parentCategoryId
QString parentCategoryId(const QString &categoryId) const override
Returns the parent category identifier of the category corresponding to categoryId.
Definition
placemanagerengine_esri.cpp:194
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtlocation
src
plugins
geoservices
esri
placemanagerengine_esri.h
Generated on
for Qt by
1.18.0