PySide6.QtLocation.QPlaceIdReply¶
- class QPlaceIdReply¶
The
QPlaceIdReply
class manages operations which return an identifier such as saving and removal operations of places and categories. More…Synopsis¶
Methods¶
def
__init__()
def
id()
def
operationType()
def
setId()
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¶
The
QPlaceIdReply
can be considered a multipurpose reply in that it can be used to save places, save categories, remove places and remove categories. In each case it returns an identifier of the place or category that was added, modified or removed.See Saving a place for an example of how to use an identifier reply.
See also
- class OperationType¶
Defines the type of operation that was used to generate this reply.
Constant
Description
QPlaceIdReply.SavePlace
The reply was created for a save place operation
QPlaceIdReply.RemovePlace
The reply was created for a remove place operation.
QPlaceIdReply.SaveCategory
The reply was created for a save category operation
QPlaceIdReply.RemoveCategory
The reply was created for a remove category operation.
- __init__(operationType[, parent=None])¶
- Parameters:
operationType –
OperationType
parent –
QObject
Constructs a reply which contains the identifier of the object operated upon. The reply is for the given
operationType
and withparent
.- id()¶
- Return type:
str
Returns the relevant identifier for the operation. For example for a save place operation, the identifier is that of the saved place. For a category removal operation, it is the identifier of the category that was removed.
See also
- operationType()¶
- Return type:
Returns the operation type of the reply. This means whether this identifier reply was for a save place operation, remove category operation and so on.
- setId(identifier)¶
- Parameters:
identifier – str
Sets the
identifier
of the reply.See also