Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
jsonparserhelpers.h File Reference
#include <QtLocation/QPlaceContent>
+ Include dependency graph for jsonparserhelpers.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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 QList< T >::append(), QJsonArray::at(), QJsonArray::count(), engine, i, parseCategory(), Q_ASSERT, and QJsonValue::toObject().

+ 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, QString::lastIndexOf(), QString::mid(), QUrl::path(), Q_ASSERT, QStringLiteral, toString(), and QJsonObject::value().

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 QList< T >::append(), QJsonArray::at(), QJsonArray::count(), i, QStringLiteral, QJsonValue::toObject(), toString(), and QJsonObject::value().

+ Here is the call graph for this function:

◆ parseCoordinate()

QGeoCoordinate parseCoordinate ( const QJsonArray coordinateArray)

Definition at line 23 of file jsonparserhelpers.cpp.

References QJsonArray::at(), and QJsonValue::toDouble().

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

+ Here is the call graph for this function:
+ 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, QPlaceContent::setValue(), toString(), and QJsonObject::value().

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, toString(), and QJsonObject::value().

Referenced by 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 QJsonObject::contains(), 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(), QPlaceContent::setValue(), 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(), toString(), and QJsonObject::value().

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

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