- class QPlaceContentReply¶
The
QPlaceContentReply
class manages a content retrieval operation started by an instance ofQPlaceManager
. More…Synopsis¶
Methods¶
def
__init__()
def
content()
def
request()
def
setContent()
def
setRequest()
def
setTotalCount()
def
totalCount()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
See Fetching Rich Content for an example on how to use a content reply.
See also
Constructs a content reply with a given
parent
.- content()¶
- Return type:
Dictionary with keys of type .int and values of type QPlaceContent.
Returns the collection of content retrieved.
See also
- nextPageRequest()¶
- Return type:
Returns a place content request that can be used to request the next batch of place content results.
See also
- previousPageRequest()¶
- Return type:
Returns a place content request that can be used to request the previous batch of place content results.
See also
- request()¶
- Return type:
Returns the content request that was used to generate this reply.
See also
- setContent(content)¶
- Parameters:
content – Dictionary with keys of type .int and values of type QPlaceContent.
Sets the
content
of the reply.See also
- setNextPageRequest(next)¶
- Parameters:
next –
QPlaceContentRequest
Sets the place content request that can be used to request the next batch of place content results to
next
.See also
- setPreviousPageRequest(previous)¶
- Parameters:
previous –
QPlaceContentRequest
Sets the place content request that can be used to request the previous batch of place content results to
previous
.See also
- setRequest(request)¶
- Parameters:
request –
QPlaceContentRequest
Sets the content
request
used to generate this this reply.See also
- setTotalCount(total)¶
- Parameters:
total – int
Sets the
total
number of content objects for a place.See also
- totalCount()¶
- Return type:
int
Returns the total number of content objects for a place. If the total number of content objects cannot be counted, a value of -1 is returned. This count only refers to the total count for a single content type, that is, the content type that was specified when content was requested with the
QPlaceManager
.See also