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

qdbusxml2cpp doesn't uderstand signals with complex types (QDateTime)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 5.6
    • 4.8.3, 5.0.0
    • D-Bus
    • None
    • Qt with -dbus switch
    • 8
    • c62f71722639c39f210ddbec0c4d832521b3f187
    • Foundation Sprint 85

    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.

      Attachments

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

        Activity

          People

            ievgenii.meshcheriakov Ievgenii Meshcheriakov
            tomols Undisclosed Identity
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes