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
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
9#include <qgeoserviceprovider.h>
10#include <qgeoroutingmanagerengine.h>
11
13
15class QGeoUriProvider;
16
18{
20public:
26
27 QGeoRouteReply *calculateRoute(const QGeoRouteRequest &request) override;
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
50QT_END_NAMESPACE
51
52#endif
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
Begins the calculation of the route specified by request.
Combined button and popup list for selecting options.