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
qgeoroutereply.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 QGEOROUTEREPLY_H
5#define QGEOROUTEREPLY_H
6
7#include <QtLocation/QGeoRoute>
8
9#include <QtCore/QList>
10#include <QtCore/QObject>
11
13
16
17class Q_LOCATION_EXPORT QGeoRouteReply : public QObject
18{
20public:
30
31 explicit QGeoRouteReply(Error error, const QString &errorString, QObject *parent = nullptr);
32 virtual ~QGeoRouteReply();
33
34 bool isFinished() const;
35 Error error() const;
36 QString errorString() const;
37
39 QList<QGeoRoute> routes() const;
40
41 virtual void abort();
42
44 void finished();
45 void aborted();
47
48protected:
49 explicit QGeoRouteReply(const QGeoRouteRequest &request, QObject *parent = nullptr);
50
51 void setError(Error error, const QString &errorString);
52 void setFinished(bool finished);
53
54 void setRoutes(const QList<QGeoRoute> &routes);
55 void addRoutes(const QList<QGeoRoute> &routes);
56
57private:
59 Q_DISABLE_COPY(QGeoRouteReply)
60};
61
63
64#endif
\inmodule QtLocation
void finished()
This signal is emitted when this reply has finished processing.
Error
Describes an error which prevented the completion of the operation.
void errorOccurred(QGeoRouteReply::Error error, const QString &errorString=QString())
This signal is emitted when an error has been detected in the processing of this reply.
\inmodule QtLocation
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
static void setError(QJsonObject *response, const QString &msg)
#define Q_ENUM(x)
#define Q_OBJECT
#define Q_SIGNALS
QNetworkRequest request(url)