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