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
qgeocodingmanager.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_H
5#define QGEOCODINGMANAGER_H
6
7#include <QtLocation/QGeoCodeReply>
8#include <QtPositioning/QGeoShape>
9
10#include <QtCore/QObject>
11
13
14class QLocale;
15
16class QGeoAddress;
19
20class Q_LOCATION_EXPORT QGeoCodingManager : public QObject
21{
23public:
25
26 QString managerName() const;
27 int managerVersion() const;
28
29 QGeoCodeReply *geocode(const QGeoAddress &address,
30 const QGeoShape &bounds = QGeoShape());
31 QGeoCodeReply *geocode(const QString &searchString,
32 int limit = -1,
33 int offset = 0,
34 const QGeoShape &bounds = QGeoShape());
35
36 QGeoCodeReply *reverseGeocode(const QGeoCoordinate &coordinate,
37 const QGeoShape &bounds = QGeoShape());
38
39 void setLocale(const QLocale &locale);
40 QLocale locale() const;
41
45 const QString &errorString = QString());
46
47private:
48 explicit QGeoCodingManager(QGeoCodingManagerEngine *engine, QObject *parent = nullptr);
49
51 Q_DISABLE_COPY(QGeoCodingManager)
52
53 friend class QGeoServiceProvider;
55};
56
58
59#endif
\inmodule QtPositioning
Definition qgeoaddress.h:18
\inmodule QtLocation
Error
Describes an error which prevented the completion of the operation.
\inmodule QtLocation
void errorOccurred(QGeoCodeReply *reply, QGeoCodeReply::Error error, const QString &errorString=QString())
void finished(QGeoCodeReply *reply)
\inmodule QtPositioning
\inmodule QtLocation
\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.
DBusConnection const char DBusError * error
GLenum GLuint GLintptr offset
GLint limit
GLuint GLuint64EXT address
#define Q_OBJECT
#define Q_SIGNALS
QNetworkReply * reply
QJSEngine engine
[0]