FileSurfer 2.1.2
Cross-platform file manager with support for Git and SFTP
Loading...
Searching...
No Matches
FileSurfer.Linux.Models.FileInformation.LinuxIconProvider Class Referencesealed

Provides Linux file icons by resolving MIME types and loading themed icon assets. More...

Inheritance diagram for FileSurfer.Linux.Models.FileInformation.LinuxIconProvider:
Collaboration diagram for FileSurfer.Linux.Models.FileInformation.LinuxIconProvider:

Public Member Functions

 LinuxIconProvider (IShellHandler shellHandler, IReadOnlyList< string > searchPaths, Dictionary< string, string > extToMime)
 Creates a Linux icon provider that uses the shell for MIME and icon path integration.
override async Task< Bitmap > GetFileIconAsync (string filePath)
 Retrieves the associated icon based on the supplied file path.
override void Dispose ()
Public Member Functions inherited from FileSurfer.Core.Models.FileInformation.BaseIconProvider
virtual Task< Bitmap > GetDirectoryIconAsync (string dirPath)
 Retrieves the icon associated with directories.
virtual Task< Bitmap > GetDriveIconAsync (DriveEntryInfo driveEntryInfo)
 Retrieves the icon associated with drives.

Detailed Description

Provides Linux file icons by resolving MIME types and loading themed icon assets.

Constructor & Destructor Documentation

◆ LinuxIconProvider()

FileSurfer.Linux.Models.FileInformation.LinuxIconProvider.LinuxIconProvider ( IShellHandler shellHandler,
IReadOnlyList< string > searchPaths,
Dictionary< string, string > extToMime )
inline

Creates a Linux icon provider that uses the shell for MIME and icon path integration.

Member Function Documentation

◆ Dispose()

override void FileSurfer.Linux.Models.FileInformation.LinuxIconProvider.Dispose ( )
inlinevirtual

◆ GetFileIconAsync()

override async Task< Bitmap > FileSurfer.Linux.Models.FileInformation.LinuxIconProvider.GetFileIconAsync ( string filePath)
inlinevirtual

Retrieves the associated icon based on the supplied file path.

Parameters
filePathThe file path used to determine the icon.
Returns
The associated icon.

Reimplemented from FileSurfer.Core.Models.FileInformation.BaseIconProvider.


The documentation for this class was generated from the following file:
  • /home/janecea/Documents/CODE/PROJECTS/FileSurfer/src/FileSurfer.Linux/Models/FileInformation/LinuxIconProvider.cs