5#include "../qplacemanagerengine_nokiav2.h"
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>
66 for (
int i = 0;
i < categoryArray.
count(); ++
i)
77 for (
int i = 0;
i < contacts.
count(); ++
i) {
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.
bool contains(const QString &key) const
Returns true if the object contains key key.
QJsonObject toObject() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
double toDouble(double defaultValue=0) const
Converts the value to a double and returns it.
const_reference at(qsizetype i) const noexcept
T value(qsizetype i) const
qsizetype count() const noexcept
void append(parameter_type t)
iterator insert(const Key &key, const T &value)
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 setValue(DataTag tag, const QVariant &)
Sets the value stored for the data tag to value.
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
qsizetype lastIndexOf(QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
QString mid(qsizetype position, qsizetype n=-1) const
Returns a string that contains n characters of this string, starting at the specified position index.
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