.TH "KDirSize" kde3 "11 Jun 2005" "Version Version 3.4.1" "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 "\fBKIO::filesize_t\fP \fBtotalSize\fP () const "
.br
.ti -1c
.RI "\fBKIO::filesize_t\fP \fBtotalFiles\fP () const "
.br
.ti -1c
.RI "\fBKIO::filesize_t\fP \fBtotalSubdirs\fP () const "
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static \fBKDirSize\fP * \fBdirSizeJob\fP (const \fBKURL\fP &directory)"
.br
.ti -1c
.RI "static \fBKDirSize\fP * \fBdirSizeJob\fP (const \fBKFileItemList\fP &lstItems)"
.br
.ti -1c
.RI "static \fBKIO::filesize_t\fP \fBdirSize\fP (const \fBKURL\fP &directory)"
.br
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "virtual void \fBslotResult\fP (\fBKIO::Job\fP *job)"
.br
.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). 
.PP
Definition at line 30 of file kdirsize.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBKIO::filesize_t\fP KDirSize::totalSize () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
the size we found 
.RE
.PP

.PP
Definition at line 42 of file kdirsize.h.
.PP
Referenced by dirSize().
.SS "\fBKIO::filesize_t\fP KDirSize::totalFiles () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
the total number of files (counting symlinks to files, sockets and character devices as files) in this directory and all sub-directories 
.RE
.PP
\fBSince:\fP
.RS 4
3.3 
.RE
.PP

.PP
Definition at line 49 of file kdirsize.h.
.SS "\fBKIO::filesize_t\fP KDirSize::totalSubdirs () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
the total number of sub-directories found (not including the directory the search started from and treating symlinks to directories as directories) 
.RE
.PP
\fBSince:\fP
.RS 4
3.3 
.RE
.PP

.PP
Definition at line 57 of file kdirsize.h.
.SS "\fBKDirSize\fP * KDirSize::dirSizeJob (const \fBKURL\fP & directory)\fC [static]\fP"
.PP
Asynchronous method. 
.PP
Connect to the result signal. This one lists a single directory. 
.PP
Definition at line 126 of file kdirsize.cpp.
.PP
Referenced by dirSize().
.SS "\fBKDirSize\fP * KDirSize::dirSizeJob (const \fBKFileItemList\fP & lstItems)\fC [static]\fP"
.PP
Asynchronous method. 
.PP
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. 
.PP
Definition at line 132 of file kdirsize.cpp.
.SS "\fBKIO::filesize_t\fP KDirSize::dirSize (const \fBKURL\fP & directory)\fC [static]\fP"
.PP
Synchronous method - you get the result as soon as the call returns. 
.PP
Definition at line 138 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. 
.PP
Default implementation checks for errors and propagates to parent job, then calls removeSubjob. Override if you don't want subjobs errors to be propagated. 
.PP
\fBParameters:\fP
.RS 4
\fIjob\fP the subjob 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBresult()\fP 
.RE
.PP

.PP
Reimplemented from \fBKIO::Job\fP.
.PP
Definition at line 147 of file kdirsize.cpp.
.PP
References QPtrList::count(), endl(), QPtrList::isEmpty(), kdDebug(), QPtrList::remove(), and KIO::Job::slotResult().

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