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

List:       kde-devel
Subject:    Re: New KDE Dock Applet
From:       Kurt Granroth <p28901 () email ! mot ! com>
Date:       1999-08-30 22:55:55
[Download RAW message or body]

John Corey wrote:
> After downloading this kweather I found it wasn't a kicker applet as I
> assumed since I just had that on my mind working on my programs, but for
> KDE 1.x.  But from what I've seen in some other KDE 2 apps, to do this
> is just:
> 
> KIOJob *iojob = new KIOJob;
> connect(iojob, SIGNAL(SIGNAL( sigFinished( int ) ), this,
> SLOT(myFinished(int)));
> iojob->copy("http://www.whatever/url/file.html", "file:/tmp/file.html");
> 
> to save that to /tmp/file.html, right?

Hmm.. why save to a file?  Why not just

connect(iojob, SIGNAL(sigData(int, const char*, int)),
        this, SLOT(slotData(int, const char*, int));
iojob->get("http://www.whatever/url/file.html");

and grab all of your data in your slotData(..) slot?
-- 
Kurt Granroth            | granroth@kde.org
KDE Developer/Evangelist | http://www.pobox.com/~kurt_granroth
         KDE -- Putting a Friendly Face on Linux

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

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