Getting full size of a download

Asked by Snehil

Hi, I was fiddling around with source to create a appindicator for linuxdcpp, but I wasnt able to get the total size of a running segmented download ( i only get the size of current segment ). I want the information as shown in bottom transfers section. How can i get that ?

Question information

English Edit question
LinuxDC++ Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
Best Razzloss (razzloss) said :

See linux/ updateParent_gui, getParams_client and updateTransfer_gui. The total size of the file is available in the Transfer object (or not, that might be the segment size. In that case the size is available in QueueManager when the segment starts). The current progress is calculated from the Download position of the parent row (which is updated from QueueManager when each segment starts) plus the position of each individual active child row (getPos of the transfer object).


Revision history for this message
Snehil (snehilbuxy) said :

Thanks, that did it. Btw any guidelines for submitting the code ?

Revision history for this message
Snehil (snehilbuxy) said :

Thanks Razzloss, that solved my question.

Revision history for this message
Razzloss (razzloss) said :

Other than the coding conventions and program structure outlined here: no (page is old, but still pretty much up to date). For small patches/single features just open a bug report describing what the code does and attach the patch to that report.


Revision history for this message
Steven Sheehy (steven-sheehy) said :

Concerning app indicators, please see bug #577327