Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
jsonparserhelpers.cpp File Reference

(cd4db512ae08836f5fa1d746000052215cf70a9c)

#include "jsonparserhelpers.h"
#include "../qplacemanagerengine_nokiav2.h"
#include <QtCore/QCoreApplication>
#include <QtCore/QDateTime>
#include <QtCore/QJsonObject>
#include <QtCore/QJsonArray>
#include <QtCore/QVariantMap>
#include <QtPositioning/QGeoCoordinate>
#include <QtLocation/QPlaceContentRequest>
#include <QtLocation/QPlaceIcon>
#include <QtLocation/QPlaceSupplier>
#include <QtLocation/QPlaceContent>
#include <QtLocation/QPlaceUser>
#include <QtLocation/QPlaceContactDetail>
#include <QtLocation/QPlaceCategory>
+ Include dependency graph for jsonparserhelpers.cpp:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE QGeoCoordinate parseCoordinate (const QJsonArray &coordinateArray)
 
QPlaceSupplier parseSupplier (const QJsonObject &supplierObject, const QPlaceManagerEngineNokiaV2 *engine)
 
QPlaceCategory parseCategory (const QJsonObject &categoryObject, const QPlaceManagerEngineNokiaV2 *engine)
 
QList< QPlaceCategoryparseCategories (const QJsonArray &categoryArray, const QPlaceManagerEngineNokiaV2 *engine)
 
QList< QPlaceContactDetailparseContactDetails (const QJsonArray &contacts)
 
QPlaceContent parseImage (const QJsonObject &imageObject, const QPlaceManagerEngineNokiaV2 *engine)
 
QPlaceContent parseReview (const QJsonObject &reviewObject, const QPlaceManagerEngineNokiaV2 *engine)
 
QPlaceContent parseEditorial (const QJsonObject &editorialObject, const QPlaceManagerEngineNokiaV2 *engine)
 
void parseCollection (QPlaceContent::Type type, const QJsonObject &object, QPlaceContent::Collection *collection, int *totalCount, QPlaceContentRequest *previous, QPlaceContentRequest *next, const QPlaceManagerEngineNokiaV2 *engine)
 

Function Documentation

◆ parseCategories()

QList< QPlaceCategory > parseCategories ( const QJsonArray & categoryArray,
const QPlaceManagerEngineNokiaV2 * engine )

Definition at line 60 of file jsonparserhelpers.cpp.

References engine, i, parseCategory(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ parseCategory()

QPlaceCategory parseCategory ( const QJsonObject & categoryObject,
const QPlaceManagerEngineNokiaV2 * engine )

Definition at line 42 of file jsonparserhelpers.cpp.

References category(), engine, QUrl::path(), Q_ASSERT, QStringLiteral, and toString().

Referenced by parseCategories().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseCollection()

void parseCollection ( QPlaceContent::Type type,
const QJsonObject & object,
QPlaceContent::Collection * collection,
int * totalCount,
QPlaceContentRequest * previous,
QPlaceContentRequest * next,
const QPlaceManagerEngineNokiaV2 * engine )

◆ parseContactDetails()

QList< QPlaceContactDetail > parseContactDetails ( const QJsonArray & contacts)

Definition at line 73 of file jsonparserhelpers.cpp.

References QJsonArray::at(), QJsonArray::count(), i, QStringLiteral, QJsonValue::toObject(), and toString().

+ Here is the call graph for this function:

◆ parseCoordinate()

QT_BEGIN_NAMESPACE QGeoCoordinate parseCoordinate ( const QJsonArray & coordinateArray)

Definition at line 23 of file jsonparserhelpers.cpp.

Referenced by LocationSingleton::path(), and QtPositioningDeclarative_initializeModule().

+ Here is the caller graph for this function:

◆ parseEditorial()

QPlaceContent parseEditorial ( const QJsonObject & editorialObject,
const QPlaceManagerEngineNokiaV2 * engine )

Definition at line 153 of file jsonparserhelpers.cpp.

References QPlaceContent::ContentAttribution, QPlaceContent::ContentSupplier, QPlaceContent::EditorialLanguage, QPlaceContent::EditorialText, QPlaceContent::EditorialType, engine, QVariant::fromValue(), parseSupplier(), Q_ASSERT, QStringLiteral, and toString().

Referenced by parseCollection().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseImage()

QPlaceContent parseImage ( const QJsonObject & imageObject,
const QPlaceManagerEngineNokiaV2 * engine )

Definition at line 90 of file jsonparserhelpers.cpp.

References QPlaceContent::ContentAttribution, QPlaceContent::ContentSupplier, engine, QVariant::fromValue(), QPlaceContent::ImageType, QPlaceContent::ImageUrl, parseSupplier(), Q_ASSERT, QStringLiteral, and toString().

Referenced by QT_BEGIN_NAMESPACE::addTagToMetaData(), and parseCollection().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseReview()

QPlaceContent parseReview ( const QJsonObject & reviewObject,
const QPlaceManagerEngineNokiaV2 * engine )

Definition at line 107 of file jsonparserhelpers.cpp.

References QPlaceContent::ContentAttribution, QPlaceContent::ContentSupplier, QPlaceContent::ContentUser, engine, QVariant::fromValue(), parseSupplier(), Q_ASSERT, QStringLiteral, QPlaceContent::ReviewDateTime, QPlaceContent::ReviewLanguage, QPlaceContent::ReviewRating, QPlaceContent::ReviewText, QPlaceContent::ReviewTitle, QPlaceContent::ReviewType, QPlaceUser::setName(), QPlaceUser::setUserId(), toDouble(), QJsonValue::toObject(), toString(), and QJsonObject::value().

Referenced by parseCollection().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseSupplier()

QPlaceSupplier parseSupplier ( const QJsonObject & supplierObject,
const QPlaceManagerEngineNokiaV2 * engine )

Definition at line 28 of file jsonparserhelpers.cpp.

References engine, Q_ASSERT, QStringLiteral, QPlaceSupplier::setIcon(), QPlaceSupplier::setName(), QPlaceSupplier::setUrl(), and toString().

Referenced by parseEditorial(), parseImage(), and parseReview().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: