Changeset View
Changeset View
Standalone View
Standalone View
krusader/FileSystem/sizecalculator.h
Show All 37 Lines | 37 | { | |||
---|---|---|---|---|---|
38 | Q_OBJECT | 38 | Q_OBJECT | ||
39 | public: | 39 | public: | ||
40 | /** | 40 | /** | ||
41 | * Calculate the size of files and directories defined by URLs. | 41 | * Calculate the size of files and directories defined by URLs. | ||
42 | * | 42 | * | ||
43 | * The calculation is automatically started (like KJob). | 43 | * The calculation is automatically started (like KJob). | ||
44 | */ | 44 | */ | ||
45 | explicit SizeCalculator(const QList<QUrl> &urls); | 45 | explicit SizeCalculator(const QList<QUrl> &urls); | ||
46 | ~SizeCalculator(); | 46 | ~SizeCalculator() override; | ||
47 | 47 | | |||
48 | /** Return all URLs (queued and progressed). */ | 48 | /** Return all URLs (queued and progressed). */ | ||
49 | QList<QUrl> urls() const { return m_urls; } | 49 | QList<QUrl> urls() const { return m_urls; } | ||
50 | /** Add a URL to the running calculation. */ | 50 | /** Add a URL to the running calculation. */ | ||
51 | void add(const QUrl &url); | 51 | void add(const QUrl &url); | ||
52 | /** Return the current total size calculation result. */ | 52 | /** Return the current total size calculation result. */ | ||
53 | KIO::filesize_t totalSize() const; | 53 | KIO::filesize_t totalSize() const; | ||
54 | /** Return the current total number of files counted. */ | 54 | /** Return the current total number of files counted. */ | ||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |