Public Member Functions
|void ||AddFile (const QString &filepath)|
| ||Add filename to the list. |
|void ||AddDirectory (const QString &directory, bool recursive=false)|
| ||Add files in the directory to the list. |
|void ||AddPathList (const QStringList &paths)|
| ||Add list of filenames and directories to the list. |
|QStringList ||GetFileList () const |
| ||Return list of filenames (to check). |
|void ||AddExcludeList (const QStringList &paths)|
| ||Add list of paths to exclusion list. |
Protected Member Functions
|QStringList ||ApplyExcludeList () const |
| ||Get filtered list of paths. |
|bool ||Match (const QString &path) const |
| ||Test if path matches any of the exclude filters. |
Static Protected Member Functions
|static QStringList ||GetDefaultFilters ()|
| ||Return list of default filename extensions included. |
|static bool ||FilterMatches (const QFileInfo &inf)|
| ||Test if filename matches the filename extensions filtering. |
A class for listing files and directories to check.
This class creates a list of files to check. If directory name is given then all files in the directory matching the filter will be added. The directory can be also added recursively when all files in subdirectories are added too. The filenames are matched against the filter and only those files whose filename extension is included in the filter list are added.
This class also handles filtering of paths against ignore filters given. If there is ignore filters then only paths not matching those filters are returned.
Definition at line 37 of file filelist.h.