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_nokia.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 QGEOROUTINGMANAGER_NOKIA_H
5#define QGEOROUTINGMANAGER_NOKIA_H
6
8
11
13
15class QGeoUriProvider;
16
18{
20public:
22 const QVariantMap &parameters,
24 QString *errorString);
26
28 QGeoRouteReply *updateRoute(const QGeoRoute &route, const QGeoCoordinate &position) override;
29
30private Q_SLOTS:
31 void routeFinished();
32 void routeError(QGeoRouteReply::Error error, const QString &errorString);
33
34private:
35 QStringList calculateRouteRequestString(const QGeoRouteRequest &request) const;
36 QStringList updateRouteRequestString(const QGeoRoute &route, const QGeoCoordinate &position);
37 QString routeRequestString(const QGeoRouteRequest &request) const;
38 bool checkEngineSupport(const QGeoRouteRequest &request,
39 QGeoRouteRequest::TravelModes travelModes) const;
40 QString modesRequestString(const QGeoRouteRequest &request,
41 QGeoRouteRequest::TravelModes travelModes,
42 const QString &optimization) const;
43 static QString trimDouble(double degree, int decimalDigits = 10);
44
45 QGeoNetworkAccessManager *m_networkManager;
46 QGeoUriProvider *m_uriProvider;
47 QString m_apiKey;
48};
49
51
52#endif
\inmodule QtPositioning
\inmodule QtLocation
Error
Describes an error which prevented the completion of the operation.
\inmodule QtLocation
\inmodule QtLocation
Definition qgeoroute.h:24
QGeoRoutingManagerEngineNokia(QGeoNetworkAccessManager *networkInterface, const QVariantMap &parameters, QGeoServiceProvider::Error *error, QString *errorString)
QGeoRouteReply * updateRoute(const QGeoRoute &route, const QGeoCoordinate &position) override
Begins the process of updating route based on the current position position.
QGeoRouteReply * calculateRoute(const QGeoRouteRequest &request) override
Error
Describes an error related to the loading and setup of a service provider plugin.
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
#define Q_OBJECT
#define Q_SLOTS
QNetworkRequest request(url)