• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

KIO::DirectorySizeJob

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:
KIO::Job KCompositeJob KJob QObject

List of all members.

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]

Reimplemented from KCompositeJob.

Definition at line 170 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
Returns:
the size we found

Definition at line 92 of file directorysizejob.cpp.

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:
  • directorysizejob.h
  • directorysizejob.cpp

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal