QPlaceIdReply Class

QPlaceIdReply 클래스는 장소 및 카테고리의 저장 및 제거 작업과 같은 식별자를 반환하는 작업을 관리합니다. 더 보기...

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

공용 유형

enum OperationType { SavePlace, RemovePlace, SaveCategory, RemoveCategory }

공용 함수

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

재구현된 공용 함수

virtual QPlaceReply::Type type() const override

보호된 함수

void setId(const QString &identifier)

상세 설명

장소 저장, 카테고리 저장, 장소 제거 및 카테고리 제거에 사용할 수 있다는 점에서 QPlaceIdReply는 다목적 답장으로 간주할 수 있습니다. 각각의 경우에 추가, 수정 또는 제거된 장소 또는 카테고리의 식별자를 반환합니다.

식별자 답글을 사용하는 방법에 대한 예는 장소 저장 하기를 참조하세요.

QPlaceManager도 참조하세요 .

회원 유형 문서

enum QPlaceIdReply::OperationType

이 응답을 생성하는 데 사용된 연산 유형을 정의합니다.

Constant설명
QPlaceIdReply::SavePlace0장소 저장 작업에 대한 응답이 생성되었습니다.
QPlaceIdReply::RemovePlace2장소 제거 작업에 대한 응답이 작성되었습니다.
QPlaceIdReply::SaveCategory1카테고리 저장 작업에 대한 답글이 작성되었습니다.
QPlaceIdReply::RemoveCategory3카테고리 제거 작업에 대한 응답이 작성되었습니다.

멤버 함수 문서

[explicit] QPlaceIdReply::QPlaceIdReply(QPlaceIdReply::OperationType operationType, QObject *parent = nullptr)

연산된 객체의 식별자를 포함하는 응답을 작성합니다. 응답은 주어진 operationTypeparent 에 대한 응답입니다.

[virtual noexcept] QPlaceIdReply::~QPlaceIdReply()

답글을 삭제합니다.

QString QPlaceIdReply::id() const

작업과 관련된 식별자를 반환합니다. 예를 들어 장소 저장 작업의 경우 식별자는 저장된 장소의 식별자입니다. 카테고리 제거 작업의 경우 제거된 카테고리의 식별자입니다.

setId()도 참조하세요 .

QPlaceIdReply::OperationType QPlaceIdReply::operationType() const

답글의 작업 유형을 반환합니다. 즉, 이 식별자 응답이 장소 저장 작업, 카테고리 제거 작업 등을 위한 것인지 여부를 의미합니다.

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

답장의 identifier 을 설정합니다.

id()도 참조하세요 .

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

재구현합니다: QPlaceReply::type() const.

회신 유형을 반환합니다.

© 2025 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.