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
qgeoroutingmanager.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// Qt-Security score:significant reason:default
4
5#ifndef QGEOROUTINGMANAGER_H
6#define QGEOROUTINGMANAGER_H
7
8#include <QtCore/QObject>
9#include <QtCore/QLocale>
10#include <QtLocation/QGeoRouteRequest>
11#include <QtLocation/QGeoRouteReply>
12
13QT_BEGIN_NAMESPACE
14
15class QGeoRoutingManagerEngine;
17
18class Q_LOCATION_EXPORT QGeoRoutingManager : public QObject
19{
20 Q_OBJECT
21
22public:
23 ~QGeoRoutingManager();
24
25 QString managerName() const;
26 int managerVersion() const;
27
28 QGeoRouteReply *calculateRoute(const QGeoRouteRequest &request);
29 QGeoRouteReply *updateRoute(const QGeoRoute &route, const QGeoCoordinate &position);
30
31 QGeoRouteRequest::TravelModes supportedTravelModes() const;
32 QGeoRouteRequest::FeatureTypes supportedFeatureTypes() const;
33 QGeoRouteRequest::FeatureWeights supportedFeatureWeights() const;
34 QGeoRouteRequest::RouteOptimizations supportedRouteOptimizations() const;
35 QGeoRouteRequest::SegmentDetails supportedSegmentDetails() const;
36 QGeoRouteRequest::ManeuverDetails supportedManeuverDetails() const;
37
38 void setLocale(const QLocale &locale);
39 QLocale locale() const;
40 void setMeasurementSystem(QLocale::MeasurementSystem system);
41 QLocale::MeasurementSystem measurementSystem() const;
42
43Q_SIGNALS:
44 void finished(QGeoRouteReply *reply);
45 void errorOccurred(QGeoRouteReply *reply, QGeoRouteReply::Error error,
46 const QString &errorString = QString());
47
48private:
49 explicit QGeoRoutingManager(QGeoRoutingManagerEngine *engine, QObject *parent = nullptr);
50
51 QGeoRoutingManagerPrivate *d_ptr;
52 Q_DISABLE_COPY(QGeoRoutingManager)
53
54 friend class QGeoServiceProvider;
55 friend class QGeoServiceProviderPrivate;
56};
57
58QT_END_NAMESPACE
59
60#endif
\inmodule QtLocation
Combined button and popup list for selecting options.