summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/mapbox/qplacesearchreplymapbox.h
blob: b3c656aa1b48eeb8643804fcf5418b75aacba220 (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
// Copyright (C) 2017 Mapbox, Inc.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef QPLACESEARCHREPLYMAPBOX_H
#define QPLACESEARCHREPLYMAPBOX_H

#include <QtLocation/QPlaceSearchReply>
#include <QNetworkReply>

QT_BEGIN_NAMESPACE

class QNetworkReply;
class QPlaceManagerEngineMapbox;
class QPlaceResult;

class QPlaceSearchReplyMapbox : public QPlaceSearchReply
{
    Q_OBJECT

public:
    QPlaceSearchReplyMapbox(const QPlaceSearchRequest &request, QNetworkReply *reply,
                          QPlaceManagerEngineMapbox *parent);
    ~QPlaceSearchReplyMapbox();

public slots:
    void setError(QPlaceReply::Error errorCode, const QString &errorString);

private slots:
    void onReplyFinished();
    void onNetworkError(QNetworkReply::NetworkError error);
};

QT_END_NAMESPACE

#endif // QPLACESEARCHREPLYMAPBOX_H