//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QObject;
import org.kde.qt.QEvent;
import org.kde.qt.QWidget;

/**

 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.
 <pre>
 // 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 );
 ...
 </pre>
		@author Matej Koss <koss@miesto.sk>

		@short IO progress widget for embedding in a statusbar.

*/
public class StatusbarProgress extends ProgressBase  {
	protected StatusbarProgress(Class dummy){super((Class) null);}
	public native QMetaObject metaObject();
	public native String className();
	/**	
		 Creates a new StatusbarProgress.
			@param parent the parent of this widget
			@param button true to add an abort button. The button will be
		               connected to ProgressBase.slotStop()
		   		@short    Creates a new StatusbarProgress.
	*/
	public StatusbarProgress(QWidget parent, boolean button) {
		super((Class) null);
		newStatusbarProgress(parent,button);
	}
	private native void newStatusbarProgress(QWidget parent, boolean button);
	public StatusbarProgress(QWidget parent) {
		super((Class) null);
		newStatusbarProgress(parent);
	}
	private native void newStatusbarProgress(QWidget parent);
	/**	
		 Sets the job to monitor.
			@param job the job to monitor
		   		@short    Sets the job to monitor.
	*/
	public native void setJob(Job job);
	public native void slotClean();
	public native void slotTotalSize(Job arg1, long size);
	public native void slotPercent(Job arg1, long percent);
	public native void slotSpeed(Job arg1, long bytes_per_second);
	protected native void setMode();
	public native boolean eventFilter(QObject arg1, QEvent arg2);
}
