Progress notification

Carsten Pfeiffer carpdjih at mailbox.tu-berlin.de
Tue Oct 24 00:35:37 CEST 2006


On Saturday 21 October 2006 17:58, Thomas Zander wrote:

Hi,

> ProgressUpdater  *pu = new ProgressUpdater (widget);
>
> For each action that has progress updating you do a;
>
> pu->start(100);
> Updater updater = pu->startSubtask();
> where you can do things like:
> updater.forward(10); // adds 10 percent to the progress of this subtask.

You may want to have ProgressUpdater and Updater typed to one interface, so 
that you can use them interchangeably. And the Updater could also get a 
textual description.

FWIW, Eclipse uses a very similar interface (see ProgressMonitor and 
SubProgressMonitor conforming to IProgressMonitor).

Cheers,
Carsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 447 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20061024/d80921ac/attachment.pgp 


More information about the kimageshop mailing list