summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/StatJob.java
blob: 98223846da377e5fe8abe3db85847121fadc7527 (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
//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;

/**

 A KIO job that retrieves information about a file or directory.
 See {@link StatJobSignals} for signals emitted by StatJob
		@short    A KIO job that retrieves information about a file or directory.
		@see #stat

*/
public class StatJob extends SimpleJob  {
	protected StatJob(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Do not use this constructor to create a StatJob, use TDEIO.stat() instead.
			@param url the url of the file or directory to check
			@param command the command to issue
			@param packedArgs the arguments
			@param showProgressInfo true to show progress information to the user
			 		@short    Do not use this constructor to create a StatJob, use TDEIO.stat() instead.
	*/
	public StatJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo) {
		super((Class) null);
		newStatJob(url,command,packedArgs,showProgressInfo);
	}
	private native void newStatJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo);
	/**	
		 A stat() can have two meanings. Either we want to read from this URL,
		 or to check if we can write to it. First case is "source", second is "dest".
		 It is necessary to know what the StatJob is for, to tune the tdeioslave's behavior
		 (e.g. with FTP).
			@param source true for "source" mode, false for "dest" mode
		         		@short    A stat() can have two meanings.
	*/
	public native void setSide(boolean source);
	/**	
		 Selects the level of <code>details</code> we want.
		 By default this is 2 (all details wanted, including modification time, size, etc.),
		 setDetails(1) is used when deleting: we don't need all the information if it takes
		 too much time, no need to follow symlinks etc.
		 setDetails(0) is used for very simple probing: we'll only get the answer
		 "it's a file or a directory, or it doesn't exist". This is used by KRun.
			@param details 2 for all details, 1 for simple, 0 for very simple
		         		@short    Selects the level of <code>details</code> we want.
	*/
	public native void setDetails(short details);
	/**	
		 Call this in the slot connected to result,
		 and only after making sure no error happened.
				@return the result of the stat
         
		@short    Call this in the slot connected to result,  and only after making sure no error happened.
	*/
	// const TDEIO::UDSEntry& statResult(); >>>> NOT CONVERTED
	/**	
			 Called by the scheduler when a <code>slave</code> gets to
		 work on this job.
			@param slave the slave that starts working on this job
		         		@short
	*/
	public native void start(Slave slave);
	// void slotStatEntry(const TDEIO::UDSEntry& arg1); >>>> NOT CONVERTED
	protected native void slotRedirection(KURL url);
	protected native void slotFinished();
	// void slotMetaData(const TDEIO::MetaData& arg1); >>>> NOT CONVERTED
}