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.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
7#include "qgeoaddress.h"
8#include "qgeocoordinate.h"
9
10#include <QtPositioning/QGeoShape>
11
13
55 : QObject(parent),
57{
58 Q_UNUSED(parameters);
59}
60
68
76void QGeoCodingManagerEngine::setManagerName(const QString &managerName)
77{
78 d_ptr->managerName = managerName;
79}
80
92
99void QGeoCodingManagerEngine::setManagerVersion(int managerVersion)
100{
102}
103
111{
112 return d_ptr->managerVersion;
113}
114
147 const QGeoShape &bounds)
148{
150 Q_UNUSED(bounds);
152 QLatin1String("Geocoding is not supported by this service provider."), this);
153}
154
192 const QGeoShape &bounds)
193{
194 Q_UNUSED(coordinate);
195 Q_UNUSED(bounds);
197 QLatin1String("Reverse geocoding is not supported by this service provider."), this);
198}
199
230 int limit,
231 int offset,
232 const QGeoShape &bounds)
233{
237 Q_UNUSED(bounds);
238
240 QLatin1String("Searching is not supported by this service provider."), this);
241}
242
252{
253 d_ptr->locale = locale;
254}
255
261{
262 return d_ptr->locale;
263}
264
\inmodule QtPositioning
Definition qgeoaddress.h:18
\inmodule QtLocation
int managerVersion() const
Returns the version of this engine implementation.
QString managerName() const
Returns the name which this engine implementation uses to distinguish itself from the implementations...
virtual ~QGeoCodingManagerEngine()
Destroys this engine.
virtual QGeoCodeReply * geocode(const QGeoAddress &address, const QGeoShape &bounds)
Begins the geocoding of address.
QLocale locale() const
Returns the locale used to hint to this geocoding manager about what language to use for the results.
virtual QGeoCodeReply * reverseGeocode(const QGeoCoordinate &coordinate, const QGeoShape &bounds)
Begins the reverse geocoding of coordinate.
void setLocale(const QLocale &locale)
Sets the locale to be used by this manager to locale.
QGeoCodingManagerEngine(const QVariantMap &parameters, QObject *parent=nullptr)
Constructs a new engine with the specified parent, using parameters to pass any implementation specif...
\inmodule QtPositioning
\inmodule QtPositioning
Definition qgeoshape.h:17
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLenum GLuint GLintptr offset
GLint limit
GLuint GLuint64EXT address
QLatin1StringView QLatin1String
Definition qstringfwd.h:31
#define Q_UNUSED(x)