이 페이지에서

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

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

상수값설명
QPlaceIdReply::SavePlace0이 응답은 저장 위치 작업에 대해 생성되었습니다.
QPlaceIdReply::RemovePlace2이 응답은 위치 제거 작업에 대해 생성되었습니다.
QPlaceIdReply::SaveCategory1이 응답은 카테고리 저장 작업에 대해 생성되었습니다.
QPlaceIdReply::RemoveCategory3이 응답은 카테고리 제거 작업에 대해 생성되었습니다.

멤버 함수 설명서

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

작업 대상 객체의 식별자가 포함된 응답을 생성합니다. 이 응답은 지정된 operationType 에 대한 것이며, parent 를 사용합니다.

[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를 재구현합니다.

응답의 유형을 반환합니다.

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