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.