blob: 4fbd8ce42cabf4428f9feb7762fdfd8739119315 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright (C) 2016 Aaron McCarthy <mccarthy.aaron@gmail.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QPLACESEARCHREPLYOSM_H
#define QPLACESEARCHREPLYOSM_H
#include <QtLocation/QPlaceSearchReply>
#include <QNetworkReply>
QT_BEGIN_NAMESPACE
class QNetworkReply;
class QPlaceManagerEngineOsm;
class QPlaceResult;
class QPlaceSearchReplyOsm : public QPlaceSearchReply
{
Q_OBJECT
public:
QPlaceSearchReplyOsm(const QPlaceSearchRequest &request, QNetworkReply *reply,
QPlaceManagerEngineOsm *parent);
~QPlaceSearchReplyOsm();
QString requestUrl;
private slots:
void setError(QPlaceReply::Error errorCode, const QString &errorString);
void replyFinished();
void networkError(QNetworkReply::NetworkError error);
private:
QPlaceResult parsePlaceResult(const QJsonObject &item) const;
};
QT_END_NAMESPACE
#endif // QPLACESEARCHREPLYOSM_H
|