Bug in qdbusxml2cpp signal generation

Kevin Krammer kevin.krammer at gmx.at
Fri Jul 20 01:51:07 BST 2007


Hi,

I found a bug in the QDBus code generator tool in KDE's qt-copy (possibly 
still applies to Trolltech's internal version)

The signal's parameters where passed as "input" parameters, so any "Out" 
annotation was ignored, i.e. if an argument's signature requires an 
annotation it would have to be an "In" annotation to be found.

See kdepim/akonadi/server/interfaces/org.kde.Akonadi.NotificationManager.xml 
for example. Changing the annotation from "In0" to "Out0" will make the build 
of kdepim/akonadi/libakonadi fail.

Not sure if the attached patch is correct though, signal arguments are "input" 
code wise (e.g. const references), but "output" introspection wise

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qdbusxml2cpp.diff
Type: text/x-diff
Size: 570 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070720/50a6a36d/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070720/50a6a36d/attachment.sig>


More information about the kde-core-devel mailing list