<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 08/28/2014 03:18 PM, Thiago Macieira wrote:<br>
</div>
<blockquote cite="mid:8491191.5cmmy4ixbh@tjmaciei-mobl4" type="cite">It should be. Can you tell us a little more? Is your slot called at all? If not, what error does the caller get when trying to call it? If so, is any warning printed after return?
</blockquote>
<br>
When I build it with type "ao" in the ServiceData.xml file, I get this warning at runtime...<br>
<br>
<meta name="qrichtext" content="1">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<!--StartFragment--><span style=" font-family:'Monospace'; font-size:9pt; color:#aa0000;">QDBusError("org.freedesktop.DBus.Error.InvalidSignature", "Unexpected reply signature: got "ao", expected "a(ss)"")
</span><!--EndFragment--></p>
<style type="text/css">
p, li { white-space: pre-wrap; }
</style><br>
So I updated my xml file to read...<br>
<br>
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" <a class="moz-txt-link-rfc2396E" href="http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"</a>><br>
<node><br>
  <interface name="com.GDM.ServiceData"><br>
    <method name="serviceErrorLog"><br>
        <arg name="serviceErrorLogData" type="ao" direction="out"/><br>
    </method><br>
  </interface><br>
</node><br>
<br>
When I change the xml file to have a(ss) as the type instead of ao, qtcreator shows a build error that suggests I need to add the following...<br>
<br>
<span style=" color:#aa0000;">You should add <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="<type>"/> to the XML description<br>
<br>
<font color="#000000">So I updated my xml file to look like this...</font><br>
</span><br>
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" <a class="moz-txt-link-rfc2396E" href="http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"</a>><br>
<node><br>
  <interface name="com.GDM.ServiceData"><br>
    <method name="serviceErrorLog"><br>
        <arg name="serviceErrorLogData" type="a(ss)" direction="out"/><br>
        <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="ServiceErrorLogData"/><br>
    </method><br>
  </interface><br>
</node><br>
<br>
and I got this warning...<br>
<br>
<meta name="qrichtext" content="1">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<!--StartFragment--><span style=" color:#aa0000;">servicedata_adaptor.cpp:36:1: error: 'ServiceErrorLogData' does not name a type</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" color:#aa0000;">ServiceErrorLogData ServiceDataAdaptor::serviceErrorLog()</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" color:#aa0000;">^</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" color:#aa0000;">make[1]: *** [servicedata_adaptor.o] Error 1<br>
</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" color:#aa0000;"><br>
<font color="#000000">So I tried to change it to <QList></font></span>ServiceErrorLogData and I got...
<meta name="qrichtext" content="1">
 </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<!--StartFragment--><span style=" color:#aa0000;">Got unknown type `a(ss)'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" color:#aa0000;">You should add <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="<type>"/> to the XML description</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" color:#aa0000;">make[1]: *** [servicedata_adaptor.h] Error 1</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" color:#aa0000;">make: *** [sub-DataProcess-DataProcess-pro-make_first] Error 2</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" font-weight:600; color:#aa0000;">16:11:10: The process "/usr/bin/make" exited with code 2.</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" color:#aa0000;">Error while building/deploying project dbustest (kit: MEL Qt 5.2.1)</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" color:#aa0000;">When executing step 'Make'</span><!--EndFragment--></p>
<p></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" color:#aa0000;"><br>
</span>What should I set the <Type> to in the xml file? Thanks!<br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">
Nate<br>
<!--EndFragment--></p>
<style type="text/css">
p, li { white-space: pre-wrap; }
</style><br>
<br>
<p>
Confidentiality Notice: The preceding e-mail message (including any attachments) contains information that may be confidential, protected by applicable legal privileges, or constitute non-public information. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is not authorized and may be unlawful.<p>

</body>
</html>