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>.
|
#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>
Go to the source code of this file.
QList< QPlaceCategory > parseCategories | ( | const QJsonArray & | categoryArray, |
const QPlaceManagerEngineNokiaV2 * | engine ) |
Definition at line 60 of file jsonparserhelpers.cpp.
References engine, i, parseCategory(), and Q_ASSERT.
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().
void parseCollection | ( | QPlaceContent::Type | type, |
const QJsonObject & | object, | ||
QPlaceContent::Collection * | collection, | ||
int * | totalCount, | ||
QPlaceContentRequest * | previous, | ||
QPlaceContentRequest * | next, | ||
const QPlaceManagerEngineNokiaV2 * | engine ) |
Definition at line 176 of file jsonparserhelpers.cpp.
References QList< T >::at(), contains(), QList< T >::count(), QPlaceContent::EditorialType, engine, i, QPlaceContent::ImageType, items, next, QPlaceContent::NoType, parseEditorial(), parseImage(), parseReview(), Q_ASSERT, QStringLiteral, QPlaceContent::ReviewType, QPlaceContentRequest::setContentContext(), QPlaceContentRequest::setContentType(), toString(), and QList< T >::value().
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().
QT_BEGIN_NAMESPACE QGeoCoordinate parseCoordinate | ( | const QJsonArray & | coordinateArray | ) |
Definition at line 23 of file jsonparserhelpers.cpp.
Referenced by LocationSingleton::path(), and QtPositioningDeclarative_initializeModule().
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().
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().
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().
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().