内容表

上一话题

QPlaceManager

下一话题

QPlaceMatchReply

QPlaceManagerEngine

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

Inheritance diagram of PySide2.QtLocation.QPlaceManagerEngine

概要

虚函数

信号

详细描述

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 文档编制。

另请参阅

QPlaceManager

class QPlaceManagerEngine ( 参数 [ , parent=None ] )
param parent

QObject

param parameters

Constructs a new engine with the specified parent ,使用 参数 to pass any implementation specific data to the engine.

PySide2.QtLocation.QPlaceManagerEngine. category ( categoryId )
参数

categoryId – unicode

返回类型

QPlaceCategory

Returns the category corresponding to the given categoryId .

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

  • parentCategoryId – unicode

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

parentId – unicode

返回类型

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

PySide2.QtLocation.QPlaceManagerEngine. childCategoryIds ( categoryId )
参数

categoryId – unicode

返回类型

字符串列表

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

PySide2.QtLocation.QPlaceManagerEngine. compatiblePlace ( original )
参数

original QPlace

返回类型

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 )
参数
返回类型

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="" ] )
参数
PySide2.QtLocation.QPlaceManagerEngine. finished ( reply )
参数

reply QPlaceReply

PySide2.QtLocation.QPlaceManagerEngine. getPlaceContent ( request )
参数

request QPlaceContentRequest

返回类型

QPlaceContentReply

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

PySide2.QtLocation.QPlaceManagerEngine. getPlaceDetails ( placeId )
参数

placeId – unicode

返回类型

QPlaceDetailsReply

Retrieves details of place corresponding to the given placeId .

PySide2.QtLocation.QPlaceManagerEngine. initializeCategories ( )
返回类型

QPlaceReply

Initializes the categories of the manager engine.

PySide2.QtLocation.QPlaceManagerEngine. locales ( )
返回类型

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.

另请参阅

setLocales()

PySide2.QtLocation.QPlaceManagerEngine. manager ( )
返回类型

QPlaceManager

Returns the manager instance used to create this engine.

PySide2.QtLocation.QPlaceManagerEngine. managerName ( )
返回类型

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 ( )
返回类型

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 )
参数

request QPlaceMatchRequest

返回类型

QPlaceMatchReply

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

PySide2.QtLocation.QPlaceManagerEngine. parentCategoryId ( categoryId )
参数

categoryId – unicode

返回类型

unicode

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

PySide2.QtLocation.QPlaceManagerEngine. placeAdded ( placeId )
参数

placeId – unicode

PySide2.QtLocation.QPlaceManagerEngine. placeRemoved ( placeId )
参数

placeId – unicode

PySide2.QtLocation.QPlaceManagerEngine. placeUpdated ( placeId )
参数

placeId – unicode

PySide2.QtLocation.QPlaceManagerEngine. removeCategory ( categoryId )
参数

categoryId – unicode

返回类型

QPlaceIdReply

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

PySide2.QtLocation.QPlaceManagerEngine. removePlace ( placeId )
参数

placeId – unicode

返回类型

QPlaceIdReply

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

PySide2.QtLocation.QPlaceManagerEngine. saveCategory ( category , parentId )
参数
返回类型

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 )
参数

place QPlace

返回类型

QPlaceIdReply

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

PySide2.QtLocation.QPlaceManagerEngine. search ( request )
参数

request QPlaceSearchRequest

返回类型

QPlaceSearchReply

Searches for places according to the parameters specified in request .

PySide2.QtLocation.QPlaceManagerEngine. searchSuggestions ( request )
参数

request QPlaceSearchRequest

返回类型

QPlaceSearchSuggestionReply

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

PySide2.QtLocation.QPlaceManagerEngine. setLocales ( locales )
参数

locales

Set the list of preferred locales .

另请参阅

locales()