|   Registered Member   
 | Is it possible to download a binary file with the classes KdeNetwork/KGet?
                                Sat Mar 28, 2009 11:47 am
                             
							Hi, I'm developing a KDE application to download some binary file from web and I'm searching a way to download these file with the classes KdeNetwork/KGet. After searching for hours in the api.kde.org documentation (btw, very interesting!) I didn't found a way to do that. Is it possible to do that with these class or I have to search another way? Have a nice day. P.S.: I don't want to use wget and parse its log file.. :thumbs_down: P.P.S.: I hope my English is a bit understandable.. :'( 
								eDog,
 proud KDE user since 2007 | 
|   Administrator   
 | RE: Is it possible to download a binary file with the classes KdeNetwork/KGet?
                                Sat Mar 28, 2009 12:39 pm
                             
							This should be done with KIO - A list of its classes is available here: http://api.kde.org/4.x-api/kdelibs-apid ... tated.html
						 
								KDE Sysadmin [img]content/bcooksley_sig.png[/img] | 
|   Registered Member   
 | RE: Is it possible to download a binary file with the classes KdeNetwork/KGet?
                                Sat Mar 28, 2009 1:27 pm
                             
							Thanks bcooksley,I've found this class which is the one I need. http://api.kde.org/4.x-api/kdelibs-apid ... oader.html But.. I've a problem: in the documentation is written I have to include downloader.h 
 But when I compile I get this error: 
 This means that the compiler doesn't found the "downloader.h" header.. So.. what header file do I have to include? Thanks in advance.   
								eDog,
 proud KDE user since 2007 | 
|   Administrator   
 | RE: Is it possible to download a binary file with the classes KdeNetwork/KGet?
                                Sat Mar 28, 2009 1:33 pm
                             
							Please ensure that the correct include directory has been set. You may wish to use KIO:KIO::CopyJob instead.
						 
								KDE Sysadmin [img]content/bcooksley_sig.png[/img] | 
|   Registered Member   
 | RE: Is it possible to download a binary file with the classes KdeNetwork/KGet?
                                Sat Mar 28, 2009 5:05 pm
                             
							Ok, never mind, I'll use CopyJob. Uhm, I've read some documentation.. and.. Can you give me an example of CopyJob? Many thanks   
								eDog,
 proud KDE user since 2007 | 
|   Administrator   
 | RE: Is it possible to download a binary file with the classes KdeNetwork/KGet?
                                Sat Mar 28, 2009 8:49 pm
                             
							Use it as follows: 
 More information available from here: http://api.kde.org/4.x-api/kdelibs-apid ... b6cc7b20e4 
								KDE Sysadmin [img]content/bcooksley_sig.png[/img] | 
Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell
 
		 
		 
		 
		