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
qgeoroutingmanagerengine.cpp
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
6
8
58 : QObject(parent),
60{
61 Q_UNUSED(parameters);
62}
63
71
79void QGeoRoutingManagerEngine::setManagerName(const QString &managerName)
80{
81 d_ptr->managerName = managerName;
82}
83
95
102void QGeoRoutingManagerEngine::setManagerVersion(int managerVersion)
103{
105}
106
114{
115 return d_ptr->managerVersion;
116}
117
170{
171 Q_UNUSED(route);
174 QLatin1String("The updating of routes is not supported by this service provider."), this);
175}
176
184void QGeoRoutingManagerEngine::setSupportedTravelModes(QGeoRouteRequest::TravelModes travelModes)
185{
186 d_ptr->supportedTravelModes = travelModes;
187}
188
192QGeoRouteRequest::TravelModes QGeoRoutingManagerEngine::supportedTravelModes() const
193{
194 return d_ptr->supportedTravelModes;
195}
196
205void QGeoRoutingManagerEngine::setSupportedFeatureTypes(QGeoRouteRequest::FeatureTypes featureTypes)
206{
207 d_ptr->supportedFeatureTypes = featureTypes;
208}
209
214QGeoRouteRequest::FeatureTypes QGeoRoutingManagerEngine::supportedFeatureTypes() const
215{
216 return d_ptr->supportedFeatureTypes;
217}
218
227void QGeoRoutingManagerEngine::setSupportedFeatureWeights(QGeoRouteRequest::FeatureWeights featureWeights)
228{
229 d_ptr->supportedFeatureWeights = featureWeights;
231}
232
237QGeoRouteRequest::FeatureWeights QGeoRoutingManagerEngine::supportedFeatureWeights() const
238{
239 return d_ptr->supportedFeatureWeights;
240}
241
249void QGeoRoutingManagerEngine::setSupportedRouteOptimizations(QGeoRouteRequest::RouteOptimizations optimizations)
250{
251 d_ptr->supportedRouteOptimizations = optimizations;
252}
253
257QGeoRouteRequest::RouteOptimizations QGeoRoutingManagerEngine::supportedRouteOptimizations() const
258{
259 return d_ptr->supportedRouteOptimizations;
260}
261
270void QGeoRoutingManagerEngine::setSupportedSegmentDetails(QGeoRouteRequest::SegmentDetails segmentDetails)
271{
272 d_ptr->supportedSegmentDetails = segmentDetails;
273}
274
279QGeoRouteRequest::SegmentDetails QGeoRoutingManagerEngine::supportedSegmentDetails() const
280{
281 return d_ptr->supportedSegmentDetails;
282}
283
292void QGeoRoutingManagerEngine::setSupportedManeuverDetails(QGeoRouteRequest::ManeuverDetails maneuverDetails)
293{
294 d_ptr->supportedManeuverDetails = maneuverDetails;
295}
296
301QGeoRouteRequest::ManeuverDetails QGeoRoutingManagerEngine::supportedManeuverDetails() const
302{
303 return d_ptr->supportedManeuverDetails;
304}
305
315{
316 d_ptr->locale = locale;
318}
319
325{
326 return d_ptr->locale;
327}
328
341
355
\inmodule QtPositioning
\inmodule QtLocation
\inmodule QtLocation
Definition qgeoroute.h:24
QGeoRouteRequest::FeatureTypes supportedFeatureTypes
QGeoRouteRequest::ManeuverDetails supportedManeuverDetails
QGeoRouteRequest::FeatureWeights supportedFeatureWeights
QGeoRouteRequest::RouteOptimizations supportedRouteOptimizations
QLocale::MeasurementSystem measurementSystem
QGeoRouteRequest::SegmentDetails supportedSegmentDetails
QGeoRouteRequest::TravelModes supportedTravelModes
void setSupportedSegmentDetails(QGeoRouteRequest::SegmentDetails segmentDetails)
Sets the levels of detail for routing segments which can be requested by this engine to segmentDetail...
void setMeasurementSystem(QLocale::MeasurementSystem system)
Sets the measurement system used by this manager to system.
QGeoRouteRequest::RouteOptimizations supportedRouteOptimizations() const
Returns the route optimizations supported by this engine.
QLocale::MeasurementSystem measurementSystem() const
Returns the measurement system used by this manager.
QGeoRouteRequest::FeatureWeights supportedFeatureWeights() const
Returns the weightings which this engine can apply to different features during route planning.
QLocale locale() const
Returns the locale used to hint to this routing manager about what language to use for addresses and ...
QGeoRouteRequest::FeatureTypes supportedFeatureTypes() const
Returns the types of features that this engine can take into account during route planning.
QString managerName() const
Returns the name which this engine implementation uses to distinguish itself from the implementations...
QGeoRoutingManagerEngine(const QVariantMap &parameters, QObject *parent=nullptr)
Constructs a new engine with the specified parent, using parameters to pass any implementation specif...
QGeoRouteRequest::SegmentDetails supportedSegmentDetails() const
Returns the levels of detail for routing segments which can be requested by this engine.
void setSupportedTravelModes(QGeoRouteRequest::TravelModes travelModes)
Sets the travel modes supported by this engine to travelModes.
QGeoRouteRequest::TravelModes supportedTravelModes() const
Returns the travel modes supported by this engine.
void setSupportedFeatureWeights(QGeoRouteRequest::FeatureWeights featureWeights)
Sets the weightings which this engine can apply to different features during route planning to featur...
int managerVersion() const
Returns the version of this engine implementation.
QGeoRouteRequest::ManeuverDetails supportedManeuverDetails() const
Returns the levels of detail for navigation maneuvers which can be requested by this engine.
virtual ~QGeoRoutingManagerEngine()
Destroys this engine.
void setLocale(const QLocale &locale)
Sets the locale to be used by this manager to locale.
void setSupportedFeatureTypes(QGeoRouteRequest::FeatureTypes featureTypes)
Sets the types of features that this engine can take into account during route planning to featureTyp...
void setSupportedRouteOptimizations(QGeoRouteRequest::RouteOptimizations optimizations)
Sets the route optimizations supported by this engine to optimizations.
void setSupportedManeuverDetails(QGeoRouteRequest::ManeuverDetails maneuverDetails)
Sets the levels of detail for navigation maneuvers which can be requested by this engine to maneuverD...
virtual QGeoRouteReply * updateRoute(const QGeoRoute &route, const QGeoCoordinate &position)
Begins the process of updating route based on the current position position.
MeasurementSystem
Definition qlocale.h:867
MeasurementSystem measurementSystem() const
Definition qlocale.cpp:3326
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
QLatin1StringView QLatin1String
Definition qstringfwd.h:31
#define Q_UNUSED(x)