diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/JobSignals.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/JobSignals.java | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/JobSignals.java b/kdejava/koala/org/kde/koala/JobSignals.java new file mode 100644 index 00000000..e64ec0d1 --- /dev/null +++ b/kdejava/koala/org/kde/koala/JobSignals.java @@ -0,0 +1,73 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.QMetaObject; +import org.kde.qt.QtSupport; +import java.util.ArrayList; +import org.kde.qt.QWidget; + +public interface JobSignals { + /** + Emitted when the job is finished, in any case (completed, canceled, + failed...). Use error to know the result. + @param job the job that emitted this signal + @short Emitted when the job is finished, in any case (completed, canceled, failed. + */ + void result(Job job); + /** + Emitted to display information about this job, as sent by the slave. + Examples of message are "Resolving host", "Connecting to host...", etc. + @param job the job that emitted this signal + @param msg the info message + @short Emitted to display information about this job, as sent by the slave. + */ + void infoMessage(Job job, String msg); + /** + Emitted to display a warning about this job, as sent by the slave. + @param job the job that emitted this signal + @param msg the info message + @short Emitted to display a warning about this job, as sent by the slave. + */ + void warning(Job job, String msg); + /** + Emitted when the slave successfully connected to the host. + There is no guarantee the slave will send this, and this is + currently unused (in the applications). + @param job the job that emitted this signal + @short Emitted when the slave successfully connected to the host. + */ + void connected(Job job); + /** + Progress signal showing the overall progress of the job + This is valid for any kind of job, and allows using a + a progress bar very easily. (see KProgress). + Note that this signal is not emitted for finished jobs. + @param job the job that emitted this signal + @param percent the percentage + @short Progress signal showing the overall progress of the job This is valid for any kind of job, and allows using a a progress bar very easily. + */ + void percent(Job job, long percent); + /** + Emitted when we know the size of this job (data size for transfers, + number of entries for listings). + @param job the job that emitted this signal + @param size the total size in bytes + @short Emitted when we know the size of this job (data size for transfers, number of entries for listings). + */ + void totalSize(Job job, long size); + /** + Regularly emitted to show the progress of this job + (current data size for transfers, entries listed). + @param job the job that emitted this signal + @param size the processed size in bytes + @short Regularly emitted to show the progress of this job (current data size for transfers, entries listed). + */ + void processedSize(Job job, long size); + /** + Emitted to display information about the speed of this job. + @param job the job that emitted this signal + @param speed the speed in bytes/s + @short Emitted to display information about the speed of this job. + */ + void speed(Job job, long speed); +} |