Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KIO::StatusbarProgress Class Reference

IO progress widget for embedding in a statusbar. More...

#include <statusbarprogress.h>

Inheritance diagram for KIO::StatusbarProgress:

KIO::ProgressBase List of all members.

Public Slots

virtual void slotClean ()
virtual void slotTotalSize (KIO::Job *, KIO::filesize_t size)
virtual void slotPercent (KIO::Job *, unsigned long percent)
virtual void slotSpeed (KIO::Job *, unsigned long bytes_per_second)

Public Methods

void setJob (KIO::Job *job)

Protected Methods

virtual void virtual_hook (int id, void *data)

Detailed Description

IO progress widget for embedding in a statusbar.

This is a special IO progress widget.

Similarly to DefaultProgress, it's purpose is to show a progress of the IO operation.

Instead of creating a separate window, this is only a widget that can be easily embedded in a statusbar.

Usage of StatusbarProgress is little different. This dialog will be a part of some application.

 // create a dialog
 StatusbarProgress *statusProgress;
 statusProgress = new StatusbarProgress( statusBar() );
 statusBar()->insertWidget( statusProgress, statusProgress->width() , 0 );
 ...
 // create job and connect it to the progress
 CopyJob* job = KIO::copy(...);
 statusProgress->setJob( job );
 ...
 

Author:
Matej Koss <koss@miesto.sk>

Definition at line 62 of file statusbarprogress.h.


Member Function Documentation

virtual void KIO::StatusbarProgress::slotClean   [virtual, slot]
 

This method is called when the widget should be cleaned (after job is finished). redefine this for custom behavior.

Reimplemented from KIO::ProgressBase.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:33 2003 for kdelibs by doxygen1.2.18