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

List:       kde-devel
Subject:    Re: kio question
From:       Emmanuel Touzery <emmanuel.touzery () wanadoo ! fr>
Date:       2000-09-01 18:30:21
[Download RAW message or body]

Right. Now it works. wasn't a bug in the kde libs finally. Just added a 
kapplication and here we go.
BUT it displays the download progress in a window and i don't want it (this 
is supposed to become a kicker applet).
However, i initialized Kapplication with false, false (use styles/enable 
GUI), so i didn't expect it to come up. How do i disable it?



#include <netaccess.h>
#include <kurl.h>
#include <qstring.h>
#include <stdio.h>
#include "ktempsdispo.h"
#include <kinstance.h>
#include <kdebug.h>
#include <kapp.h>
#include <kcmdlineargs.h>

using namespace KIO; 


int main(int argc, char **argv) {
  new KInstance("ktempsdispo");
  KCmdLineArgs::init(argc,argv,"ktempsdispo","...","0.0",false);
  new KApplication(false,false);
  QString local_file; //"portability" :o)
  printf("ok\n");
//    KURL url("file:/usr/local/manu/ktempsdispo/ktempsdispo.cpp");
  KURL url("http://www.arstechnica.com/index.html");
  if (!KIO::NetAccess::download(url,local_file))
    printf("foirage du d/l");
  printf("done, fichier %s\n",local_file.latin1());
  printf("ok\n");
}
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

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