[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    [Kde-bindings] korundum: KURL::List as param to DCOP call
From:       Glenn Ergeerts <glenn.ergeerts () telenet ! be>
Date:       2006-12-24 13:00:41
Message-ID: 200612241400.42248.glenn.ergeerts () telenet ! be
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic