KDirSize Class Reference
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). More...
#include <kdirsize.h>
Inheritance diagram for KDirSize:

Public Member Functions | |
KIO::filesize_t | totalSize () const |
KIO::filesize_t | totalFiles () const |
KIO::filesize_t | totalSubdirs () const |
Static Public Member Functions | |
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) |
void | slotEntries (KIO::Job *, const KIO::UDSEntryList &) |
void | processList () |
Protected Member Functions | |
KDirSize (const KURL &directory) | |
KDirSize (const KFileItemList &lstItems) | |
void | setSync () |
void | startNextJob (const KURL &url) |
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
|
References KIO::filesize_t. Referenced by dirSize(). |
|
References KIO::filesize_t. |
|
References KIO::filesize_t. |
|
Asynchronous method. Connect to the result signal. This one lists a single directory. Definition at line 124 of file kdirsize.cpp. Referenced by dirSize(). |
|
Asynchronous method.
Connect to the result signal. This one lists the items from |
|
Synchronous method - you get the result as soon as the call returns. Definition at line 136 of file kdirsize.cpp. References dirSize(), dirSizeJob(), KIO::filesize_t, setSync(), and totalSize(). Referenced by dirSize(). |
|
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. Definition at line 145 of file kdirsize.cpp. References endl(), kdDebug(), and KIO::Job::slotResult(). |
The documentation for this class was generated from the following files: