summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/JobSignals.java
blob: 4f499f1310197e3f452186e98860d3393d7f5856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import java.util.ArrayList;
import org.kde.qt.TQWidget;

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);
}