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

QDbusConnection does not export Q_INVOKABLE to QBus

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P1: Critical
    • 4.7.0
    • 4.7.0
    • D-Bus
    • None

    Description

      QDbusConnection::registerObject fails to export Q_INVOKABLE functions to dbus. Everything else from the meta object is exported, with the exceptions of Enums. This was an oversight in the design and should be corrected by the attached patch.

      Q_INVOKABLE is required for Qt Mobility Service Framework, since every other platform can export them, dbus must not be an exception. Should this patch not make it into Qt 4.7 then Qt Mobility Service Framework would have to duplicate the code and support it for years. This change can not be made in Qt 4.7.x once Qt 4.7.0 is released since it would break backwards binary compatibility due to the addition of the Enum. The change is minor with only lines of code being updated, plus updates to the unit tests.

      Attachments

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

        Activity

          People

            ttomkins Toby Tomkins (closed Nokia identity) (Inactive)
            stanleyj Andrew Stanley-Jones (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes