[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bindings
Subject: Re: [Kde-bindings] korundum: KURL::List as param to DCOP call
From: Pau Garcia i Quiles <pgquiles () elpauer ! org>
Date: 2006-12-24 18:23:39
Message-ID: 20061224192339.lw7e8a3a6tc00oow () www ! elpauer ! org
[Download RAW message or body]
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@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@kde.org
> https://mail.kde.org/mailman/listinfo/kde-bindings
>
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic