Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QGeoServiceProviderFactory Class

The QGeoServiceProviderFactory class is a factory class used as the plugin interface for services related to geographical information. More...

 #include <QGeoServiceProviderFactory>

This class was introduced in Qt Location 5.0.

Public Functions

virtual ~QGeoServiceProviderFactory()
virtual QGeocodingManagerEngine * createGeocodingManagerEngine(const QMap<QString, QVariant> & parameters, QGeoServiceProvider::Error * error, QString * errorString) const
virtual QGeoMappingManagerEngine * createMappingManagerEngine(const QMap<QString, QVariant> & parameters, QGeoServiceProvider::Error * error, QString * errorString) const
virtual QPlaceManagerEngine * createPlaceManagerEngine(const QMap<QString, QVariant> & parameters, QGeoServiceProvider::Error * error, QString * errorString) const
virtual QGeoRoutingManagerEngine * createRoutingManagerEngine(const QMap<QString, QVariant> & parameters, QGeoServiceProvider::Error * error, QString * errorString) const

Detailed Description

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.

Member Function Documentation

QGeoServiceProviderFactory::~QGeoServiceProviderFactory() [virtual]

Destroys this QGeoServiceProviderFactory instance.

QGeocodingManagerEngine * QGeoServiceProviderFactory::createGeocodingManagerEngine(const QMap<QString, QVariant> & parameters, QGeoServiceProvider::Error * error, QString * errorString) const [virtual]

Returns a new QGeocodingManagerEngine instance, initialized with parameters, which implements the location geocoding functionality.

If error is not 0 it should be set to QGeoServiceProvider::NoError on success or an appropriate QGeoServiceProvider::Error on failure.

If 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.

QGeoMappingManagerEngine * QGeoServiceProviderFactory::createMappingManagerEngine(const QMap<QString, QVariant> & parameters, QGeoServiceProvider::Error * error, QString * errorString) const [virtual]

Returns a new QGeoMappingManagerEngine instance, initialized with parameters, which implements mapping functionality.

If error is not 0 it should be set to QGeoServiceProvider::NoError on success or an appropriate QGeoServiceProvider::Error on failure.

If 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 QMap<QString, QVariant> & parameters, QGeoServiceProvider::Error * error, QString * errorString) const [virtual]

Returns a new QPlaceManagerEngine instance, initialized with parameters, which implements the place searching functionality.

If error is not 0 it should be set to QGeoServiceProvider::NoError on success or an appropriate QGeoServiceProvider::Error on failure.

If 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 QMap<QString, QVariant> & parameters, QGeoServiceProvider::Error * error, QString * errorString) const [virtual]

Returns a new QGeoRoutingManagerEngine instance, initialized with parameters, which implements routing functionality.

If error is not 0 it should be set to QGeoServiceProvider::NoError on success or an appropriate QGeoServiceProvider::Error on failure.

If 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.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web