<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qgeoserviceproviderfactory.cpp --> <title>QGeoServiceProviderFactory Class | Qt Location 5.11</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td ><a href="../qtdoc/index.html">Qt 5.11</a></td><td ><a href="qtlocation-index.html">Qt Location</a></td><td ><a href="qtlocation-module.html">C++ Classes</a></td><td >QGeoServiceProviderFactory</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.11.2 Reference Documentation</td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#public-functions">Public Functions</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">QGeoServiceProviderFactory Class</h1> <!-- $$$QGeoServiceProviderFactory-brief --> <p>The <a href="qgeoserviceproviderfactory.html">QGeoServiceProviderFactory</a> class is a factory class used as the plugin interface for services related to geographical information. <a href="#details">More...</a></p> <!-- @@@QGeoServiceProviderFactory --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QGeoServiceProviderFactory></span> </td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += location</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.6</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qgeoserviceproviderfactoryv2.html">QGeoServiceProviderFactoryV2</a></p> </td></tr></table></div><p><b>This class is obsolete.</b> It is provided to keep old source code working. We strongly advise against using it in new code.</p> <ul> <li><a href="qgeoserviceproviderfactory-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-functions"></a> <h2 id="public-functions">Public Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qgeoserviceproviderfactory.html#dtor.QGeoServiceProviderFactory">~QGeoServiceProviderFactory</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual QGeoCodingManagerEngine *</td><td class="memItemRight bottomAlign"><b><a href="qgeoserviceproviderfactory.html#createGeocodingManagerEngine">createGeocodingManagerEngine</a></b>(const QVariantMap &<i>parameters</i>, QGeoServiceProvider::Error *<i>error</i>, QString *<i>errorString</i>) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual QPlaceManagerEngine *</td><td class="memItemRight bottomAlign"><b><a href="qgeoserviceproviderfactory.html#createPlaceManagerEngine">createPlaceManagerEngine</a></b>(const QVariantMap &<i>parameters</i>, QGeoServiceProvider::Error *<i>error</i>, QString *<i>errorString</i>) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual QGeoRoutingManagerEngine *</td><td class="memItemRight bottomAlign"><b><a href="qgeoserviceproviderfactory.html#createRoutingManagerEngine">createRoutingManagerEngine</a></b>(const QVariantMap &<i>parameters</i>, QGeoServiceProvider::Error *<i>error</i>, QString *<i>errorString</i>) const</td></tr> </table></div> <a name="details"></a> <!-- $$$QGeoServiceProviderFactory-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="qgeoserviceproviderfactory.html">QGeoServiceProviderFactory</a> class is a factory class used as the plugin interface for services related to geographical information.</p> <p>Implementers must provide a unique combination of providerName() and providerVersion() per plugin.</p> <p>The other functions should be overridden if the plugin supports the associated set of functionality.</p> </div> <p><b>See also </b><a href="qgeoserviceproviderfactoryv2.html">QGeoServiceProviderFactoryV2</a>.</p> <!-- @@@QGeoServiceProviderFactory --> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$~QGeoServiceProviderFactory[overload1]$$$~QGeoServiceProviderFactory --> <h3 class="fn" id="dtor.QGeoServiceProviderFactory"><a name="dtor.QGeoServiceProviderFactory"></a><code>[virtual] </code>QGeoServiceProviderFactory::<span class="name">~QGeoServiceProviderFactory</span>()</h3> <p>Destroys this <a href="qgeoserviceproviderfactory.html" class="obsolete">QGeoServiceProviderFactory</a> instance.</p> <!-- @@@~QGeoServiceProviderFactory --> <!-- $$$createGeocodingManagerEngine[overload1]$$$createGeocodingManagerEngineconstQVariantMap&QGeoServiceProvider::Error*QString* --> <h3 class="fn" id="createGeocodingManagerEngine"><a name="createGeocodingManagerEngine"></a><code>[virtual] </code><span class="type"><a href="qgeocodingmanagerengine.html">QGeoCodingManagerEngine</a></span> *QGeoServiceProviderFactory::<span class="name">createGeocodingManagerEngine</span>(const <span class="type"><a href="../qtcore/qvariant.html#QVariantMap-typedef">QVariantMap</a></span> &<i>parameters</i>, <span class="type"><a href="qgeoserviceprovider.html#Error-enum">QGeoServiceProvider::Error</a></span> *<i>error</i>, <span class="type"><a href="../qtcore/qstring.html">QString</a></span> *<i>errorString</i>) const</h3> <p>Returns a new <a href="qgeocodingmanagerengine.html">QGeoCodingManagerEngine</a> instance, initialized with <i>parameters</i>, which implements the location geocoding functionality.</p> <p>If <i>error</i> is not 0 it should be set to <a href="qgeoserviceprovider.html#Error-enum">QGeoServiceProvider::NoError</a> on success or an appropriate <a href="qgeoserviceprovider.html#Error-enum">QGeoServiceProvider::Error</a> on failure.</p> <p>If <i>errorString</i> is not 0 it should be set to a string describing any error which occurred.</p> <p>The default implementation returns 0, which causes a <a href="qgeoserviceprovider.html#Error-enum">QGeoServiceProvider::NotSupportedError</a> in <a href="qgeoserviceprovider.html">QGeoServiceProvider</a>.</p> <!-- @@@createGeocodingManagerEngine --> <!-- $$$createPlaceManagerEngine[overload1]$$$createPlaceManagerEngineconstQVariantMap&QGeoServiceProvider::Error*QString* --> <h3 class="fn" id="createPlaceManagerEngine"><a name="createPlaceManagerEngine"></a><code>[virtual] </code><span class="type"><a href="qplacemanagerengine.html">QPlaceManagerEngine</a></span> *QGeoServiceProviderFactory::<span class="name">createPlaceManagerEngine</span>(const <span class="type"><a href="../qtcore/qvariant.html#QVariantMap-typedef">QVariantMap</a></span> &<i>parameters</i>, <span class="type"><a href="qgeoserviceprovider.html#Error-enum">QGeoServiceProvider::Error</a></span> *<i>error</i>, <span class="type"><a href="../qtcore/qstring.html">QString</a></span> *<i>errorString</i>) const</h3> <p>Returns a new <a href="qplacemanagerengine.html">QPlaceManagerEngine</a> instance, initialized with <i>parameters</i>, which implements the place searching functionality.</p> <p>If <i>error</i> is not 0 it should be set to <a href="qgeoserviceprovider.html#Error-enum">QGeoServiceProvider::NoError</a> on success or an appropriate <a href="qgeoserviceprovider.html#Error-enum">QGeoServiceProvider::Error</a> on failure.</p> <p>If <i>errorString</i> is not 0 it should be set to a string describing any error which occurred.</p> <p>The default implementation returns 0, which causes a <a href="qgeoserviceprovider.html#Error-enum">QGeoServiceProvider::NotSupportedError</a> in <a href="qgeoserviceprovider.html">QGeoServiceProvider</a>.</p> <!-- @@@createPlaceManagerEngine --> <!-- $$$createRoutingManagerEngine[overload1]$$$createRoutingManagerEngineconstQVariantMap&QGeoServiceProvider::Error*QString* --> <h3 class="fn" id="createRoutingManagerEngine"><a name="createRoutingManagerEngine"></a><code>[virtual] </code><span class="type"><a href="qgeoroutingmanagerengine.html">QGeoRoutingManagerEngine</a></span> *QGeoServiceProviderFactory::<span class="name">createRoutingManagerEngine</span>(const <span class="type"><a href="../qtcore/qvariant.html#QVariantMap-typedef">QVariantMap</a></span> &<i>parameters</i>, <span class="type"><a href="qgeoserviceprovider.html#Error-enum">QGeoServiceProvider::Error</a></span> *<i>error</i>, <span class="type"><a href="../qtcore/qstring.html">QString</a></span> *<i>errorString</i>) const</h3> <p>Returns a new <a href="qgeoroutingmanagerengine.html">QGeoRoutingManagerEngine</a> instance, initialized with <i>parameters</i>, which implements routing functionality.</p> <p>If <i>error</i> is not 0 it should be set to <a href="qgeoserviceprovider.html#Error-enum">QGeoServiceProvider::NoError</a> on success or an appropriate <a href="qgeoserviceprovider.html#Error-enum">QGeoServiceProvider::Error</a> on failure.</p> <p>If <i>errorString</i> is not 0 it should be set to a string describing any error which occurred.</p> <p>The default implementation returns 0, which causes a <a href="qgeoserviceprovider.html#Error-enum">QGeoServiceProvider::NotSupportedError</a> in <a href="qgeoserviceprovider.html">QGeoServiceProvider</a>.</p> <!-- @@@createRoutingManagerEngine --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. </p> </div> </body> </html>