org.kde.koala

Class StatusbarProgress

public class StatusbarProgress extends ProgressBase

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

UNKNOWN: IO progress widget for embedding in a statusbar.

Constructor Summary
protected StatusbarProgress(Class dummy)
StatusbarProgress(QWidget parent, boolean button)
Creates a new StatusbarProgress.
StatusbarProgress(QWidget parent)
Method Summary
StringclassName()
booleaneventFilter(QObject arg1, QEvent arg2)
QMetaObjectmetaObject()
voidsetJob(Job job)
Sets the job to monitor.
protected voidsetMode()
voidslotClean()
voidslotPercent(Job job, long percent)
voidslotSpeed(Job job, long speed)
voidslotTotalSize(Job job, long size)

Constructor Detail

StatusbarProgress

protected StatusbarProgress(Class dummy)

StatusbarProgress

public StatusbarProgress(QWidget parent, boolean button)
Creates a new StatusbarProgress.

Parameters: parent the parent of this widget button true to add an abort button. The button will be connected to ProgressBase.slotStop()

UNKNOWN: Creates a new StatusbarProgress.

StatusbarProgress

public StatusbarProgress(QWidget parent)

Method Detail

className

public String className()

eventFilter

public boolean eventFilter(QObject arg1, QEvent arg2)

metaObject

public QMetaObject metaObject()

setJob

public void setJob(Job job)
Sets the job to monitor.

Parameters: job the job to monitor

UNKNOWN: Sets the job to monitor.

setMode

protected void setMode()

slotClean

public void slotClean()

slotPercent

public void slotPercent(Job job, long percent)

slotSpeed

public void slotSpeed(Job job, long speed)

slotTotalSize

public void slotTotalSize(Job job, long size)