QT_GENERATE_DBUS_인터페이스
헤더 파일에서 D-Bus 인터페이스를 생성합니다.
이 명령은 Qt6
패키지의 DBus
구성 요소에 정의되어 있습니다. 패키지를 로드합니다:
find_package(Qt6 REQUIRED COMPONENTS DBus)
이 명령은 Qt 6.0에 도입되었습니다.
개요
qt_generate_dbus_interface(header [customName] [OPTIONS options] )
버전 없는 명령이 비활성화되어 있으면 qt6_generate_dbus_interface()
을 대신 사용합니다. 이 명령은 이 명령과 동일한 인수 집합을 지원합니다.
설명
QObject- 파생 클래스 선언이 포함된 C++ 소스 또는 헤더 파일을 구문 분석하고 D-Bus 인트로스펙션 XML이 포함된 파일을 생성합니다.
기본적으로 생성된 XML 파일은 현재 바이너리 디렉터리에 저장되며 헤더와 동일한 기본 이름을 갖습니다. 선택적 두 번째 인수로 customName
를 추가하여 다른 이름이나 경로를 지정할 수 있습니다.
옵션
이 함수는 qdbuscpp2xml
명령줄 도구에 대한 호출을 설정합니다. 도구에 대한 추가 인수는 OPTIONS
뒤에 설정할 수 있습니다.
© 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.