Details
Description
I have problem with running qdbusxml2cpp on xml generated by qdbuscpp2xml. Problem is related to signals with complex types (for exmaple QDateTime).
When you generate xml file it will contain annotation to signal argument:
... <signal name="dateTimeChanged"> <arg name="dateTime" type="((iii)(iiii)i)" direction="out"/> <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="QDateTime"/> </signal> ...
However qdbusxml2cpp seeking for annotations key always like "com.trolltech.QtDBus.QtTypeName.In*" so it exits with error.
It happens because qdbusxml2ccp creates signals with const & arguments that imply picking In direction of annotations. I think that signals should be treated differently. In signals section of qdbusxml2ccp annotation key should be replaced (from Out* to In*). It will be back compatible with ol qdbusxml2cpp and will fix this bug. I could provide a patch for 4.8.* version.