Commit ee7f6b99 authored by spiiroin's avatar spiiroin

[dbus] Add Qt specific annotation to usb-moded Introspect XML

Attempting to generate code from usb-moded introspect data with
qdbusxml2cpp fails because "a{sv}" is by design mystery to it.

Add annotation to tell qdbusxml2cpp that "a{sv}" is QVariantMap.

And add couple of missing "\n" chars while at it.
Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
parent 1aa8a7cc
......@@ -92,9 +92,11 @@
</signal>
<signal name="sig_usb_taget_mode_config_ind">
<arg name="config" type="a{sv}"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="QVariantMap"/>
</signal>
<method name="get_target_mode_config">
<arg name="config" type="a{sv}" direction="out"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QVariantMap"/>
</signal>
</interface>
</node>
......@@ -213,12 +213,14 @@ static const char umdbus_introspect_usbmoded[] =
" <signal name=\"" USB_MODE_WHITELISTED_MODES_SIGNAL_NAME "\">\n"
" <arg name=\"modes\" type=\"s\"/>\n"
" </signal>\n"
" <signal name=\"" USB_MODE_TARGET_CONFIG_SIGNAL_NAME "\">"
" <arg name=\"config\" type=\"a{sv}\"/>"
" </signal>"
" <method name=\"" USB_MODE_TARGET_CONFIG_GET "\">"
" <arg name=\"config\" type=\"a{sv}\" direction=\"out\"/>"
" </signal>"
" <signal name=\"" USB_MODE_TARGET_CONFIG_SIGNAL_NAME "\">\n"
" <arg name=\"config\" type=\"a{sv}\"/>\n"
" <annotation name=\"org.qtproject.QtDBus.QtTypeName.In0\" value=\"QVariantMap\"/>\n"
" </signal>\n"
" <method name=\"" USB_MODE_TARGET_CONFIG_GET "\">\n"
" <arg name=\"config\" type=\"a{sv}\" direction=\"out\"/>\n"
" <annotation name=\"org.qtproject.QtDBus.QtTypeName.Out0\" value=\"QVariantMap\"/>\n"
" </signal>\n"
" </interface>\n"
"</node>\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment