Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qgeorouteparser_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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// Qt-Security score:significant reason:default
4
5#ifndef QOSRMROUTEPARSER_P_H
6#define QOSRMROUTEPARSER_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtLocation/private/qlocationglobal_p.h>
20#include <QtLocation/qgeoroutereply.h>
21
22QT_BEGIN_NAMESPACE
23
24class QByteArray;
25class QUrl;
26class QGeoRouteRequest;
27class QGeoRouteParserPrivate;
28class Q_LOCATION_EXPORT QGeoRouteParser : public QObject
29{
30 Q_OBJECT
31 Q_DECLARE_PRIVATE(QGeoRouteParser)
32 Q_PROPERTY(TrafficSide trafficSide READ trafficSide WRITE setTrafficSide NOTIFY trafficSideChanged)
33public:
34 enum TrafficSide {
35 RightHandTraffic,
36 LeftHandTraffic
37 };
38 Q_ENUM(TrafficSide)
39
40 virtual ~QGeoRouteParser();
41 QGeoRouteReply::Error parseReply(QList<QGeoRoute> &routes, QString &errorString, const QByteArray &reply) const;
42 QUrl requestUrl(const QGeoRouteRequest &request, const QString &prefix) const;
43
44 TrafficSide trafficSide() const;
45
46public Q_SLOTS:
47 void setTrafficSide(TrafficSide trafficSide);
48
49Q_SIGNALS:
50 void trafficSideChanged(TrafficSide trafficSide);
51
52protected:
53 QGeoRouteParser(QGeoRouteParserPrivate &dd, QObject *parent = nullptr);
54
55private:
56 Q_DISABLE_COPY(QGeoRouteParser)
57};
58
59QT_END_NAMESPACE
60
61#endif // QOSRMROUTEPARSER_P_H