QPlaceIdReply Class▲
-
Header: QPlaceIdReply
-
qmake: QT += location
-
Inherits: QPlaceReply
-
Inherited By:
-
Group: QPlaceIdReply is part of QtLocation-places, QtLocation-places-replies
I. 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.
I-1. See Also▲
See also QPlaceManager
II. Member Type Documentation▲
II-1. enum QPlaceIdReply::OperationType▲
Defines the type of operation that was used to generate this reply.
Constant |
Value |
Description |
---|---|---|
QPlaceIdReply::SavePlace |
0 |
The reply was created for a save place operation |
QPlaceIdReply::RemovePlace |
2 |
The reply was created for a remove place operation. |
QPlaceIdReply::SaveCategory |
1 |
The reply was created for a save category operation |
QPlaceIdReply::RemoveCategory |
3 |
The reply was created for a remove category operation. |
III. Member Function Documentation▲
III-1. [explicit] QPlaceIdReply::QPlaceIdReply(QPlaceIdReply::OperationType operationType, QObject *parent = nullptr)▲
Constructs a reply which contains the identifier of the object operated upon. The reply is for the given operationType and with parent.
III-2. [virtual] QPlaceIdReply::~QPlaceIdReply()▲
Destroys the reply.
III-3. QString QPlaceIdReply::id() const▲
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.
III-3-1. See Also▲
See also setId()
III-4. QPlaceIdReply::OperationType QPlaceIdReply::operationType() const▲
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.
III-5. [protected] void QPlaceIdReply::setId(const QString &identifier)▲
III-6. [override virtual] QPlaceReply::Type QPlaceIdReply::type() const▲
Reimplements: QPlaceReply::type() const.
Returns the type of reply.