1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- #ifndef QGEOCODINGMANAGERENGINE_H
- #define QGEOCODINGMANAGERENGINE_H
- #include <QtCore/QObject>
- #include <QtLocation/qlocationglobal.h>
- #include <QtLocation/QGeoCodeReply>
- QT_BEGIN_NAMESPACE
- class QGeoAddress;
- class QGeoShape;
- class QGeoCodingManagerEnginePrivate;
- class Q_LOCATION_EXPORT QGeoCodingManagerEngine : public QObject
- {
- Q_OBJECT
- public:
- explicit QGeoCodingManagerEngine(const QVariantMap ¶meters, QObject *parent = Q_NULLPTR);
- virtual ~QGeoCodingManagerEngine();
- QString managerName() const;
- int managerVersion() const;
- virtual QGeoCodeReply *geocode(const QGeoAddress &address, const QGeoShape &bounds);
- virtual QGeoCodeReply *geocode(const QString &address,
- int limit,
- int offset,
- const QGeoShape &bounds);
- virtual QGeoCodeReply *reverseGeocode(const QGeoCoordinate &coordinate,
- const QGeoShape &bounds);
- void setLocale(const QLocale &locale);
- QLocale locale() const;
- Q_SIGNALS:
- void finished(QGeoCodeReply *reply);
- void error(QGeoCodeReply *reply, QGeoCodeReply::Error error, QString errorString = QString());
- private:
- void setManagerName(const QString &managerName);
- void setManagerVersion(int managerVersion);
- QGeoCodingManagerEnginePrivate *d_ptr;
- Q_DISABLE_COPY(QGeoCodingManagerEngine)
- friend class QGeoServiceProvider;
- friend class QGeoServiceProviderPrivate;
- };
- QT_END_NAMESPACE
- #endif
|