7#include <QtCore/QCoreApplication>
8#include <QtCore/QDateTime>
9#include <QtCore/QJsonObject>
10#include <QtCore/QJsonArray>
11#include <QtCore/QVariantMap>
12#include <QtPositioning/QGeoCoordinate>
13#include <QtLocation/QPlaceContentRequest>
14#include <QtLocation/QPlaceIcon>
15#include <QtLocation/QPlaceSupplier>
16#include <QtLocation/QPlaceContent>
17#include <QtLocation/QPlaceUser>
18#include <QtLocation/QPlaceContactDetail>
19#include <QtLocation/QPlaceCategory>
25 return QGeoCoordinate(coordinateArray.at(0).toDouble(), coordinateArray.at(1).toDouble());
65 QList<QPlaceCategory> categoryList;
66 for (
int i = 0;
i < categoryArray.count(); ++
i)
75 QList<QPlaceContactDetail> contactDetails;
77 for (
int i = 0;
i < contacts.
count(); ++
i) {
84 contactDetails.append(
detail);
87 return contactDetails;
184 *totalCount =
object.value(
QStringLiteral(
"available")).toDouble();
\inmodule QtCore\reentrant
qsizetype count() const
Same as size().
QJsonValue at(qsizetype i) const
Returns a QJsonValue representing the value for index i.
\inmodule QtCore\reentrant
QJsonValue value(const QString &key) const
Returns a QJsonValue representing the value for the key key.
QJsonObject toObject() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
const_reference at(qsizetype i) const noexcept
T value(qsizetype i) const
qsizetype count() const noexcept
void setContentContext(const QVariant &context)
Sets the content context to context.
void setContentType(QPlaceContent::Type type)
Sets the type of content to be requested.
Type
Defines the type of content.
void setUrl(const QUrl &data)
Sets the url of the supplier's website.
void setName(const QString &data)
Sets the name of the supplier.
void setIcon(const QPlaceIcon &icon)
Sets the icon of the supplier.
void setUserId(const QString &identifier)
void setName(const QString &name)
\macro QT_RESTRICTED_CAST_FROM_ASCII
QString path(ComponentFormattingOptions options=FullyDecoded) const
Returns the path of the URL.
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
const QLoggingCategory & category()
[1]
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.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
static bool contains(const QJsonArray &haystack, unsigned needle)
GLenum GLuint GLintptr offset
#define QStringLiteral(str)
static double toDouble(Value v)
char * toString(const MyType &t)
[31]
\inmodule QtCore \reentrant