Some porting from KIO::Jobs to KJobs

David Faure faure at kde.org
Wed Jan 17 11:43:55 GMT 2007


On Wednesday 17 January 2007 10:39, Kevin Ottens wrote:
> > There's a meaning attached to it too.
> > totalSize could be about any kind of data. totalFiles is more specifically
> > about files. Maybe we need an API for telling uiserver what kind of objects
> > it's about, so that loaidng 2000 contacts shows "1 / 2000 contacts" instead
> > of "1 / 2000 files".
> 
> That was exactly my point. totalSize() is enough, you just need a way to 
> specify the unit.

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.

So generalizing this leads to totalSize / totalItems / totalOtherItems ? ;)

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list