Changeset View
Changeset View
Standalone View
Standalone View
krusader/FileSystem/filesystem.h
Show All 38 Lines | |||||
39 | #include <QUrl> | 39 | #include <QUrl> | ||
40 | #include <QPointer> | 40 | #include <QPointer> | ||
41 | // QtGui | 41 | // QtGui | ||
42 | #include <QDropEvent> | 42 | #include <QDropEvent> | ||
43 | // QtWidgets | 43 | // QtWidgets | ||
44 | #include <QWidget> | 44 | #include <QWidget> | ||
45 | 45 | | |||
46 | #include <KIO/CopyJob> | 46 | #include <KIO/CopyJob> | ||
47 | #include <KIO/DirectorySizeJob> | ||||
47 | 48 | | |||
48 | #include "fileitem.h" | 49 | #include "fileitem.h" | ||
49 | #include "krquery.h" | 50 | #include "krquery.h" | ||
50 | #include "../JobMan/jobman.h" | 51 | #include "../JobMan/jobman.h" | ||
51 | 52 | | |||
52 | 53 | | |||
53 | /** | 54 | /** | ||
54 | * An abstract filesystem. Use the implementations of this class for all file operations. | 55 | * An abstract filesystem. Use the implementations of this class for all file operations. | ||
▲ Show 20 Lines • Show All 173 Lines • ▼ Show 20 Line(s) | 228 | private: | |||
228 | typedef QHash<QString, FileItem *> FileItemDict; | 229 | typedef QHash<QString, FileItem *> FileItemDict; | ||
229 | 230 | | |||
230 | /// Delete and clear file items. | 231 | /// Delete and clear file items. | ||
231 | void clear(FileItemDict &fileItems); | 232 | void clear(FileItemDict &fileItems); | ||
232 | 233 | | |||
233 | FileItemDict _fileItems; // the list of files in the current dictionary | 234 | FileItemDict _fileItems; // the list of files in the current dictionary | ||
234 | 235 | | |||
235 | // used in the calcSpace function | 236 | // used in the calcSpace function | ||
236 | bool *_calcKdsBusy; | 237 | KIO::DirectorySizeJob *_dirSizeJob; | ||
237 | bool _calcStatBusy; | 238 | QTimer *_dirSizeUpdateTimer; | ||
238 | KIO::UDSEntry _calcEntry; | 239 | KIO::UDSEntry _calcEntry; | ||
239 | KIO::filesize_t *_calcKdsTotalSize; | 240 | KIO::filesize_t *_calcKdsTotalSize; | ||
240 | unsigned long *_calcKdsTotalFiles; | 241 | unsigned long *_calcKdsTotalFiles; | ||
241 | unsigned long *_calcKdsTotalDirs; | 242 | unsigned long *_calcKdsTotalDirs; | ||
242 | 243 | | |||
243 | }; | 244 | }; | ||
244 | 245 | | |||
245 | #endif | 246 | #endif |