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
qgeocodingmanagerengine_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 QGEOCODINGMANAGER_NOKIA_H
5#define QGEOCODINGMANAGER_NOKIA_H
6
8
11
12#include <QLocale>
13
15
17class QGeoUriProvider;
18
20{
22public:
24 const QVariantMap &parameters,
26 QString *errorString);
28
30 const QGeoShape &bounds) override;
32 const QGeoShape &bounds) override;
33
34 QGeoCodeReply *geocode(const QString &searchString,
35 int limit,
36 int offset,
37 const QGeoShape &bounds) override;
38
39private Q_SLOTS:
40 void placesFinished();
41 void placesError(QGeoCodeReply::Error error, const QString &errorString);
42
43private:
44 static QString trimDouble(double degree, int decimalDigits = 10);
45 QGeoCodeReply *geocode(QString requestString, const QGeoShape &bounds, bool manualBoundsRequired = true, int limit = -1, int offset = 0);
46 QString languageToMarc(QLocale::Language language);
47 QString getAuthenticationString() const;
48
49 QGeoNetworkAccessManager *m_networkManager;
50 QGeoUriProvider *m_uriProvider;
51 QGeoUriProvider *m_reverseGeocodingUriProvider;
52 QString m_apiKey;
53};
54
56
57#endif
\inmodule QtPositioning
Definition qgeoaddress.h:18
\inmodule QtLocation
Error
Describes an error which prevented the completion of the operation.
QGeoCodeReply * reverseGeocode(const QGeoCoordinate &coordinate, const QGeoShape &bounds) override
Begins the reverse geocoding of coordinate.
QGeoCodingManagerEngineNokia(QGeoNetworkAccessManager *networkManager, const QVariantMap &parameters, QGeoServiceProvider::Error *error, QString *errorString)
QGeoCodeReply * geocode(const QGeoAddress &address, const QGeoShape &bounds) override
Begins the geocoding of address.
\inmodule QtPositioning
Error
Describes an error related to the loading and setup of a service provider plugin.
\inmodule QtPositioning
Definition qgeoshape.h:17
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
GLenum GLuint GLintptr offset
GLint limit
GLuint GLuint64EXT address
#define Q_OBJECT
#define Q_SLOTS