The QGeoServiceProviderFactory class is a factory class used as the plugin interface for services related to geographical information. 更多...
头: | #include <QGeoServiceProviderFactory> |
qmake: | QT += location |
Since: | Qt 5.6 |
继承者: |
该类已过时。 提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。
该类在 Qt 5.6 引入。
virtual | ~QGeoServiceProviderFactory () |
virtual QGeoCodingManagerEngine * | createGeocodingManagerEngine (const QVariantMap & 参数 , QGeoServiceProvider::Error * error , QString * errorString ) const |
virtual QPlaceManagerEngine * | createPlaceManagerEngine (const QVariantMap & 参数 , QGeoServiceProvider::Error * error , QString * errorString ) const |
virtual QGeoRoutingManagerEngine * | createRoutingManagerEngine (const QVariantMap & 参数 , QGeoServiceProvider::Error * error , QString * errorString ) const |
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.
另请参阅 QGeoServiceProviderFactoryV2 .
[虚拟]
QGeoServiceProviderFactory::
~QGeoServiceProviderFactory
()
销毁此 QGeoServiceProviderFactory 实例。
[虚拟]
QGeoCodingManagerEngine
*QGeoServiceProviderFactory::
createGeocodingManagerEngine
(const
QVariantMap
&
参数
,
QGeoServiceProvider::Error
*
error
,
QString
*
errorString
) const
返回新的 QGeoCodingManagerEngine instance, initialized with 参数 , which implements the location geocoding functionality.
若 error is not 0 it should be set to QGeoServiceProvider::NoError on success or an appropriate QGeoServiceProvider::Error 当故障时。
若 errorString is not 0 it should be set to a string describing any error which occurred.
The default implementation returns 0, which causes a QGeoServiceProvider::NotSupportedError in QGeoServiceProvider .
[虚拟]
QPlaceManagerEngine
*QGeoServiceProviderFactory::
createPlaceManagerEngine
(const
QVariantMap
&
参数
,
QGeoServiceProvider::Error
*
error
,
QString
*
errorString
) const
返回新的 QPlaceManagerEngine instance, initialized with 参数 , which implements the place searching functionality.
若 error is not 0 it should be set to QGeoServiceProvider::NoError on success or an appropriate QGeoServiceProvider::Error 当故障时。
若 errorString is not 0 it should be set to a string describing any error which occurred.
The default implementation returns 0, which causes a QGeoServiceProvider::NotSupportedError in QGeoServiceProvider .
[虚拟]
QGeoRoutingManagerEngine
*QGeoServiceProviderFactory::
createRoutingManagerEngine
(const
QVariantMap
&
参数
,
QGeoServiceProvider::Error
*
error
,
QString
*
errorString
) const
返回新的 QGeoRoutingManagerEngine instance, initialized with 参数 , which implements routing functionality.
若 error is not 0 it should be set to QGeoServiceProvider::NoError on success or an appropriate QGeoServiceProvider::Error 当故障时。
若 errorString is not 0 it should be set to a string describing any error which occurred.
The default implementation returns 0, which causes a QGeoServiceProvider::NotSupportedError in QGeoServiceProvider .