Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qplacesearchreplyhere.h
Go to the documentation of this file.
1// Copyright (C) 2015 The Qt Company Ltd.
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 QPLACESEARCHREPLYHERE_H
5#define QPLACESEARCHREPLYHERE_H
6
7#include <QtNetwork/QNetworkReply>
8#include <QtLocation/QPlaceSearchReply>
9
11
13class QPlaceResult;
15
17{
19
20public:
25
26private slots:
27 void setError(QPlaceReply::Error error_, const QString &errorString);
28 void replyFinished();
29 void replyError(QNetworkReply::NetworkError error);
30
31private:
32 QPlaceResult parsePlaceResult(const QJsonObject &item) const;
33 QPlaceProposedSearchResult parseSearchResult(const QJsonObject &item) const;
34
36};
37
39
40#endif // QPLACESEARCHREPLYHERE_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:311
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
\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:127
Combined button and popup list for selecting options.
#define Q_OBJECT
#define slots
QGraphicsItem * item
QNetworkReply * reply