The DirentSizeCounter class wrapped the worker and provides non-implement-relative interfaces to the views.
More...
#include <DirentSizeCounter.h>
|
| DirentSizeCounter (CCIMXFileSystemModel *model, QObject *parent=nullptr) |
| Construct a new Dirent Size Counter object.
|
|
QString | provide_section_name () |
| provide_section_name means everything in the name lol
|
|
std::pair< bool, QVariant > | data (const QModelIndex &index, int role) |
| data provide the data to the views
|
|
| Q_DISABLE_COPY (FileInfoProvider) |
| disable copy object
|
|
| FileInfoProvider ()=delete |
| Construct a new File Info Provider object default is prohibited, disable this for the default constructor, prevent the non-model register.
|
|
| FileInfoProvider (CCIMXFileSystemModel *models) |
| Construct a new File Info Provider object, assigned models requires.
|
|
virtual | ~FileInfoProvider ()=default |
| Destroy the File Info Provider object.
|
|
void | setCurrentHandlePath (const QString &path) |
| setCurrentHandlePath set the current handle path
|
|
QString | currentHandlePath () |
| currentHandlePath get the current handle path
|
|
The DirentSizeCounter class wrapped the worker and provides non-implement-relative interfaces to the views.
◆ DirentSizeCounter()
Construct a new Dirent Size Counter object.
- Parameters
-
model | model bindings |
parent | |
◆ data()
std::pair< bool, QVariant > DirentSizeCounter::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| |
|
virtual |
data provide the data to the views
- Parameters
-
index | the model index |
role | the role of the index |
- Returns
- returns the file size of the index, if the data is not available, it will return with {false, {}}
Implements FileInfoProvider.
◆ provide_section_name()
QString DirentSizeCounter::provide_section_name |
( |
| ) |
|
|
inlinevirtual |
provide_section_name means everything in the name lol
- Returns
- the section name
Implements FileInfoProvider.
The documentation for this class was generated from the following files:
- extern_app/FileRamber/Core/DirentSizeCounter.h
- extern_app/FileRamber/Core/DirentSizeCounter.cpp