Qt D-Bus XML 컴파일러(qdbusxml2cpp)

Qt D-Bus XML 컴파일러는 인터페이스 설명을 구문 분석하고 해당 인터페이스를 나타내는 정적 코드를 생성하는 데 사용할 수 있는 도구로, 원격 객체를 호출하거나 해당 인터페이스를 구현하는 데 사용할 수 있습니다.

qdbusxml2cpp 에는 인터페이스(프록시) 클래스 또는 어댑터 클래스라는 두 가지 작동 모드가 있으며, 이는 생성 가능한 두 가지 출력에 해당합니다. 후자는 C++ 헤더와 소스 파일로 구성되며, 필요에 따라 편집하고 조정할 수 있습니다.

qdbusxml2cpp 도구는 애플리케이션을 컴파일할 때마다 실행하는 것이 아닙니다. 대신 코드를 개발할 때나 인터페이스가 변경될 때 사용하도록 되어 있습니다.

qdbusxml2cpp 에서 생성된 어댑터 클래스는 완료해야 하는 골격일 뿐입니다. 기본적으로 어댑터가 연결된 객체에서 동일한 이름의 슬롯에 대한 호출을 생성합니다. 그러나 필요에 따라 해당 슬롯이나 속성 접근자 함수를 수정할 수 있습니다.

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