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
4#ifndef QGEOCODINGMANAGER_H
5#define QGEOCODINGMANAGER_H
6
7#include <QtLocation/QGeoCodeReply>
8#include <QtPositioning/QGeoShape>
9
10#include <QtCore/QObject>
11
12QT_BEGIN_NAMESPACE
13
14class QLocale;
15
16class QGeoAddress;
17class QGeoCodingManagerEngine;
19
20class Q_LOCATION_EXPORT QGeoCodingManager : public QObject
21{
22 Q_OBJECT
23public:
24 ~QGeoCodingManager();
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
42Q_SIGNALS:
43 void finished(QGeoCodeReply *reply);
44 void errorOccurred(QGeoCodeReply *reply, QGeoCodeReply::Error error,
45 const QString &errorString = QString());
46
47private:
48 explicit QGeoCodingManager(QGeoCodingManagerEngine *engine, QObject *parent = nullptr);
49
50 QGeoCodingManagerPrivate *d_ptr;
51 Q_DISABLE_COPY(QGeoCodingManager)
52
53 friend class QGeoServiceProvider;
54 friend class QGeoServiceProviderPrivate;
55};
56
57QT_END_NAMESPACE
58
59#endif
\inmodule QtLocation