1#ifndef DIRENTSIZECOUNTER_H
2#define DIRENTSIZECOUNTER_H
4#include "FileInfoProvider.h"
36 QList<QFuture<void>> results;
68 std::pair<bool, QVariant>
data(
const QModelIndex& index,
int role);
75 void onHandleWorkFinishJob(QPersistentModelIndex index, qint64 size);
82 mutable QHash<QPersistentModelIndex, qint64> cache;
83 mutable QSet<QPersistentModelIndex> requested;
The CCIMXFileSystemModel class Extends QFileSystemModel to support additional information providers....
Definition CCIMXFileSystemModel.h:13
The DirentSizeCounter class wrapped the worker and provides non-implement-relative interfaces to the ...
Definition DirentSizeCounter.h:43
std::pair< bool, QVariant > data(const QModelIndex &index, int role)
data provide the data to the views
Definition DirentSizeCounter.cpp:85
QString provide_section_name()
provide_section_name means everything in the name lol
Definition DirentSizeCounter.h:57
The DirentSizeWorker class really counts the dirent below size and, this is asyncronous,...
Definition DirentSizeCounter.h:11
void sizeCountFinish(QPersistentModelIndex index, qint64 size)
sizeCountFinish signals the finish of the count
void depatch_sizeCount_task(const QPersistentModelIndex &index, const QString &path)
functions depatch an asyncronous count issues,
Definition DirentSizeCounter.cpp:60
DirentSizeWorker(QObject *object=nullptr)
Construct a new Dirent Size Worker object.
Definition DirentSizeCounter.h:19
The FileInfoProvider class is such an abstract class that using in CCIMXFileSystemModel to provide th...
Definition FileInfoProvider.h:15