┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/private/kdirectorycontentscounter.h
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2023-06-28 09:49:46 +0200
committerMéven Car <[email protected]>2023-06-28 09:49:46 +0200
commitcd2e64154fd5446a7e19aff4cb147efe2f2ba31e (patch)
tree37f4e2c8644129f809a66fd2f6b2c9b28d52fed8 /src/kitemviews/private/kdirectorycontentscounter.h
parentdcd5c994bb1d331b94fdea8a5c6cd55a471b34b8 (diff)
parentea56e1f75eae435c18e3934c402c94ae76ec9c11 (diff)
Merge branch 'master' into kf6
Diffstat (limited to 'src/kitemviews/private/kdirectorycontentscounter.h')
-rw-r--r--src/kitemviews/private/kdirectorycontentscounter.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/kitemviews/private/kdirectorycontentscounter.h b/src/kitemviews/private/kdirectorycontentscounter.h
index 9a5e4a86b..0da3ccd7d 100644
--- a/src/kitemviews/private/kdirectorycontentscounter.h
+++ b/src/kitemviews/private/kdirectorycontentscounter.h
@@ -47,34 +47,34 @@ public:
Q_SIGNALS:
/**
* Signals that the directory \a path contains \a count items of size \a
- * Size calculation depends on parameter DetailsModeSettings::recursiveDirectorySizeLimit
+ * Size calculation depends on parameter ContentDisplaySettings::recursiveDirectorySizeLimit
*/
- void result(const QString &path, int count, long size);
+ void result(const QString &path, int count, long long size);
- void requestDirectoryContentsCount(const QString &path, KDirectoryContentsCounterWorker::Options options);
-
- void stop();
+ void requestDirectoryContentsCount(const QString &path, KDirectoryContentsCounterWorker::Options options, int maxRecursiveLevel);
private Q_SLOTS:
- void slotResult(const QString &path, int count, long size);
+ void slotResult(const QString &path, int count, long long size);
void slotDirWatchDirty(const QString &path);
void slotItemsRemoved();
+ void slotDirectoryRefreshing();
+ void scheduleNext();
private:
+ void enqueuePathScanning(const QString &path, bool alreadyInCache, PathCountPriority priority);
+
KFileItemModel *m_model;
// Used as FIFO queues.
std::list<QString> m_priorityQueue;
std::list<QString> m_queue;
- static QThread *m_workerThread;
-
- KDirectoryContentsCounterWorker *m_worker;
bool m_workerIsBusy;
KDirWatch *m_dirWatcher;
QSet<QString> m_watchedDirs; // Required as sadly KDirWatch does not offer a getter method
// to get all watched directories.
+ QString m_currentPath;
};
#endif