summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KDirSize.java
blob: 528cf425fe89c07aeea065da3dd9bbcf0243faed (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
74
75
76
77
78
79
80
//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;
import java.util.ArrayList;

/**

 Computes a directory size (similar to "du", but doesn't give the same results
 since we simply sum up the dir and file sizes, whereas du speaks disk blocks)
 		@short    Computes a directory size (similar to "du", but doesn't give the same results  since we simply sum up the dir and file sizes, whereas du speaks disk blocks)

*/
public class KDirSize extends Job  {
	protected KDirSize(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
				@return the size we found
   
		@short
	*/
	public native long totalSize();
	/**	
				@return the total number of files (counting symlinks to files, sockets
 and character devices as files) in this directory and all sub-directories

		@short
	*/
	public native long totalFiles();
	/**	
				@return the total number of sub-directories found (not including the
 directory the search started from and treating symlinks to directories
 as directories)

		@short
	*/
	public native long totalSubdirs();
	/**	
		 Asynchronous method. Connect to the result signal.
		 This one lists a single directory.
		   		@short    Asynchronous method.
	*/
	public static native KDirSize dirSizeJob(KURL directory);
	/**	
		 Asynchronous method. Connect to the result signal.
		 This one lists the items from <code>lstItems.</code>
		 The reason we asks for items instead of just urls, is so that
		 we directly know if the item is a file or a directory,
		 and in case of a file, we already have its size.
		   		@short    Asynchronous method.
	*/
	public static native KDirSize dirSizeJob(ArrayList lstItems);
	/**	
		 Synchronous method - you get the result as soon as
		 the call returns.
		   		@short    Synchronous method - you get the result as soon as  the call returns.
	*/
	public static native long dirSize(KURL directory);
	public KDirSize(KURL directory) {
		super((Class) null);
		newKDirSize(directory);
	}
	private native void newKDirSize(KURL directory);
	public KDirSize(ArrayList lstItems) {
		super((Class) null);
		newKDirSize(lstItems);
	}
	private native void newKDirSize(ArrayList lstItems);
	/**	
			   		@short
	*/
	protected native void setSync();
	protected native void startNextJob(KURL url);
	protected native void slotResult(Job job);
	// void slotEntries(TDEIO::Job* arg1,const TDEIO::UDSEntryList& arg2); >>>> NOT CONVERTED
	protected native void processList();
}