Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qplacesearchreplyosm.h
Go to the documentation of this file.
1// Copyright (C) 2016 Aaron McCarthy <mccarthy.aaron@gmail.com>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QPLACESEARCHREPLYOSM_H
5#define QPLACESEARCHREPLYOSM_H
6
7#include <QtLocation/QPlaceSearchReply>
8#include <QNetworkReply>
9
11
12class QNetworkReply;
14class QPlaceResult;
15
17{
19
20public:
24
26
27private slots:
28 void setError(QPlaceReply::Error errorCode, const QString &errorString);
29 void replyFinished();
30 void networkError(QNetworkReply::NetworkError error);
31
32private:
33 QPlaceResult parsePlaceResult(const QJsonObject &item) const;
34};
35
37
38#endif // QPLACESEARCHREPLYOSM_H
\inmodule QtCore\reentrant
Definition qjsonobject.h:20
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
NetworkError
Indicates all possible error conditions found during the processing of the request.
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
QPlaceReply::Error error() const
Returns the error code.
Error
Describes an error which occurred during an operation.
Definition qplacereply.h:18
QString errorString() const
Returns the error string of the reply.
\inmodule QtLocation
QPlaceSearchReplyOsm(const QPlaceSearchRequest &request, QNetworkReply *reply, QPlaceManagerEngineOsm *parent)
\inmodule QtLocation
QPlaceSearchRequest request() const
Returns the search request that was used to generate this reply.
\inmodule QtLocation
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
#define Q_OBJECT
#define slots
QGraphicsItem * item
QNetworkReply * reply