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

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

/**

 StoredTransferJob is a TransferJob (for downloading or uploading data) that
 also stores a byte[] with the data, making it simpler to use than the
 standard TransferJob.
 For KIO.storedGet it puts the data into the member byte[], so the user
 of this class can get hold of the whole data at once by calling data()
 when the result signal is emitted.
 You should only use StoredTransferJob to download data if you cannot
 process the data by chunks while it's being downloaded, since storing
 everything in a byte[] can potentially retquire a lot of memory.
 For KIO.storedPut the user of this class simply provides the bytearray from
 the start, and the job takes care of uploading it.
 You should only use StoredTransferJob to upload data if you cannot
 provide the in chunks while it's being uploaded, since storing
 everything in a byte[] can potentially retquire a lot of memory.
		@short    StoredTransferJob is a TransferJob (for downloading or uploading data) that  also stores a TQByteArray with the data, making it simpler to use than the  standard TransferJob.

*/
public class StoredTransferJob extends TransferJob  {
	protected StoredTransferJob(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Do not create a StoredTransferJob. Use storedGet() or storedPut()
		 instead.
			@param url the url to get or put
			@param command the command to issue
			@param packedArgs the arguments
			@param _staticData additional data to transmit (e.g. in a HTTP Post)
			@param showProgressInfo true to show progress information to the user
					@short    Do not create a StoredTransferJob.
	*/
	public StoredTransferJob(KURL url, int command, byte[] packedArgs, byte[] _staticData, boolean showProgressInfo) {
		super((Class) null);
		newStoredTransferJob(url,command,packedArgs,_staticData,showProgressInfo);
	}
	private native void newStoredTransferJob(KURL url, int command, byte[] packedArgs, byte[] _staticData, boolean showProgressInfo);
	/**	
		 Set data to be uploaded. This is for put jobs.
		 Automatically called by KIO.storedPut(const byte[] &, ...),
		 do not call this yourself.
		         		@short    Set data to be uploaded.
	*/
	public native void setData(byte[] arr);
	/**	
		 Get hold of the downloaded data. This is for get jobs.
		 You're supposed to call this only from the slot connected to the result() signal.
		         		@short    Get hold of the downloaded data.
	*/
	public native byte[] data();
}