org.kde.koala

Class KDirSize

public class KDirSize extends Job

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)

UNKNOWN: 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)

Constructor Summary
protected KDirSize(Class dummy)
KDirSize(KURL directory)
KDirSize(ArrayList lstItems)
Method Summary
StringclassName()
static longdirSize(KURL directory)
Synchronous method - you get the result as soon as the call returns.
static KDirSizedirSizeJob(KURL directory)
Asynchronous method.
static KDirSizedirSizeJob(ArrayList lstItems)
Asynchronous method.
QMetaObjectmetaObject()
protected voidprocessList()
protected voidsetSync()
protected voidslotResult(Job job)
protected voidstartNextJob(KURL url)
longtotalFiles()
longtotalSize()
longtotalSubdirs()

Constructor Detail

KDirSize

protected KDirSize(Class dummy)

KDirSize

public KDirSize(KURL directory)

KDirSize

public KDirSize(ArrayList lstItems)

Method Detail

className

public String className()

dirSize

public static long dirSize(KURL directory)
Synchronous method - you get the result as soon as the call returns.

UNKNOWN: Synchronous method - you get the result as soon as the call returns.

dirSizeJob

public static KDirSize dirSizeJob(KURL directory)
Asynchronous method. Connect to the result signal. This one lists a single directory.

UNKNOWN: Asynchronous method.

dirSizeJob

public static KDirSize dirSizeJob(ArrayList lstItems)
Asynchronous method. Connect to the result signal. This one lists the items from lstItems. 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.

UNKNOWN: Asynchronous method.

metaObject

public QMetaObject metaObject()

processList

protected void processList()

setSync

protected void setSync()

UNKNOWN:

slotResult

protected void slotResult(Job job)

startNextJob

protected void startNextJob(KURL url)

totalFiles

public long totalFiles()

Returns: the total number of files (counting symlinks to files, sockets and character devices as files) in this directory and all sub-directories

UNKNOWN:

totalSize

public long totalSize()

Returns: the size we found

UNKNOWN:

totalSubdirs

public long totalSubdirs()

Returns: the total number of sub-directories found (not including the directory the search started from and treating symlinks to directories as directories)

UNKNOWN: