forked from SindenDev/amap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qgeoserviceproviderpluginamap.h
35 lines (30 loc) · 1.64 KB
/
qgeoserviceproviderpluginamap.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef QGEOSERVICEPROVIDERAMAP_H
#define QGEOSERVICEPROVIDERAMAP_H
#include <QtCore/QObject>
#include <QtLocation/QGeoServiceProviderFactory>
class QGeoServiceProviderFactoryAmap: public QObject, public QGeoServiceProviderFactory
{
Q_OBJECT
Q_INTERFACES(QGeoServiceProviderFactory)
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
Q_PLUGIN_METADATA(IID "org.qt-project.qt.geoservice.serviceproviderfactory/6.0"
FILE "amap_plugin.json")
#elif
Q_PLUGIN_METADATA(IID "org.qt-project.qt.geoservice.serviceproviderfactory/5.0"
FILE "amap_plugin.json")
#endif
public:
QGeoCodingManagerEngine *createGeocodingManagerEngine(const QVariantMap ¶meters,
QGeoServiceProvider::Error *error,
QString *errorString) const;
QGeoRoutingManagerEngine *createRoutingManagerEngine(const QVariantMap ¶meters,
QGeoServiceProvider::Error *error,
QString *errorString) const;
QPlaceManagerEngine *createPlaceManagerEngine(const QVariantMap ¶meters,
QGeoServiceProvider::Error *error,
QString *errorString) const;
QGeoMappingManagerEngine *createMappingManagerEngine(const QVariantMap ¶meters,
QGeoServiceProvider::Error *error,
QString *errorString) const;
};
#endif