【发布时间】:2014-03-25 13:38:17
【问题描述】:
$qdbusxml2cpp -v -c CustomIf -p customif.h:customif.cpp org.item.custom.xml
org.item.custom.xml
<node>
<interface name="org.pace.custom">
<method name="Send_Custom_Msg">
<arg name="msg" type="a(ii)" direction="in"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="Message"/>
</method>
<signal name="LateEvent">
<arg name="eventkind" type="s" direction="out"/>
</signal>
</interface>
</node>
如何在生成的适配器customif.h中添加header-message.h?我不想手动添加为#include“message.h”,但实际上希望qdbusxml2cpp添加包含。
【问题讨论】:
-
$ qdbusxml2cpp -c CustomIfAdaptor -a -i customifadaptor.h:customifadaptor.cpp org.pace.custom.xml 在这个命令中,在哪里添加message.h
标签: qt qtdbus qdbusxml2cpp