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 <QtPositioning/QGeoAddress>
14#include <QtPositioning/QGeoLocation>
15#include <QtPositioning/QGeoRectangle>
16#include <QtLocation/QPlace>
17#include <QtLocation/QPlaceAttribute>
18#include <QtLocation/QPlaceIcon>
19#include <QtLocation/QPlaceResult>
20#include <QtLocation/QPlaceRatings>
21#include <QtLocation/QPlaceProposedSearchResult>
22#include <QtLocation/private/qplacesearchrequest_p.h>
24#include <QtCore/QDebug>
40 this, &QPlaceSearchReplyHere::replyFinished);
42 this, &QPlaceSearchReplyHere::replyError);
59void QPlaceSearchReplyHere::replyFinished()
99 rpimpl->
page = rpimpl_orig->
page + 1;
108 rpimpl->
page = rpimpl_orig->
page - 1;
static QString translate(const char *context, const char *key, const char *disambiguation=nullptr, int n=-1)
\threadsafe
virtual bool contains(const QPointF &point) const
Returns true if this item contains point, which is in local coordinates; otherwise,...
QByteArray readAll()
Reads all remaining data from the device, and returns it as a byte array.
\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
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.
const_reference at(qsizetype i) const noexcept
qsizetype count() const noexcept
void append(parameter_type t)
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
void setText(const QString &text)
static const QString Provider
\variable QPlaceAttribute::Provider The constant to specify an attribute that defines which provider ...
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.
QPlaceSearchReplyHere(const QPlaceSearchRequest &request, QNetworkReply *reply, QPlaceManagerEngineNokiaV2 *parent)
void setRequest(const QPlaceSearchRequest &request)
Sets the search request used to generate this reply.
QPlaceSearchRequest request() const
Returns the search request that was used to generate this reply.
void setNextPageRequest(const QPlaceSearchRequest &next)
Sets the next page of search results request to next.
QList< QPlaceSearchResult > results() const
Returns a list of search results;.
void setPreviousPageRequest(const QPlaceSearchRequest &previous)
Sets the previous page of search results request to previous.
void setResults(const QList< QPlaceSearchResult > &results)
Sets the list of search results.
static const QPlaceSearchRequestPrivate * get(const QPlaceSearchRequest &request)
void setSearchContext(const QVariant &context)
Sets the search context to context.
void setVisibility(QLocation::Visibility visibility)
Sets the visibility of the place to visibility.
void setIcon(const QPlaceIcon &icon)
Sets the icon of the place.
void setCategory(const QPlaceCategory &category)
Sets a single category that this place belongs to.
void setPlaceId(const QString &identifier)
Sets the identifier of the place.
void setRatings(const QPlaceRatings &ratings)
Sets the aggregated rating of the place.
void setLocation(const QGeoLocation &location)
Sets the location of the place.
void setExtendedAttribute(const QString &attributeType, const QPlaceAttribute &attribute)
Assigns an attribute of the given attributeType to a place.
void setName(const QString &name)
Sets the name of the place.
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
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.
QT_BEGIN_NAMESPACE QGeoCoordinate parseCoordinate(const QJsonArray &coordinateArray)
QPlaceCategory parseCategory(const QJsonObject &categoryObject, const QPlaceManagerEngineNokiaV2 *engine)
Combined button and popup list for selecting options.
emscripten::val document()
DBusConnection const char DBusError * error
QT_BEGIN_NAMESPACE const char NOKIA_PLUGIN_CONTEXT_NAME[]
const char CANCEL_ERROR[]
const char NETWORK_ERROR[]
GLsizei const GLint * box
GLuint GLuint64EXT address
#define QStringLiteral(str)
static double toDouble(Value v)
QNetworkRequest request(url)
char * toString(const MyType &t)
[31]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent
QT_BEGIN_NAMESPACE bool toBool(const QString &str)