QPlaceIdReply Class
The QPlaceIdReply class manages operations which return an identifier such as saving and removal operations of places and categories. 更多...
头文件: | #include <QPlaceIdReply> |
qmake: | QT += location |
开始支持版本: | Qt 5.6 |
基类: | QPlaceReply |
公有类型
enum | OperationType { SavePlace, RemovePlace, SaveCategory, RemoveCategory } |
公有函数
QPlaceIdReply(OperationType operationType, QObject *parent = Q_NULLPTR) | |
virtual | ~QPlaceIdReply() |
QString | id() const |
OperationType | operationType() const |
重新实现的公有函数
virtual QPlaceReply::Type | type() const |
- 4 个公有函数继承自 QPlaceReply
- 32 个公有函数继承自 QObject
受保护的函数
void | setId(const QString &identifier) |
- 2 个受保护的函数继承自 QPlaceReply
- 9 个受保护的函数继承自 QObject
其他继承的成员
- 1 个属性继承自 QObject
- 1 个公有槽函数继承自 QPlaceReply
- 1 个公有槽函数继承自 QObject
- 3 个信号继承自 QPlaceReply
- 2 个信号继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
The QPlaceIdReply class manages operations which return an identifier such as saving and removal operations of places and categories.
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.
参见 QPlaceManager.
成员类型
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. |
成员函数
QPlaceIdReply::QPlaceIdReply(OperationType operationType, QObject *parent = Q_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.
参见 setId().
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.
参见 id().
[virtual]
QPlaceReply::Type QPlaceIdReply::type() const
Reimplemented from QPlaceReply::type().
Returns the type of reply.