QPlaceManagerEngine

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

Inheritance diagram of PySide2.QtLocation.QPlaceManagerEngine

Synopsis

Functions

Virtual functions

Signals

Detailed Description

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

class PySide2.QtLocation.QPlaceManagerEngine(parameters[, parent=None])
param parent:

PySide2.QtCore.QObject

param parameters:

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

PySide2.QtLocation.QPlaceManagerEngine.category(categoryId)
Parameters:

categoryId – str

Return type:

PySide2.QtLocation.QPlaceCategory

Returns the category corresponding to the given categoryId .

PySide2.QtLocation.QPlaceManagerEngine.categoryAdded(category, parentCategoryId)
Parameters:
PySide2.QtLocation.QPlaceManagerEngine.categoryRemoved(categoryId, parentCategoryId)
Parameters:
  • categoryId – str

  • parentCategoryId – str

PySide2.QtLocation.QPlaceManagerEngine.categoryUpdated(category, parentCategoryId)
Parameters:
PySide2.QtLocation.QPlaceManagerEngine.childCategories(parentId)
Parameters:

parentId – str

Return type:

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.

PySide2.QtLocation.QPlaceManagerEngine.childCategoryIds(categoryId)
Parameters:

categoryId – str

Return type:

list of strings

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

PySide2.QtLocation.QPlaceManagerEngine.compatiblePlace(original)
Parameters:

originalPySide2.QtLocation.QPlace

Return type:

PySide2.QtLocation.QPlace

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 .

PySide2.QtLocation.QPlaceManagerEngine.constructIconUrl(icon, size)
Parameters:
Return type:

PySide2.QtCore.QUrl

QUrl (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.

PySide2.QtLocation.QPlaceManagerEngine.dataChanged()
PySide2.QtLocation.QPlaceManagerEngine.error(arg__1, error[, errorString=""])
Parameters:
PySide2.QtLocation.QPlaceManagerEngine.finished(reply)
Parameters:

replyPySide2.QtLocation.QPlaceReply

PySide2.QtLocation.QPlaceManagerEngine.getPlaceContent(request)
Parameters:

requestPySide2.QtLocation.QPlaceContentRequest

Return type:

PySide2.QtLocation.QPlaceContentReply

Retrieves content for a place according to the parameters specified in request .

PySide2.QtLocation.QPlaceManagerEngine.getPlaceDetails(placeId)
Parameters:

placeId – str

Return type:

PySide2.QtLocation.QPlaceDetailsReply

Retrieves details of place corresponding to the given placeId .

PySide2.QtLocation.QPlaceManagerEngine.initializeCategories()
Return type:

PySide2.QtLocation.QPlaceReply

Initializes the categories of the manager engine.

PySide2.QtLocation.QPlaceManagerEngine.locales()
Return type:

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()

PySide2.QtLocation.QPlaceManagerEngine.manager()
Return type:

PySide2.QtLocation.QPlaceManager

Returns the manager instance used to create this engine.

PySide2.QtLocation.QPlaceManagerEngine.managerName()
Return type:

str

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().

PySide2.QtLocation.QPlaceManagerEngine.managerVersion()
Return type:

int

Returns the version of this engine implementation.

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

PySide2.QtLocation.QPlaceManagerEngine.matchingPlaces(request)
Parameters:

requestPySide2.QtLocation.QPlaceMatchRequest

Return type:

PySide2.QtLocation.QPlaceMatchReply

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

PySide2.QtLocation.QPlaceManagerEngine.parentCategoryId(categoryId)
Parameters:

categoryId – str

Return type:

str

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

PySide2.QtLocation.QPlaceManagerEngine.placeAdded(placeId)
Parameters:

placeId – str

PySide2.QtLocation.QPlaceManagerEngine.placeRemoved(placeId)
Parameters:

placeId – str

PySide2.QtLocation.QPlaceManagerEngine.placeUpdated(placeId)
Parameters:

placeId – str

PySide2.QtLocation.QPlaceManagerEngine.removeCategory(categoryId)
Parameters:

categoryId – str

Return type:

PySide2.QtLocation.QPlaceIdReply

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

PySide2.QtLocation.QPlaceManagerEngine.removePlace(placeId)
Parameters:

placeId – str

Return type:

PySide2.QtLocation.QPlaceIdReply

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

PySide2.QtLocation.QPlaceManagerEngine.saveCategory(category, parentId)
Parameters:
Return type:

PySide2.QtLocation.QPlaceIdReply

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.

PySide2.QtLocation.QPlaceManagerEngine.savePlace(place)
Parameters:

placePySide2.QtLocation.QPlace

Return type:

PySide2.QtLocation.QPlaceIdReply

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

PySide2.QtLocation.QPlaceManagerEngine.search(request)
Parameters:

requestPySide2.QtLocation.QPlaceSearchRequest

Return type:

PySide2.QtLocation.QPlaceSearchReply

Searches for places according to the parameters specified in request .

PySide2.QtLocation.QPlaceManagerEngine.searchSuggestions(request)
Parameters:

requestPySide2.QtLocation.QPlaceSearchRequest

Return type:

PySide2.QtLocation.QPlaceSearchSuggestionReply

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

PySide2.QtLocation.QPlaceManagerEngine.setLocales(locales)
Parameters:

locales

Set the list of preferred locales .

See also

locales()