Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write my own download manager using c++?

Tags:

c++

qt

qt4

i want to write my own download manager using c++(qt4) but i have no idea about that so

please suggest me from where should i start if you know any good tutorial or link the please

post it.

i also want to implement the pause/resume and multiple download features also.

i already know that there is a long list of download manager(fdm,idm,wget,flashgot,orbit etc.) but still i want to create my own to understand the working behind them.

-Thanks in advance.

like image 926
Peeyush Avatar asked Oct 19 '10 19:10

Peeyush


3 Answers

If you are trying to make production grade I would recommend URDL or Boost.Asio in general.

But if you are tinkering around for fun then consider Byte Ranges and multi-threading for async processing. Still asio would be the best bet for that too.

like image 198
Faheem Avatar answered Nov 06 '22 04:11

Faheem


Qt classes - QNetworkAccessManager, QNetworkRequest and QNetworkReply classes will help you in writing your download manager.

QNetworkAcessManager::get() is used for download

--Cheers

like image 32
Koteswara sarma Avatar answered Nov 06 '22 04:11

Koteswara sarma


Full Qt example: http://doc.qt.nokia.com/4.6/network-downloadmanager.html

like image 2
Roberto Avatar answered Nov 06 '22 03:11

Roberto