KIO
KIO::DirectorySizeJob 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 <directorysizejob.h>
Inheritance diagram for KIO::DirectorySizeJob:

Public Member Functions | |
KIO::filesize_t | totalFiles () const |
KIO::filesize_t | totalSize () const |
KIO::filesize_t | totalSubdirs () const |
~DirectorySizeJob () | |
Protected Slots | |
virtual void | slotResult (KJob *job) |
Protected Member Functions | |
DirectorySizeJob (DirectorySizeJobPrivate &dd) |
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).Usage: see KIO::directorySize.
Definition at line 35 of file directorysizejob.h.
Constructor & Destructor Documentation
DirectorySizeJob::~DirectorySizeJob | ( | ) |
Definition at line 88 of file directorysizejob.cpp.
DirectorySizeJob::DirectorySizeJob | ( | DirectorySizeJobPrivate & | dd | ) | [protected] |
Definition at line 83 of file directorysizejob.cpp.
Member Function Documentation
void DirectorySizeJob::slotResult | ( | KJob * | job | ) | [protected, virtual, slot] |
Definition at line 167 of file directorysizejob.cpp.
KIO::filesize_t DirectorySizeJob::totalFiles | ( | ) | const |
- Returns:
- the total number of files (counting symlinks to files, sockets and character devices as files) in this directory and all sub-directories
Definition at line 97 of file directorysizejob.cpp.
KIO::filesize_t DirectorySizeJob::totalSize | ( | ) | const |
KIO::filesize_t DirectorySizeJob::totalSubdirs | ( | ) | const |
- Returns:
- the total number of sub-directories found (not including the directory the search started from and treating symlinks to directories as directories)
Definition at line 102 of file directorysizejob.cpp.
The documentation for this class was generated from the following files: