|
| 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
|
|
| 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
|
|
◆ FileTypeInfo()
Construct a new File Type Info object.
- Parameters
-
◆ data()
std::pair< bool, QVariant > FileTypeInfo::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| |
|
overridevirtual |
data provide the data to the views
- Parameters
-
index | the model index |
role | the 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
-
The documentation for this class was generated from the following files:
- extern_app/FileRamber/Core/FileTypeInfo.h
- extern_app/FileRamber/Core/FileTypeInfo.cpp