summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/TransferJobSignals.java
blob: 05b51a51d8fa6ac148170b3556a1fcb051467de6 (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
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;

public interface TransferJobSignals {
	/**	
		 Data from the slave has arrived.
			@param job the job that emitted this signal
			@param data data received from the slave.
			 End of data (EOD) has been reached if data.size() == 0, however, you
		 should not be certain of data.size() == 0 ever happening (e.g. in case
		 of an error), so you should rely on result() instead.
		         		@short    Data from the slave has arrived.
	*/
	void data(Job job, byte[] data);
	/**	
		 Request for data.
		 Please note, that you shouldn't put too large chunks
		 of data in it as this retquires copies within the frame
		 work, so you should rather split the data you want
		 to pass here in reasonable chunks (about 1MB maximum)
			@param job the job that emitted this signal
			@param data buffer to fill with data to send to the
		 slave. An empty buffer indicates end of data. (EOD)
		         		@short    Request for data.
	*/
	void dataReq(Job job, byte[] data);
	/**	
		 Signals a redirection.
		 Use to update the URL shown to the user.
		 The redirection itself is handled internally.
			@param job the job that emitted this signal
			@param url the new URL
		         		@short    Signals a redirection.
	*/
	void redirection(Job job, KURL url);
	/**	
		 Signals a permanent redirection.
		 The redirection itself is handled internally.
			@param job the job that emitted this signal
			@param fromUrl the original URL
			@param toUrl the new URL
				@short    Signals a permanent redirection.
	*/
	void permanentRedirection(Job job, KURL fromUrl, KURL toUrl);
	/**	
		 Mimetype determined.
			@param job the job that emitted this signal
			@param type the mime type
		         		@short    Mimetype determined.
	*/
	void mimetype(Job job, String type);
	/**	
			 Emitted if the "put" job found an existing partial file
		 (in which case offset is the size of that file)
		 and emitted by the "get" job if it supports resuming to
		 the given offset - in this case <code>offset</code> is unused)
		         		@short
	*/
	void canResume(Job job, long offset);
}