org.kde.koala
public class ProgressBase extends QWidget
// create job CopyJob job = KIO.copy(...); // create a dialog MyCustomProgress customProgress; customProgress = new MyCustomProgress(); // connect progress with job customProgress.setJob( job ); ...There is a special method setStopOnClose() that controls the behavior of the dialog. See ProgressBaseSignals for signals emitted by ProgressBase
UNKNOWN: Base class for IO progress dialogs.
Constructor Summary | |
---|---|
protected | ProgressBase(Class dummy) |
ProgressBase(QWidget parent)
Creates a new progress dialog. |
Method Summary | |
---|---|
String | className() |
protected void | closeEvent(QCloseEvent arg1) |
void | finished()
Call when the operation finished. |
QMetaObject | metaObject() |
boolean | onlyClean()
Checks whether the dialog should be deleted or cleaned. |
void | setJob(Job job)
Assign a KIO.Job to this progress dialog. |
void | setJob(CopyJob job)
Assign a KIO.Job to this progress dialog. |
void | setJob(DeleteJob job)
Assign a KIO.Job to this progress dialog. |
void | setOnlyClean(boolean onlyClean)
This controls whether the dialog should be deleted or only cleaned when
the KIO.Job is finished (or canceled).
|
void | setStopOnClose(boolean stopOnClose) |
void | slotCanResume(Job job, long from)
Called when the job is resuming.. |
void | slotClean()
This method is called when the widget should be cleaned (after job is finished).
redefine this for custom behavior. |
void | slotCopying(Job job, KURL src, KURL dest)
Called when the job is copying. |
void | slotCreatingDir(Job job, KURL dir)
Called when the job is creating a directory. |
void | slotDeleting(Job job, KURL url)
Called when the job is deleting. |
protected void | slotFinished(Job arg1) |
void | slotMoving(Job job, KURL src, KURL dest)
Called when the job is moving. |
void | slotPercent(Job job, long percent)
Called to set the percentage. |
void | slotProcessedDirs(Job job, long dirs)
Called to set the number of processed directories. |
void | slotProcessedFiles(Job job, long files)
Called to set the number of processed files. |
void | slotProcessedSize(Job job, long bytes)
Called to set the processed size. |
void | slotSpeed(Job job, long speed)
Called to set the speed. |
void | slotStop()
This method should be called for correct cancellation of IO operation
Connect this to the progress widgets buttons etc. |
void | slotTotalDirs(Job job, long dirs)
Called to set the total number of directories. |
void | slotTotalFiles(Job job, long files)
Called to set the total number of files. |
void | slotTotalSize(Job job, long size)
Called to set the total size. |
boolean | stopOnClose() |
Parameters: parent the parent of this dialog window, or 0
UNKNOWN: Creates a new progress dialog.
UNKNOWN: Call when the operation finished.
Returns: true if the dialog only calls slotClean, false if it will be deleted
See Also: ProgressBase
UNKNOWN: Checks whether the dialog should be deleted or cleaned.
Parameters: job the job to assign
UNKNOWN: Assign a KIO.Job to this progress dialog.
Parameters: job the job to assign
UNKNOWN: Assign a KIO.Job to this progress dialog.
Parameters: job the job to assign
UNKNOWN: Assign a KIO.Job to this progress dialog.
Parameters: onlyClean If true the dialog will only call method slotClean. If false the dialog will be deleted.
See Also: ProgressBase
UNKNOWN: This controls whether the dialog should be deleted or only cleaned when the KIO.Job is finished (or canceled).
Parameters: job the KIO.Job from the position to resume from in bytes
UNKNOWN: Called when the job is resuming.
UNKNOWN: This method is called when the widget should be cleaned (after job is finished).
Parameters: job the KIO.Job src the source of the operation dest the destination of the operation
UNKNOWN: Called when the job is copying.
Parameters: job the KIO.Job dir the URL of the directory to create
UNKNOWN: Called when the job is creating a directory.
Parameters: job the KIO.Job url the URL to delete
UNKNOWN: Called when the job is deleting.
Parameters: job the KIO.Job src the source of the operation dest the destination of the operation
UNKNOWN: Called when the job is moving.
Parameters: job the KIO.Job percent the percentage
UNKNOWN: Called to set the percentage.
Parameters: job the KIO.Job dirs the number of directories
UNKNOWN: Called to set the number of processed directories.
Parameters: job the KIO.Job files the number of files
UNKNOWN: Called to set the number of processed files.
Parameters: job the KIO.Job bytes the processed size in bytes
UNKNOWN: Called to set the processed size.
Parameters: job the KIO.Job speed the speed in bytes/second
UNKNOWN: Called to set the speed.
UNKNOWN: This method should be called for correct cancellation of IO operation Connect this to the progress widgets buttons etc.
Parameters: job the KIO.Job dirs the number of directories
UNKNOWN: Called to set the total number of directories.
Parameters: job the KIO.Job files the number of files
UNKNOWN: Called to set the total number of files.
Parameters: job the KIO.Job size the total size in bytes
UNKNOWN: Called to set the total size.