4#ifndef QPLACEMANAGERENGINE_NOKIAV2_H
5#define QPLACEMANAGERENGINE_NOKIAV2_H
7#include <QtCore/QPointer>
8#include <QtNetwork/QNetworkReply>
9#include <QtLocation/QPlaceCategory>
10#include <QtLocation/QPlaceManagerEngine>
11#include <QtLocation/QGeoServiceProvider>
15class QPlaceContentReply;
17class QNetworkAccessManager;
18class QPlaceCategoriesReplyHere;
53 QPlaceCategory
category(
const QString &categoryId)
const override;
57 void setLocales(
const QList<QLocale> &locales)
override;
60 const QList<QPlaceCategory> &categories = QList<QPlaceCategory>())
const;
65 QNetworkReply *sendRequest(
const QUrl &url);
66 QByteArray createLanguageString()
const;
70 void replyError(QPlaceReply::Error error_,
const QString &errorString);
71 void categoryReplyFinished();
72 void categoryReplyError();
78 QList<QLocale> m_locales;
82 QHash<QString, QString> m_restIdToIconHash;
84 QPointer<QPlaceCategoriesReplyHere> m_categoryReply;
85 QHash<QString, QNetworkReply *> m_categoryRequests;
89 QString m_localDataPath;
QPlaceContentReply * getPlaceContent(const QPlaceContentRequest &request) override
Retrieves content for a place according to the parameters specified in request.
QStringList childCategoryIds(const QString &categoryId) const override
Returns the child category identifiers of the category corresponding to categoryId.
QString parentCategoryId(const QString &categoryId) const override
Returns the parent category identifier of the category corresponding to categoryId.
QPlaceSearchSuggestionReply * searchSuggestions(const QPlaceSearchRequest &query) override
Requests a set of search term suggestions according to the parameters specified in request.
QPlaceReply * initializeCategories() override
Initializes the categories of the manager engine.
QPlaceDetailsReply * getPlaceDetails(const QString &placeId) override
Retrieves details of place corresponding to the given placeId.
QList< QPlaceCategory > childCategories(const QString &parentId) const override
Returns a list of categories that are children of the category corresponding to parentId.
QUrl constructIconUrl(const QPlaceIcon &icon, const QSize &size) const override
QUrl QPlaceManagerEngine::constructIconUrl(const QPlaceIcon &icon, const QSize &size)
QPlaceSearchReply * search(const QPlaceSearchRequest &query) override
Searches for places according to the parameters specified in request.
void setLocales(const QList< QLocale > &locales) override
Set the list of preferred locales.
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.
QPlaceIcon icon(const QString &remotePath, const QList< QPlaceCategory > &categories=QList< QPlaceCategory >()) const
~QPlaceManagerEngineNokiaV2()
QList< QPlaceContactDetail > parseContactDetails(const QJsonArray &contacts)
QList< QPlaceCategory > parseCategories(const QJsonArray &categoryArray, const QPlaceManagerEngineNokiaV2 *engine)
QT_BEGIN_NAMESPACE QGeoCoordinate parseCoordinate(const QJsonArray &coordinateArray)
QPlaceSupplier parseSupplier(const QJsonObject &supplierObject, const QPlaceManagerEngineNokiaV2 *engine)
QPlaceContent parseReview(const QJsonObject &reviewObject, const QPlaceManagerEngineNokiaV2 *engine)
QPlaceCategory parseCategory(const QJsonObject &categoryObject, const QPlaceManagerEngineNokiaV2 *engine)
void parseCollection(QPlaceContent::Type type, const QJsonObject &object, QPlaceContent::Collection *collection, int *totalCount, QPlaceContentRequest *previous, QPlaceContentRequest *next, const QPlaceManagerEngineNokiaV2 *engine)
QPlaceContent parseImage(const QJsonObject &imageObject, const QPlaceManagerEngineNokiaV2 *engine)
QPlaceContent parseEditorial(const QJsonObject &editorialObject, const QPlaceManagerEngineNokiaV2 *engine)
Combined button and popup list for selecting options.
QMap< QString, PlaceCategoryNode > QPlaceCategoryTree