Some porting from KIO::Jobs to KJobs
Kevin Ottens
ervin at kde.org
Wed Jan 17 12:01:59 GMT 2007
Le Mercredi 17 Janvier 2007 12:43, David Faure a écrit :
> This works for the case of loading contacts, but not when it's indeed about
> files. totalSize(2000) means 2000 bytes, not 2000 files, and you need
> totalFiles/totalDirs in addition.
Right now, totalSize is what's used for percentage computation... I wonder
what percent() is supposed to convey then.
> So generalizing this leads to totalSize / totalItems / totalOtherItems ? ;)
Generalizing it would give totalItems(qulonglong total, QString unit) :-)
Regards.
--
Kévin 'ervin' Ottens, http://ervin.ipsquad.net
"Ni le maître sans disciple, Ni le disciple sans maître,
Ne font reculer l'ignorance."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070117/c806a91b/attachment.sig>
More information about the kde-core-devel
mailing list