Some porting from KIO::Jobs to KJobs

Rafael Fernández López ereslibre at gmail.com
Wed Jan 17 07:23:23 GMT 2007


2007/1/17, David Faure <faure at kde.org>:
> On Tuesday 16 January 2007 22:56, Kevin Ottens wrote:
> > Hi,
> >
> > Sorry for jumping that late on this thread... Didn't find time earlier.
> >
> > Le Mardi 16 Janvier 2007 02:27, David Faure a écrit :
> > > Sure, no problem there, that's what KJob is for, and it's good that you're
> > > making uiserver ready for that. The question is: would such a non-kio job
> > > possibly have a totalFiles signal? That's the whole question. I initially
> > > discarded that it might ever happen, but actually I have changed my mind
> > > now. It can easily happen, I even used the notion of "total files" in a
> > > uiserver progressdialog created by the kolab resource.
> >
> > I wonder how different is it from the totalSize() signal carried by KJob? It
> > looks like the exact same thing to me, except there's a "unit" attached
> > to "total files".
>
> 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".

Really good idea, I am gonna improve this too.

Bye,
Rafael Fernández López.


More information about the kde-core-devel mailing list