Qt 6.x
The Qt SDK
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:
21 enum Error {
27 UnknownError
28 };
29
30 explicit QGeoRouteReply(Error error, const QString &errorString, QObject *parent = nullptr);
31 virtual ~QGeoRouteReply();
32
33 bool isFinished() const;
34 Error error() const;
35 QString errorString() const;
36
38 QList<QGeoRoute> routes() const;
39
40 virtual void abort();
41
43 void finished();
44 void aborted();
46
47protected:
48 explicit QGeoRouteReply(const QGeoRouteRequest &request, QObject *parent = nullptr);
49
50 void setError(Error error, const QString &errorString);
51 void setFinished(bool finished);
52
53 void setRoutes(const QList<QGeoRoute> &routes);
54 void addRoutes(const QList<QGeoRoute> &routes);
55
56private:
58 Q_DISABLE_COPY(QGeoRouteReply)
59};
60
62
63#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
Definition qlist.h:74
\inmodule QtCore
Definition qobject.h:90
QScopedPointer< QObjectData > d_ptr
Definition qobject.h:338
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
static void setError(QJsonObject *response, const QString &msg)
#define Q_OBJECT
#define Q_SIGNALS
QNetworkRequest request(url)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent