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.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 QGEOCODINGMANAGERENGINE_H
5#define QGEOCODINGMANAGERENGINE_H
6
7#include <QtLocation/qlocationglobal.h>
8#include <QtCore/QObject>
9#include <QtLocation/QGeoCodeReply>
10
12
13class QGeoAddress;
14class QGeoCoordinate;
15class QGeoShape;
17
18class Q_LOCATION_EXPORT QGeoCodingManagerEngine : public QObject
19{
21public:
22 explicit QGeoCodingManagerEngine(const QVariantMap &parameters, QObject *parent = nullptr);
24
25 QString managerName() const;
26 int managerVersion() const;
27
28 virtual QGeoCodeReply *geocode(const QGeoAddress &address, const QGeoShape &bounds);
29 virtual QGeoCodeReply *geocode(const QString &address,
30 int limit,
31 int offset,
32 const QGeoShape &bounds);
33 virtual QGeoCodeReply *reverseGeocode(const QGeoCoordinate &coordinate,
34 const QGeoShape &bounds);
35
36
37 void setLocale(const QLocale &locale);
38 QLocale locale() const;
39
43 const QString &errorString = QString());
44
45private:
46 void setManagerName(const QString &managerName);
47 void setManagerVersion(int managerVersion);
48
50 Q_DISABLE_COPY(QGeoCodingManagerEngine)
51
52 friend class QGeoServiceProvider;
54};
55
57
58#endif
\inmodule QtPositioning
Definition qgeoaddress.h:18
\inmodule QtLocation
Error
Describes an error which prevented the completion of the operation.
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