class KDirSize

Compute 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) More...

Definition#include <kdirsize.h>
InheritsKIO::Job (kio)
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods

Protected Methods

Protected Slots


Detailed Description

Compute 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)

unsigned long  totalSize ()

Returns: the size we found

Reimplemented from Job

long long  totalSize64 ()

Returns: the size we found

KDirSize *  dirSizeJob ( const KURL & directory )

[static]

Asynchronous method. Connect to the result signal. This one lists a single directory.

KDirSize *  dirSizeJob ( const KFileItemList & lstItems )

[static]

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.

unsigned long  dirSize ( const KURL & directory )

[static]

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

long long  dirSize64 ( const KURL & directory )

[static]

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

void  setSync ()

[protected]


Generated by: ssk@tauon.ph.unimelb.EDU.AU on Wed May 23 05:25:30 2001, using kdoc 2.0a35.