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

Public Member Functions

 FileTypeInfo (CCIMXFileSystemModel *model)
 Construct a new File Type Info object.
 
 FileTypeInfo ()=delete
 Construct a new File delete defaulty.
 
 Q_DISABLE_COPY (FileTypeInfo)
 disable copy object
 
QString provide_section_name () override
 provide_section_name means everything in the name lol
 
std::pair< bool, QVariant > data (const QModelIndex &index, int role) override
 data provide the data to the views
 
QString typeInfo (const QString &suffix)
 registerTypeInfo register the type info
 
- 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

◆ FileTypeInfo()

FileTypeInfo::FileTypeInfo ( CCIMXFileSystemModel model)

Construct a new File Type Info object.

Parameters
model

Member Function Documentation

◆ data()

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

data provide the data to the views

Parameters
indexthe model index
rolethe role of the index
Returns
returns the file type of the index, if the data is not available, it will return with {false, {}}

Implements FileInfoProvider.

◆ provide_section_name()

QString FileTypeInfo::provide_section_name ( )
inlineoverridevirtual

provide_section_name means everything in the name lol

Returns
the section name

Implements FileInfoProvider.

◆ typeInfo()

QString FileTypeInfo::typeInfo ( const QString &  suffix)
inline

registerTypeInfo register the type info

Parameters
suffixthe file suffix

The documentation for this class was generated from the following files: