6#include "../qplacemanagerengine_nokiav2.h"
7#include "../qgeoerror_messages.h"
9#include <QCoreApplication>
10#include <QtCore/QJsonDocument>
11#include <QtCore/QJsonObject>
12#include <QtCore/QJsonArray>
13#include <QtNetwork/QNetworkReply>
14#include <QtPositioning/QGeoAddress>
15#include <QtPositioning/QGeoCoordinate>
16#include <QtPositioning/QGeoLocation>
17#include <QtPositioning/QGeoRectangle>
18#include <QtLocation/QPlace>
19#include <QtLocation/QPlaceAttribute>
20#include <QtLocation/QPlaceContactDetail>
21#include <QtLocation/QPlaceManager>
22#include <QtLocation/QPlaceSupplier>
23#include <QtLocation/QPlaceIcon>
24#include <QtLocation/QPlaceRatings>
25#include <QtLocation/QPlaceUser>
48 0, 4, 8, 12, 16, 20, 24, 28,
49 32, 36, 40, 44, 48, -1
71 this, &QPlaceDetailsReplyImpl::replyFinished);
73 this, &QPlaceDetailsReplyImpl::replyError);
90void QPlaceDetailsReplyImpl::replyFinished()
259 &collection, &totalCount, 0, 0, m_engine);
270 &collection, &totalCount, 0, 0, m_engine);
281 &collection, &totalCount, 0, 0, m_engine);
static QString translate(const char *context, const char *key, const char *disambiguation=nullptr, int n=-1)
\threadsafe
QByteArray readAll()
Reads all remaining data from the device, and returns it as a byte array.
QString errorString() const
Returns a human-readable description of the last device error that occurred.
\inmodule QtCore\reentrant
QJsonValue at(qsizetype i) const
Returns a QJsonValue representing the value for index i.
\inmodule QtCore\reentrant
static QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error=nullptr)
Parses json as a UTF-8 encoded JSON document, and creates a QJsonDocument from it.
\inmodule QtCore\reentrant
const_iterator constBegin() const
Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the first item in the object.
const_iterator constEnd() const
Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the imaginary item after the ...
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...
QJsonArray toArray() 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.
QString toString() const
Converts the value to a QString and returns it.
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
void errorOccurred(QNetworkReply::NetworkError)
NetworkError error() const
Returns the error that was found during the processing of this request.
virtual void abort()=0
Aborts the operation immediately and close down any network connections still open.
NetworkError
Indicates all possible error conditions found during the processing of the request.
void finished()
This signal is emitted when the reply has finished processing.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
QObject * sender() const
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; othe...
void destroyed(QObject *=nullptr)
This signal is emitted immediately before the object obj is destroyed, after any instances of QPointe...
void deleteLater()
\threadsafe
static const QString OpeningHours
\qmltype ExtendedAttributes \instantiates QQmlPropertyMap \inqmlmodule QtLocation
void setText(const QString &text)
static const QString Provider
\variable QPlaceAttribute::Provider The constant to specify an attribute that defines which provider ...
static const QString Payment
\variable QPlaceAttribute::Payment The constant to specify an attribute that defines the methods of p...
~QPlaceDetailsReplyImpl()
QPlaceDetailsReplyImpl(QNetworkReply *reply, QPlaceManagerEngineNokiaV2 *parent)
QPlace place() const
Returns the place that was fetched.
void setPlace(const QPlace &place)
Sets the fetched place of the reply.
QPlaceIcon icon(const QString &remotePath, const QList< QPlaceCategory > &categories=QList< QPlaceCategory >()) const
void setMaximum(qreal max)
void setAverage(qreal average)
QPlaceReply::Error error() const
Returns the error code.
void errorOccurred(QPlaceReply::Error error, const QString &errorString=QString())
This signal is emitted when an error has been detected in the processing of this reply.
void finished()
This signal is emitted when this reply has finished processing.
Error
Describes an error which occurred during an operation.
QString errorString() const
Returns the error string of the reply.
void setError(QPlaceReply::Error error, const QString &errorString)
Sets the error and errorString of the reply.
void setFinished(bool finished)
Sets the status of whether the reply is finished or not.
void setVisibility(QLocation::Visibility visibility)
Sets the visibility of the place to visibility.
void setDetailsFetched(bool fetched)
Sets whether the details of this place have been fetched or not.
void setIcon(const QPlaceIcon &icon)
Sets the icon of the place.
void setContactDetails(const QString &contactType, QList< QPlaceContactDetail > details)
Sets the contact details of a specified contactType.
void setTotalContentCount(QPlaceContent::Type type, int total)
Sets the totalCount of content objects of the given type.
void setPlaceId(const QString &identifier)
Sets the identifier of the place.
void setAttribution(const QString &attribution)
Sets the attribution string of the place.
void setRatings(const QPlaceRatings &ratings)
Sets the aggregated rating of the place.
void setContent(QPlaceContent::Type type, const QPlaceContent::Collection &content)
Sets a collection of content for the given type.
QList< QPlaceCategory > categories() const
Returns categories that this place belongs to.
void setLocation(const QGeoLocation &location)
Sets the location of the place.
void setCategories(const QList< QPlaceCategory > &categories)
Sets the categories that this place belongs to.
void setExtendedAttribute(const QString &attributeType, const QPlaceAttribute &attribute)
Assigns an attribute of the given attributeType to a place.
void setSupplier(const QPlaceSupplier &supplier)
Sets the supplier of this place to supplier.
void setName(const QString &name)
Sets the name of the place.
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool endsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string ends with s; otherwise returns false.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
QSet< QString >::iterator it
QList< QPlaceContactDetail > parseContactDetails(const QJsonArray &contacts)
QList< QPlaceCategory > parseCategories(const QJsonArray &categoryArray, const QPlaceManagerEngineNokiaV2 *engine)
QPlaceSupplier parseSupplier(const QJsonObject &supplierObject, const QPlaceManagerEngineNokiaV2 *engine)
void parseCollection(QPlaceContent::Type type, const QJsonObject &object, QPlaceContent::Collection *collection, int *totalCount, QPlaceContentRequest *previous, QPlaceContentRequest *next, const QPlaceManagerEngineNokiaV2 *engine)
Combined button and popup list for selecting options.
emscripten::val document()
DBusConnection const char DBusError * error
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
EGLOutputLayerEXT EGLint attribute
QT_BEGIN_NAMESPACE const char NOKIA_PLUGIN_CONTEXT_NAME[]
static bool contains(const QJsonArray &haystack, unsigned needle)
GLsizei const GLint * box
GLuint GLuint64EXT address
static bool countryTableContains(const QString &countryCode)
static const int COUNTRY_TABLE_indices[]
static QT_BEGIN_NAMESPACE const char COUNTRY_TABLE_string[]
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
QLatin1StringView QLatin1String
#define QStringLiteral(str)
static double toDouble(Value v)
char * toString(const MyType &t)
[31]
\inmodule QtCore \reentrant
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent