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 QPlaceManagerEngine(parameters[, parent=None])
param parent

QObject

param parameters

QVariantMap

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 – unicode

Return type

QPlaceCategory

Returns the category corresponding to the given categoryId .

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

  • parentCategoryId – unicode

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

parentId – unicode

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 – unicode

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

originalQPlace

Return type

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

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
  • arg__1QPlaceReply

  • errorError

  • errorString – unicode

PySide2.QtLocation.QPlaceManagerEngine.finished(reply)
Parameters

replyQPlaceReply

PySide2.QtLocation.QPlaceManagerEngine.getPlaceContent(request)
Parameters

requestQPlaceContentRequest

Return type

QPlaceContentReply

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

PySide2.QtLocation.QPlaceManagerEngine.getPlaceDetails(placeId)
Parameters

placeId – unicode

Return type

QPlaceDetailsReply

Retrieves details of place corresponding to the given placeId .

PySide2.QtLocation.QPlaceManagerEngine.initializeCategories()
Return type

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

QPlaceManager

Returns the manager instance used to create this engine.

PySide2.QtLocation.QPlaceManagerEngine.managerName()
Return type

unicode

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

requestQPlaceMatchRequest

Return type

QPlaceMatchReply

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

PySide2.QtLocation.QPlaceManagerEngine.parentCategoryId(categoryId)
Parameters

categoryId – unicode

Return type

unicode

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

PySide2.QtLocation.QPlaceManagerEngine.placeAdded(placeId)
Parameters

placeId – unicode

PySide2.QtLocation.QPlaceManagerEngine.placeRemoved(placeId)
Parameters

placeId – unicode

PySide2.QtLocation.QPlaceManagerEngine.placeUpdated(placeId)
Parameters

placeId – unicode

PySide2.QtLocation.QPlaceManagerEngine.removeCategory(categoryId)
Parameters

categoryId – unicode

Return type

QPlaceIdReply

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

PySide2.QtLocation.QPlaceManagerEngine.removePlace(placeId)
Parameters

placeId – unicode

Return type

QPlaceIdReply

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

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

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

placeQPlace

Return type

QPlaceIdReply

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

PySide2.QtLocation.QPlaceManagerEngine.search(request)
Parameters

requestQPlaceSearchRequest

Return type

QPlaceSearchReply

Searches for places according to the parameters specified in request .

PySide2.QtLocation.QPlaceManagerEngine.searchSuggestions(request)
Parameters

requestQPlaceSearchRequest

Return type

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