Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-21577

qdbusxml2cpp fails to parse QVariantMap parameters for Signal

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 5.6.3, 5.7.1
    • 4.7.4
    • D-Bus
    • None
    • Linux Ubuntu 10.10

    • c62f71722639c39f210ddbec0c4d832521b3f187

    Description

      Trying to create an Interface to BlueZ gives me an error message "Got unknown type `a

      {sv}

      '" and no output file is written.
      The compiler says also
      You should add <annotation name="com.trolltech.QtDBus.QtTypeName.In1" value="<type>"/> to the XML description

      In fact as you can see in the attachement DBUS_BlueZ_Adapter.XML, the proper annotation is provide as an Out paramater... This is normal for a "Signal". But it seems that the compiler expect a In parameter.
      The XML file was generated using the qdbuscpp2xml utility from the attached file DBUS_BlueZ_Adapter.h.

      If I add the requested line in the XML file, there is no error and the code is properly generated...

      I have checked for "Method" with QVariantMap as reply and the cose is properly generated... It seems that problem occurs only for "Signal"...

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            xavier.jaffrezic Xavier JAFFREZIC
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes