CCIMXDesktop
 
Loading...
Searching...
No Matches
DirentSizeCounter Class Reference

The DirentSizeCounter class wrapped the worker and provides non-implement-relative interfaces to the views. More...

#include <DirentSizeCounter.h>

Inheritance diagram for DirentSizeCounter:
FileInfoProvider

Public Member Functions

 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
 
- Public Member Functions inherited from FileInfoProvider
 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
 

Additional Inherited Members

- Protected Attributes inherited from FileInfoProvider
CCIMXFileSystemModelmodels
 binding models
 

Detailed Description

The DirentSizeCounter class wrapped the worker and provides non-implement-relative interfaces to the views.

Constructor & Destructor Documentation

◆ DirentSizeCounter()

DirentSizeCounter::DirentSizeCounter ( CCIMXFileSystemModel model,
QObject *  parent = nullptr 
)
explicit

Construct a new Dirent Size Counter object.

Parameters
modelmodel bindings
parent

Member Function Documentation

◆ data()

std::pair< bool, QVariant > DirentSizeCounter::data ( const QModelIndex &  index,
int  role 
)
virtual

data provide the data to the views

Parameters
indexthe model index
rolethe 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: