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  · 

QPlaceManagerEngine Class

The QPlaceManagerEngine class provides an interface for implementers of QGeoServiceProvider plugins who want to provide access to place functionality. More...

 #include <QPlaceManagerEngine>

Inherits: QObject.

This class was introduced in Qt Location 5.0.

Public Functions

QPlaceManagerEngine(const QMap<QString, QVariant> & parameters, QObject * parent = 0)
virtual ~QPlaceManagerEngine()
virtual QPlaceCategory category(const QString & categoryId) const
virtual QList<QPlaceCategory> childCategories(const QString & parentId) const
virtual QStringList childCategoryIds(const QString & categoryId) const
virtual QPlace compatiblePlace(const QPlace & original) const
virtual QUrl constructIconUrl(const QPlaceIcon & icon, const QSize & size) const
virtual QPlaceContentReply * getPlaceContent(const QString & placeId, const QPlaceContentRequest & request)
virtual QPlaceDetailsReply * getPlaceDetails(const QString & placeId)
virtual QPlaceReply * initializeCategories()
virtual QList<QLocale> locales() const
QString managerName() const
int managerVersion() const
virtual QPlaceMatchReply * matchingPlaces(const QPlaceMatchRequest & request)
virtual QString parentCategoryId(const QString & categoryId) const
virtual QPlaceSearchReply * recommendations(const QString & placeId, const QPlaceSearchRequest & request)
virtual QPlaceIdReply * removeCategory(const QString & categoryId)
virtual QPlaceIdReply * removePlace(const QString & placeId)
virtual QPlaceIdReply * saveCategory(const QPlaceCategory & category, const QString & parentId)
virtual QPlaceIdReply * savePlace(const QPlace & place)
virtual QPlaceSearchReply * search(const QPlaceSearchRequest & request)
virtual QPlaceSearchSuggestionReply * searchSuggestions(const QPlaceSearchRequest & request)
virtual void setLocales(const QList<QLocale> & locales)
  • 31 public functions inherited from QObject

Signals

void categoryAdded(const QPlaceCategory & category, const QString & parentId)
void categoryRemoved(const QString & categoryId, const QString & parentId)
void categoryUpdated(const QPlaceCategory & category, const QString & parentId)
void error(QPlaceReply * reply, QPlaceReply::Error error, const QString & errorString = QString())
void finished(QPlaceReply * reply)
void placeAdded(const QString & placeId)
void placeRemoved(const QString & placeId)
void placeUpdated(const QString & placeId)

Protected Functions

QPlaceManager * manager() const
  • 9 protected functions inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 11 static public members inherited from QObject

Detailed Description

The QPlaceManagerEngine class provides an interface for implementers of QGeoServiceProvider plugins who want to provide access to place functionality.

Application developers need not concern themselves with the QPlaceManagerEngine. Backend implementers however will need to derive from QPlaceManagerEngine and provide implementations for the abstract virtual functions.

For more information on writing a backend see the Places Backend documentation.

See also QPlaceManager.

Member Function Documentation

QPlaceManagerEngine::QPlaceManagerEngine(const QMap<QString, QVariant> & parameters, QObject * parent = 0)

Constructs a new engine with the specified parent, using parameters to pass any implementation specific data to the engine.

QPlaceManagerEngine::~QPlaceManagerEngine() [virtual]

Destroys this engine.

QPlaceCategory QPlaceManagerEngine::category(const QString & categoryId) const [virtual]

Returns the category corresponding to the given categoryId.

void QPlaceManagerEngine::categoryAdded(const QPlaceCategory & category, const QString & parentId) [signal]

This signal is emitted if a category has been added to the manager engine's datastore. The parent of the category is specified by parentId.

This signal is only emitted by manager engines that support the QPlaceManager::NotificationsFeature.

void QPlaceManagerEngine::categoryRemoved(const QString & categoryId, const QString & parentId) [signal]

This signal is emitted when the category corresponding to categoryId has been removed from the manager engine's datastore. The parent of the removed category is specified by parentId.

This signal is only emitted by manager engines that support the QPlaceManager::NotificationsFeature.

void QPlaceManagerEngine::categoryUpdated(const QPlaceCategory & category, const QString & parentId) [signal]

This signal is emitted if a category has been modified in the manager engine's datastore. The parent of the modified category is specified by parentId.

This signal is only emitted by manager engines that support the QPlaceManager::NotificationsFeature.

QList<QPlaceCategory> QPlaceManagerEngine::childCategories(const QString & parentId) const [virtual]

Returns a list of categories that are children of the category corresponding to parentId. If parentId is empty, all the top level categories are returned.

QStringList QPlaceManagerEngine::childCategoryIds(const QString & categoryId) const [virtual]

Returns the child category identifiers of the category corresponding to parentId. If parentId is empty then all top level category identifiers are returned.

QPlace QPlaceManagerEngine::compatiblePlace(const QPlace & original) const [virtual]

Returns a pruned or modified version of the original place which is suitable to be saved by the manager engine.

Only place details that are supported by this manager is present in the modified version. Manager specific data such as the place id, is not copied over from the original.

QUrl QPlaceManagerEngine::constructIconUrl(const QPlaceIcon & icon, const QSize & size) const [virtual]

QUrl QPlaceManagerEngine::constructIconUrl(const QPlaceIcon &icon, const QSize &size)

Constructs an icon url from a given icon, size. The URL of the icon image that most closely matches the given parameters is returned.

void QPlaceManagerEngine::error(QPlaceReply * reply, QPlaceReply::Error error, const QString & errorString = QString()) [signal]

This signal is emitted when an error has been detected in the processing of reply. The QPlaceManager::finished() signal will probably follow.

The error will be described by the error code error. If errorString is not empty it will contain a textual description of the error meant for developers and not end users.

This signal and QPlaceReply::error() will be emitted at the same time.

Note: Do not delete the reply object in the slot connected to this signal. Use deleteLater() instead.

void QPlaceManagerEngine::finished(QPlaceReply * reply) [signal]

This signal is emitted when reply has finished processing.

If reply->error() equals QPlaceReply::NoError then the processing finished successfully.

This signal and QPlaceReply::finished() will be emitted at the same time.

Note: Do not delete the reply object in the slot connected to this signal. Use deleteLater() instead.

QPlaceContentReply * QPlaceManagerEngine::getPlaceContent(const QString & placeId, const QPlaceContentRequest & request) [virtual]

Retrieves content for the place corresponding to placeId, according to the parameters specified in request.

QPlaceDetailsReply * QPlaceManagerEngine::getPlaceDetails(const QString & placeId) [virtual]

Retrieves details of place corresponding to the given placeId.

QPlaceReply * QPlaceManagerEngine::initializeCategories() [virtual]

Initializes the categories of the manager engine.

QList<QLocale> QPlaceManagerEngine::locales() const [virtual]

Returns a list of preferred locales. The locales are used as a hint to the manager engine for what language place and category details should be returned in.

If the first specified locale cannot be accommodated, the manager engine falls back to the next and so forth.

Support for locales may vary from provider to provider. For those that do support it, by default, the global default locale will be used. If the manager engine has no locales assigned to it, it implicitly uses the global default locale. For engines that do not support locales, the locale list is always empty.

See also setLocales().

QPlaceManager * QPlaceManagerEngine::manager() const [protected]

Returns the manager instance used to create this engine.

QString QPlaceManagerEngine::managerName() const

Returns the name which this engine implementation uses to distinguish itself from the implementations provided by other plugins.

The manager name is automatically set to be the same as the QGeoServiceProviderFactory::providerName().

int QPlaceManagerEngine::managerVersion() const

Returns the version of this engine implementation.

The manager version is automatically set to be the same as the QGeoServiceProviderFactory::providerVersion().

QPlaceMatchReply * QPlaceManagerEngine::matchingPlaces(const QPlaceMatchRequest & request) [virtual]

Returns a reply which contains a list of places which correspond/match those specified in request.

QString QPlaceManagerEngine::parentCategoryId(const QString & categoryId) const [virtual]

Returns the parent category identifier of the category corresponding to categoryId.

void QPlaceManagerEngine::placeAdded(const QString & placeId) [signal]

This signal is emitted if a place has been added to the manager engine's datastore. The particular added place is specified by placeId.

This signal is only emitted by manager engines that support the QPlaceManager::NotificationsFeature.

void QPlaceManagerEngine::placeRemoved(const QString & placeId) [signal]

This signal is emitted if a place has been removed from the manager engine's datastore. The particular place that has been removed is specified by placeId.

This signal is only emitted by manager engines that support the QPlaceManager::NotificationsFeature.

void QPlaceManagerEngine::placeUpdated(const QString & placeId) [signal]

This signal is emitted if a place has been modified in the manager engine's datastore. The particular modified place is specified by placeId.

This signal is only emitted by manager engines that support the QPlaceManager::NotificationsFeature.

QPlaceSearchReply * QPlaceManagerEngine::recommendations(const QString & placeId, const QPlaceSearchRequest & request) [virtual]

Provides recommendations for places that are similar to the place identified by placeId, and using the parameters as specified in request.

QPlaceIdReply * QPlaceManagerEngine::removeCategory(const QString & categoryId) [virtual]

Removes the category corresponding to categoryId from the manager engine's datastore.

QPlaceIdReply * QPlaceManagerEngine::removePlace(const QString & placeId) [virtual]

Removes the place corresponding to placeId from the manager engine's datastore.

QPlaceIdReply * QPlaceManagerEngine::saveCategory(const QPlaceCategory & category, const QString & parentId) [virtual]

Saves a category that is a child of the category specified by parentId. An empty parentId means category is saved as a top level category.

QPlaceIdReply * QPlaceManagerEngine::savePlace(const QPlace & place) [virtual]

Saves a specified place to the manager engine's datastore.

QPlaceSearchReply * QPlaceManagerEngine::search(const QPlaceSearchRequest & request) [virtual]

Searches for places according to the parameters specified in request.

QPlaceSearchSuggestionReply * QPlaceManagerEngine::searchSuggestions(const QPlaceSearchRequest & request) [virtual]

Requests a set of search term suggestions according to the parameters specified in request.

void QPlaceManagerEngine::setLocales(const QList<QLocale> & locales) [virtual]

Set the list of preferred locales.

See also locales().

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