[PyQt] Add a download to KGet

Roberto Alsina ralsina at kde.org
Thu Aug 14 21:23:44 BST 2008


On Thursday 14 August 2008 16:37:16 Dog Walker wrote:
> On Thu, Aug 14, 2008 at 6:47 AM, Jan Holthuis <jan at holmek.de> wrote:
> > Well, I really need to know if there's a way to do this. Maybe via DBUS
> > or something like that...
> > Can someone please help me?
> >
> > Thanks in advance,
> > Jan Holthuis
> >
> > Am Sonntag 10 August 2008 15:10:17 schrieb Jan Holthuis:
> >> Hi!
> >> I was just wondering if there's a method to add a download to KGet.
> >> Maybe something like this:
> >> http://api.kde.org/4.x-api/kdenetwork-
> >> apidocs/kget/html/classKGet.html#2cb901470443e9fdd5c4b703b6f97434
> >>
> >> Unfortunately, it seems that kdenetwork doesn't exist in PyKDE. Is (or
> >> will) there (be) another way to do this?
> >>
> >> All the best,
> >> Jan Holthuis
>
> I would like at dcop. kget has a addTransfers method which you may be
> able to use via the dcopext module. Run kdcop to find the names
> required. (kdcop wouldn't execute the addTransfers method when I tried
> it because it didn't know what the KURL::list type was, but dcopext
> does know.)

I replied already but maybe it didn't show up: just call kget with the URLs 
you want to download as arguments in its CLI.

It will add them itself.

-- 
 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  KDE Developer (MFCH)
 (_Y_.)' ._   ) `._`.  " -.-'  http://lateral.netmanagers.com.ar 
  _..`-'_..-_/ /-'_.'     The 6,855th most popular site of Slovenia   
(l)-'' ((i).' ((!.'       according to alexa.com (27/5/2007) 
                    
Debugging is twice as hard as writing the code in the first place. 
Therefore, if you write the code as cleverly as possible, you are, 
by definition, not smart enough to debug it. --Brian W. Kernighan


More information about the PyQt mailing list