![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtLocation More...
#include <qgeoserviceproviderfactory.h>
Public Member Functions | |
virtual | ~QGeoServiceProviderFactory () |
Destroys this QGeoServiceProviderFactory instance. | |
virtual QGeoCodingManagerEngine * | createGeocodingManagerEngine (const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString) const |
Returns a new QGeoCodingManagerEngine instance, initialized with parameters, which implements the location geocoding functionality. | |
virtual QGeoMappingManagerEngine * | createMappingManagerEngine (const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString) const |
Returns a new QGeoMappingManagerEngine instance, initialized with parameters, which implements mapping functionality. | |
virtual QGeoRoutingManagerEngine * | createRoutingManagerEngine (const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString) const |
Returns a new QGeoRoutingManagerEngine instance, initialized with parameters, which implements routing functionality. | |
virtual QPlaceManagerEngine * | createPlaceManagerEngine (const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString) const |
Returns a new QPlaceManagerEngine instance, initialized with parameters, which implements the place searching functionality. | |
virtual void | setQmlEngine (QQmlEngine *engine) |
Notify the plugin when the qml engine is ready. | |
\inmodule QtLocation
The QGeoServiceProviderFactory class is a factory class used as the plugin interface for services related to geographical information.
Implementers must provide a unique combination of providerName() and providerVersion() per plugin.
The other functions should be overridden if the plugin supports the associated set of functionality.
Definition at line 16 of file qgeoserviceproviderfactory.h.
|
inlinevirtual |
Destroys this QGeoServiceProviderFactory instance.
Definition at line 19 of file qgeoserviceproviderfactory.h.
|
virtual |
Returns a new QGeoCodingManagerEngine instance, initialized with parameters, which implements the location geocoding functionality.
If error is not \nullptr it should be set to QGeoServiceProvider::NoError on success or an appropriate QGeoServiceProvider::Error on failure.
If errorString is not \nullptr it should be set to a string describing any error which occurred.
The default implementation returns \nullptr, which causes a QGeoServiceProvider::NotSupportedError in QGeoServiceProvider.
Reimplemented in QGeoServiceProviderFactoryNokia.
Definition at line 50 of file qgeoserviceproviderfactory.cpp.
References error, and Q_UNUSED.
Referenced by createEngine< QGeoCodingManagerEngine >().
|
virtual |
Returns a new QGeoMappingManagerEngine instance, initialized with parameters, which implements mapping functionality.
If error is not \nullptr it should be set to QGeoServiceProvider::NoError on success or an appropriate QGeoServiceProvider::Error on failure.
If errorString is not \nullptr it should be set to a string describing any error which occurred.
The default implementation returns \nullptr, which causes a QGeoServiceProvider::NotSupportedError in QGeoServiceProvider.
Reimplemented in GeoServiceProviderFactoryEsri, QGeoServiceProviderFactoryItemsOverlay, QGeoServiceProviderFactoryMapbox, QGeoServiceProviderFactoryNokia, and QGeoServiceProviderFactoryOsm.
Definition at line 77 of file qgeoserviceproviderfactory.cpp.
References error, and Q_UNUSED.
Referenced by createEngine< QGeoMappingManagerEngine >().
|
virtual |
Returns a new QPlaceManagerEngine instance, initialized with parameters, which implements the place searching functionality.
If error is not \nullptr it should be set to QGeoServiceProvider::NoError on success or an appropriate QGeoServiceProvider::Error on failure.
If errorString is not \nullptr it should be set to a string describing any error which occurred.
The default implementation returns \nullptr, which causes a QGeoServiceProvider::NotSupportedError in QGeoServiceProvider.
Reimplemented in GeoServiceProviderFactoryEsri, QGeoServiceProviderFactoryItemsOverlay, QGeoServiceProviderFactoryMapbox, QGeoServiceProviderFactoryNokia, and QGeoServiceProviderFactoryOsm.
Definition at line 128 of file qgeoserviceproviderfactory.cpp.
References error, and Q_UNUSED.
Referenced by createEngine< QPlaceManagerEngine >().
|
virtual |
Returns a new QGeoRoutingManagerEngine instance, initialized with parameters, which implements routing functionality.
If error is not \nullptr it should be set to QGeoServiceProvider::NoError on success or an appropriate QGeoServiceProvider::Error on failure.
If errorString is not \nullptr it should be set to a string describing any error which occurred.
The default implementation returns \nullptr, which causes a QGeoServiceProvider::NotSupportedError in QGeoServiceProvider.
Reimplemented in GeoServiceProviderFactoryEsri, QGeoServiceProviderFactoryItemsOverlay, QGeoServiceProviderFactoryMapbox, QGeoServiceProviderFactoryNokia, and QGeoServiceProviderFactoryOsm.
Definition at line 102 of file qgeoserviceproviderfactory.cpp.
References error, and Q_UNUSED.
Referenced by createEngine< QGeoRoutingManagerEngine >().
|
virtual |
Notify the plugin when the qml engine is ready.
In this moment the plugins can use it to register Image Providers.
The default implementation does nothing.
Definition at line 146 of file qgeoserviceproviderfactory.cpp.
References engine, and Q_UNUSED.
Referenced by QGeoServiceProviderPrivate::loadPlugin().