4#ifndef QPLACEMANAGERENGINEOSM_H
5#define QPLACEMANAGERENGINEOSM_H
7#include <QtLocation/QPlaceManagerEngine>
8#include <QtLocation/QGeoServiceProvider>
12class QNetworkAccessManager;
14class QPlaceCategoriesReplyOsm;
35 void setLocales(
const QList<QLocale> &locales)
override;
39 void categoryReplyError();
41 void replyError(QPlaceReply::Error errorCode,
const QString &errorString);
44 void fetchNextCategoryLocale();
46 QNetworkAccessManager *m_networkManager;
47 QByteArray m_userAgent;
49 QList<QLocale> m_locales;
50 bool m_debugQuery =
false;
53 QNetworkReply *m_categoriesReply;
54 QList<QPlaceCategoriesReplyOsm *> m_pendingCategoriesReply;
55 QHash<QString, QPlaceCategory> m_categories;
56 QHash<QString, QStringList> m_subcategories;
58 QList<QLocale> m_categoryLocales;
QGeoTiledMappingManagerEngineOsm(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString)
const QList< QGeoTileProviderOsm * > & providers()
QString customCopyright() const
QGeoMap * createMap() override
~QGeoTiledMappingManagerEngineOsm()
void onProviderResolutionError(const QGeoTileProviderOsm *provider)
QStringList childCategoryIds(const QString &categoryId) const override
Returns the child category identifiers of the category corresponding to categoryId.
QPlaceReply * initializeCategories() override
Initializes the categories of the manager engine.
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.
QPlaceCategory category(const QString &categoryId) const override
Returns the category corresponding to the given categoryId.
QPlaceSearchReply * search(const QPlaceSearchRequest &request) override
Searches for places according to the parameters specified in request.
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.
~QPlaceManagerEngineOsm()