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
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// Qt-Security score:significant reason:default
4
5#ifndef QGEOCODINGMANAGER_H
6#define QGEOCODINGMANAGER_H
7
8#include <QtLocation/QGeoCodeReply>
9#include <QtPositioning/QGeoShape>
10
11#include <QtCore/QObject>
12
13QT_BEGIN_NAMESPACE
14
15class QLocale;
16
17class QGeoAddress;
18class QGeoCodingManagerEngine;
20
21class Q_LOCATION_EXPORT QGeoCodingManager : public QObject
22{
23 Q_OBJECT
24public:
25 ~QGeoCodingManager();
26
27 QString managerName() const;
28 int managerVersion() const;
29
30 QGeoCodeReply *geocode(const QGeoAddress &address,
31 const QGeoShape &bounds = QGeoShape());
32 QGeoCodeReply *geocode(const QString &searchString,
33 int limit = -1,
34 int offset = 0,
35 const QGeoShape &bounds = QGeoShape());
36
37 QGeoCodeReply *reverseGeocode(const QGeoCoordinate &coordinate,
38 const QGeoShape &bounds = QGeoShape());
39
40 void setLocale(const QLocale &locale);
41 QLocale locale() const;
42
43Q_SIGNALS:
44 void finished(QGeoCodeReply *reply);
45 void errorOccurred(QGeoCodeReply *reply, QGeoCodeReply::Error error,
46 const QString &errorString = QString());
47
48private:
49 explicit QGeoCodingManager(QGeoCodingManagerEngine *engine, QObject *parent = nullptr);
50
51 QGeoCodingManagerPrivate *d_ptr;
52 Q_DISABLE_COPY(QGeoCodingManager)
53
54 friend class QGeoServiceProvider;
55 friend class QGeoServiceProviderPrivate;
56};
57
58QT_END_NAMESPACE
59
60#endif
\inmodule QtLocation