CCIMXDesktop
 
Loading...
Searching...
No Matches
FileCountInfo Class Reference
Inheritance diagram for FileCountInfo:
FileInfoProvider

Public Member Functions

 FileCountInfo (CCIMXFileSystemModel *model, QObject *parent=nullptr)
 Construct a new File Count Info 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
 

Constructor & Destructor Documentation

◆ FileCountInfo()

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

Construct a new File Count Info object.

Parameters
model
parent

Member Function Documentation

◆ data()

std::pair< bool, QVariant > FileCountInfo::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 FileCountInfo::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: