23 #include <tdeio/job.h>
24 #include <tdefileitem.h>
30 class TDEIO_EXPORT
KDirSize :
public TDEIO::Job
35 KDirSize(
const KFileItemList & lstItems );
42 TDEIO::filesize_t
totalSize()
const {
return m_totalSize; }
49 TDEIO::filesize_t
totalFiles()
const {
return m_totalFiles; }
63 static KDirSize * dirSizeJob(
const KURL & directory );
72 static KDirSize * dirSizeJob(
const KFileItemList & lstItems );
78 static TDEIO::filesize_t dirSize(
const KURL & directory );
84 void setSync() { m_bAsync =
false; }
86 void startNextJob(
const KURL & url );
90 virtual void slotResult( TDEIO::Job *job );
91 void slotEntries( TDEIO::Job * ,
const TDEIO::UDSEntryList &);
96 TDEIO::filesize_t m_totalSize;
97 TDEIO::filesize_t m_totalFiles;
98 TDEIO::filesize_t m_totalSubdirs;
99 KFileItemList m_lstItems;
101 virtual void virtual_hook(
int id,
void* data );
Computes a directory size (similar to "du", but doesn't give the same results since we simply sum up ...
TDEIO::filesize_t totalFiles() const
TDEIO::filesize_t totalSize() const
TDEIO::filesize_t totalSubdirs() const