Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KDirSize Class Reference

#include <kdirsize.h>

Inheritance diagram for KDirSize:

KIO::Job List of all members.

Public Methods

KIO::filesize_t totalSize () const

Static Public Methods

KDirSize * dirSizeJob (const KURL &directory)
KDirSize * dirSizeJob (const KFileItemList &lstItems)
KIO::filesize_t dirSize (const KURL &directory)

Protected Slots

virtual void slotResult (KIO::Job *job)

Protected Methods

virtual void virtual_hook (int id, void *data)

Detailed Description

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)

Definition at line 30 of file kdirsize.h.


Member Function Documentation

KIO::filesize_t KDirSize::dirSize const KURL   directory [static]
 

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

KDirSize* 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.

KDirSize* KDirSize::dirSizeJob const KURL   directory [static]
 

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

virtual void KDirSize::slotResult KIO::Job   job [protected, virtual, slot]
 

Called whenever a subjob finishes. Default implementation checks for errors and propagates to parent job, then calls removeSubjob. Override if you don't want subjobs errors to be propagated.

Reimplemented from KIO::Job.

KIO::filesize_t KDirSize::totalSize   const [inline]
 

Returns:
the size we found

Definition at line 42 of file kdirsize.h.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:10 2003 for kdelibs by doxygen1.2.18