[Kde-bindings] Ruby bindings and QValueList<int>

Brian Bart bebart at gmail.com
Sun Oct 22 16:18:22 UTC 2006


I'm having some problems using the kde bindings to call a function from Ruby
that returns a QValueList<int>. Is this a known problem? I've been searching
around, and cannot find recent references to this problem. Other functions
that return, for example, QCStringList, seem to be fine. I'm using
kdebindings 3.5.4. Below is sample output.

-bb

== irb session output ==
irb(main):001:0> require 'korundum'
=> true
irb(main):002:0> c = KDE::DCOPClient.new
=> #<KDE::DCOPClient:0xb4a14c28 name="unnamed">
irb(main):003:0> c.attach
=> true
irb(main):004:0> k = KDE::DCOPRef.new 'ktorrent', 'KTorrent'
=> #<KDE::DCOPRef:0xb4a0fcf0 app="ktorrent", obj="KTorrent">
irb(main):005:0> k.setDCOPClient c
=> nil
irb(main):006:0> k.getTorrentInfo 3
=> ["August EP", "Seeding", "75.9 MB", "75.9 MB", "82.5 MB", "0.0 KB/s", "
0.0 KB/s", "finished", "0", "100.00 %"]
irb(main):007:0> k.getTorrentNumbers(0)
ArgumentError: Cannot handle 'QValueList<int>' as DCOP return-type
        from /usr/lib/ruby/site_ruby/1.8/KDE/korundum.rb:310:in `dcop_call'
        from /usr/lib/ruby/site_ruby/1.8/KDE/korundum.rb:310:in `callExt'
        from /usr/lib/ruby/site_ruby/1.8/KDE/korundum.rb:257:in
`method_missing'
        from (irb):7
        from /usr/lib/ruby/site_ruby/1.8/Qt/qtruby.rb:1360
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20061022/f75f2b75/attachment.html>


More information about the Kde-bindings mailing list