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
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{
20 Q_OBJECT
21public:
22 explicit QGeoCodingManagerEngine(const QVariantMap &parameters, QObject *parent = nullptr);
23 virtual ~QGeoCodingManagerEngine();
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
40Q_SIGNALS:
41 void finished(QGeoCodeReply *reply);
42 void errorOccurred(QGeoCodeReply *reply, QGeoCodeReply::Error error,
43 const QString &errorString = QString());
44
45private:
46 void setManagerName(const QString &managerName);
47 void setManagerVersion(int managerVersion);
48
49 QGeoCodingManagerEnginePrivate *d_ptr;
50 Q_DISABLE_COPY(QGeoCodingManagerEngine)
51
52 friend class QGeoServiceProvider;
53 friend class QGeoServiceProviderPrivate;
54};
55
56QT_END_NAMESPACE
57
58#endif
QGeoCodingManagerPrivate()=default
std::unique_ptr< QGeoCodingManagerEngine > engine
\inmodule QtLocation
Combined button and popup list for selecting options.