[Kde-bindings] korundum: KURL::List as param to DCOP call

Pau Garcia i Quiles pgquiles at elpauer.org
Sun Dec 24 18:23:39 UTC 2006


Send a Ruby array of KDE::URL items

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to the amount of work, I usually need 10 days to answer)


Quoting Glenn Ergeerts <glenn.ergeerts at telenet.be>:

> Hi,
>
> i'm trying to use KGet's DCOP interface from ruby/korundum, more specifically
> the method
> ASYNC addTransfers(KURL::List src,QString destDir)
> The problem is the first parameter: There does not seem to exist a
> KDE::URL::List class.
> I've tried a couple of things like passing a KDE::URL, which returns true but
> this doesn't seem to do anything..
>
> irb(main):009:0> dcopRef.send("addTransfers", url, "/tmp")
> => true
>
> Passing an array of KDE::URLs gives me an
> ArgumentError: NULL pointer given
>
> I also looked for a Qt::ValueList class (because KURL::List derives from
> QValueList) but it doesn't exists.
>
> So i'm stuck here (and probably missing something obious, being new to
> ruby/korundum/DCOP).. Can someone point me in the right direction please?
>
> thx,
> Glenn
>
> PS: I'm using kubuntu edgy's korundum 3.5.4
> The testcode i'm using:
>
>     dcopclient = KDE::DCOPClient.new
>     dcopclient.attach
>     dcopclient.registerAs("multi_kget",false)
>     dcopRef = KDE::DCOPRef.new("kget", "KGet-Interface")
>     dcopRef.setDCOPClient(dcopclient)
>     result = dcopRef.send("addTransfers", url, "/tmp")
> _______________________________________________
> Kde-bindings mailing list
> Kde-bindings at kde.org
> https://mail.kde.org/mailman/listinfo/kde-bindings
>





More information about the Kde-bindings mailing list