QPlaceIdReply Class

The QPlaceIdReply class manages operations which return an identifier such as saving and removal operations of places and categories. More...

Header: #include <QPlaceIdReply>
qmake: QT += location
Since: Qt 5.6
Inherits: QPlaceReply

This class was introduced in Qt 5.6.

Public Types

enum OperationType { SavePlace, RemovePlace, SaveCategory, RemoveCategory }

Public Functions

QPlaceIdReply(QPlaceIdReply::OperationType operationType, QObject *parent = nullptr)
virtual ~QPlaceIdReply()
QString id() const
QPlaceIdReply::OperationType operationType() const

Reimplemented Public Functions

virtual QPlaceReply::Type type() const override

Protected Functions

void setId(const QString &identifier)

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 QPlaceManager.

Member Type Documentation

enum QPlaceIdReply::OperationType

Defines the type of operation that was used to generate this reply.

ConstantValueDescription
QPlaceIdReply::SavePlace0The reply was created for a save place operation
QPlaceIdReply::RemovePlace2The reply was created for a remove place operation.
QPlaceIdReply::SaveCategory1The reply was created for a save category operation
QPlaceIdReply::RemoveCategory3The reply was created for a remove category operation.

Member Function Documentation

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.

[virtual] QPlaceIdReply::~QPlaceIdReply()

Destroys the reply.

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.

See also setId().

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.

[protected] void QPlaceIdReply::setId(const QString &identifier)

Sets the identifier of the reply.

See also id().

[override virtual] QPlaceReply::Type QPlaceIdReply::type() const

Reimplements: QPlaceReply::type() const.

Returns the type of reply.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.