7#include <QtCore/QJsonDocument>
8#include <QtCore/QJsonArray>
9#include <QtCore/QJsonObject>
10#include <QtNetwork/QNetworkReply>
11#include <QtPositioning/QGeoAddress>
12#include <QtPositioning/QGeoCircle>
13#include <QtPositioning/QGeoLocation>
14#include <QtPositioning/QGeoRectangle>
15#include <QtLocation/QPlace>
16#include <QtLocation/QPlaceAttribute>
17#include <QtLocation/QPlaceContactDetail>
18#include <QtLocation/QPlaceRatings>
19#include <QtLocation/QPlaceResult>
20#include <QtLocation/QPlaceSearchRequest>
21#include <QtLocation/private/qplacesearchrequest_p.h>
77void PlaceSearchReplyEsri::replyFinished()
100 for (
const auto result : resultsArray)
126 if (!
value.isEmpty())
PlaceSearchReplyEsri(const QPlaceSearchRequest &request, QNetworkReply *reply, const QHash< QString, QString > &candidateFields, const QHash< QString, QString > &countries, PlaceManagerEngineEsri *parent)
void setCountry(const QString &country)
Sets the country name.
void setStreet(const QString &street)
Sets the street name to street.
void setCounty(const QString &county)
Sets the county.
void setPostalCode(const QString &postalCode)
Sets the postalCode.
void setDistrict(const QString &district)
Sets the district.
void setCity(const QString &city)
Sets the city.
void setState(const QString &state)
Sets the state.
void setCoordinate(const QGeoCoordinate &position)
Sets the coordinate of the location.
void setAddress(const QGeoAddress &address)
Sets the address of the location.
void setBoundingShape(const QGeoShape &shape)
T value(const Key &key) const noexcept
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
\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.
\inmodule QtCore\reentrant
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.
bool isArray() const
Returns true if the value contains an array.
QString toString() const
Converts the value to a QString and returns it.
QVariant toVariant() const
Converts the value to a \l {QVariant::}{QVariant()}.
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.
QObject * parent() const
Returns a pointer to the parent object.
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
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 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.
QList< QPlaceSearchResult > results() const
Returns a list of search results;.
void setResults(const QList< QPlaceSearchResult > &results)
Sets the list of search results.
void setPlaceId(const QString &identifier)
Sets the identifier of the place.
void appendContactDetail(const QString &contactType, const QPlaceContactDetail &detail)
Appends a contact detail of a specified contactType.
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
QString toString() const
Returns the variant as a QString if the variant has a userType() including, but not limited to:
list append(new Employee("Blackpool", "Stephen"))
Combined button and popup list for selecting options.
emscripten::val document()
static const QString kLocationKey(QStringLiteral("location"))
static const QString kXKey(QStringLiteral("x"))
static const QString kYminKey(QStringLiteral("ymin"))
static const QString kExtentKey(QStringLiteral("extent"))
static const QString kStAddrKey(QStringLiteral("StAddr"))
static const QString kAttributesKey(QStringLiteral("attributes"))
static const QString kDistrictKey(QStringLiteral("District"))
static const QString kPhoneKey(QStringLiteral("Phone"))
static const QString kYmaxKey(QStringLiteral("ymax"))
static const QString kXmaxKey(QStringLiteral("xmax"))
static const QString kAddressKey(QStringLiteral("address"))
static const QString kDistanceKey(QStringLiteral("Distance"))
static const QString kStateKey(QStringLiteral("State"))
static const QString kPostalKey(QStringLiteral("Postal"))
static const QString kXminKey(QStringLiteral("xmin"))
static const QString kLongLabelKey(QStringLiteral("LongLabel"))
static const QString kCountryKey(QStringLiteral("Country"))
static const QString kYKey(QStringLiteral("y"))
static const QString kRegionKey(QStringLiteral("Region"))
static const QString kLocationKey(QStringLiteral("location"))
static const QString kCandidatesKey(QStringLiteral("candidates"))
static const QString kCityKey(QStringLiteral("City"))
DBusConnection const char DBusError * error
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
EGLOutputLayerEXT EGLint attribute
#define QStringLiteral(str)
QNetworkRequest request(url)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent