.TH "KDirSize" 3 "28 Jan 2004" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KDirSize \- 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).  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kdirsize.h>\fP
.PP
Inherits \fBKIO::Job\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "KIO::filesize_t \fBtotalSize\fP () const "
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKDirSize\fP * \fBdirSizeJob\fP (const  \fBKURL\fP &directory)"
.br
.RI "\fIAsynchronous method. \fP"
.ti -1c
.RI "\fBKDirSize\fP * \fBdirSizeJob\fP (const  \fBKFileItemList\fP &lstItems)"
.br
.RI "\fIAsynchronous method. \fP"
.ti -1c
.RI "KIO::filesize_t \fBdirSize\fP (const  \fBKURL\fP &directory)"
.br
.RI "\fISynchronous method - you get the result as soon as the call returns. \fP"
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "virtual void \fBslotResult\fP (\fBKIO::Job\fP *job)"
.br
.RI "\fICalled whenever a subjob finishes. \fP"
.ti -1c
.RI "void \fBslotEntries\fP (\fBKIO::Job\fP *, const  \fBKIO::UDSEntryList\fP &)"
.br
.ti -1c
.RI "void \fBprocessList\fP ()"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "\fBKDirSize\fP (const  \fBKURL\fP &directory)"
.br
.ti -1c
.RI "\fBKDirSize\fP (const  \fBKFileItemList\fP &lstItems)"
.br
.ti -1c
.RI "void \fBsetSync\fP ()"
.br
.ti -1c
.RI "void \fBstartNextJob\fP (const  \fBKURL\fP &url)"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
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.
.SH "Member Function Documentation"
.PP 
.SS "KIO::filesize_t KDirSize::totalSize () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
the size we found 
.RE
.PP
Definition at line 42 of file kdirsize.h.
.PP
Referenced by dirSize().
.SS "\fBKDirSize\fP * KDirSize::dirSizeJob (const \fBKURL\fP & directory)\fC [static]\fP"
.PP
Asynchronous method. Connect to the result signal. This one lists a single directory. Definition at line 112 of file kdirsize.cpp.
.PP
Referenced by dirSize().
.SS "\fBKDirSize\fP * KDirSize::dirSizeJob (const \fBKFileItemList\fP & lstItems)\fC [static]\fP"
.PP
Asynchronous method. Connect to the result signal. This one lists the items from \fClstItems\fP. 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. Definition at line 118 of file kdirsize.cpp.
.SS "KIO::filesize_t KDirSize::dirSize (const \fBKURL\fP & directory)\fC [static]\fP"
.PP
Synchronous method - you get the result as soon as the call returns. Definition at line 124 of file kdirsize.cpp.
.PP
References dirSize(), dirSizeJob(), setSync(), and totalSize().
.PP
Referenced by dirSize().
.SS "void KDirSize::slotResult (\fBKIO::Job\fP * job)\fC [protected, virtual, slot]\fP"
.PP
Called whenever a subjob finishes. Default implementation checks for errors and propagates to parent job, then calls \fBremoveSubjob\fP. Override if you don't want subjobs errors to be propagated. Reimplemented from \fBKIO::Job\fP.
.PP
Definition at line 133 of file kdirsize.cpp.
.PP
References QPtrList::count(), QPtrList::isEmpty(), QPtrList< Job >::remove(), and KIO::Job::slotResult().

.SH "Author"
.PP 
Generated automatically by Doxygen for kio Library from the source code.
