下面是创建适配器的xml代码
自省1.0 // EN“
“http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd” &GT;<node> <interface name="conn.brw.IHistoryManager"> <method name="deleteAllItems"> <arg name="retval" type="(i)" direction="out"/> <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="conn::brw::ERROR_IDS" /> </method> <method name="deleteItem"> <arg name="a_i32Uid" type="i" direction="in"/> <arg name="retval" type="i" direction="out"/> <annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="const conn::brw::HistoryItemList &" /> <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="conn::brw::ERROR_IDS" /> </method> <method name="deleteItemsInRange"> <arg name="a_i64BeginTime" type="(x)" direction="in"/> <arg name="a_i64EndTime" type="(x)" direction="in"/> <arg name="retval" type="(i)" direction="out"/> <annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="const conn::brw::HistoryItemList &" /> <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="const conn::brw::HistoryItemList &" /> <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="conn::brw::ERROR_IDS" /> </method> <method name="getItems"> <arg name="a_i64BeginVisitTime" type="(x)" direction="in"/> <arg name="a_i64EndVisitTime" type="(x)" direction="in"/> <arg name="a_esortType" type="(i)" direction="in"/> <arg name="a_u32StartIndex" type="(u)" direction="in"/> <arg name="a_u32ItemsCount" type="(u)" direction="in"/> <arg name="a_oItem" type="a(ixxiuu)" direction="out"/> <arg name="retval" type="(i)" direction="out"/> <annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="conn::brw::BOOKMARK_SORT_TYPE" /> <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="conn::brw::ERROR_IDS" /> <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="conn::brw::HistoryItemList &" /> </method> <method name="getItemsCount"> <arg name="a_i64BeginVisitTime" type="(x)" direction="in"/> <arg name="a_i64EndVisitTIme" type="(x)" direction="in"/> <arg name="retval" type="(u)" direction="out"/> <annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="const conn::brw::HistoryItemList &" /> <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="const conn::brw::HistoryItemList &" /> </method> <method name="getMaxHistoryNumber"> <arg name="retval" type="(u)" direction="out"/> </method> <signal name="onChanged"> <arg name="retval" type="i" direction="out"/> <annotation name="org.qtproject.QtDBus.QtTypeName.out0" value="const conn::brw::ERROR_IDS" /> </signal> </interface> </node>
在构建它时会出现以下错误。
: - 1:错误:[ihistorymanager_adaptor.h]错误1
请帮忙。感谢