KSimpleFileFilter Class Reference
A simple file filter that can filter hidden dot files, by name, by mime type and by mode. A simple file filter. More...
#include <kfilefilter.h>
Inheritance diagram for KSimpleFileFilter:

Public Member Functions | |
KSimpleFileFilter () | |
virtual void | setFilterDotFiles (bool filter) |
bool | filterDotFiles () const |
virtual void | setFilterSpecials (bool filter) |
bool | filterSpecials () const |
void | setNameFilters (const QString &nameFilters, bool caseSensitive, const QChar &separator= ' ') |
virtual void | setNameFilters (const QString &nameFilters) |
virtual void | setMimeFilters (const QStringList &mimeFilters) |
QStringList | mimeFilters () const |
virtual void | setModeFilter (mode_t mode) |
mode_t | modeFilter () const |
virtual bool | passesFilter (const KFileItem *item) const |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
QPtrList< QRegExp > | m_nameFilters |
Detailed Description
A simple file filter that can filter hidden dot files, by name, by mime type and by mode. A simple file filter.Definition at line 57 of file kfilefilter.h.
Constructor & Destructor Documentation
|
Creates a new filter. By default, it filters only hidden dot files and "." and "..". Definition at line 28 of file kfilefilter.cpp. References QPtrList::setAutoDelete(). |
Member Function Documentation
|
Enable or disable filtering hidden dot files. This option is enabled by default.
|
|
Checks whether filtering dot files is enabled. This option is enabled by default.
|
|
Filters "." and "..", default is true.
|
|
Checks whether it filters "." and "..", default is true.
|
|
Sets a list of regular expressions to filter by name. The file will only pass if its name matches one of the regular expressions.
References QPtrList::append(), QPtrList::clear(), and QStringList::split(). Referenced by setNameFilters(). |
|
Sets a list of regular expressions to filter by name. The file will only pass if its name matches one of the regular expressions.
References setNameFilters(). |
|
Sets a list of mime filters. A file can only pass if its mime type is contained in this list.
|
|
Returns the list of mime types.
|
|
Sets the mode filter.
If the
|
|
Returns the mode filter, as set by setModeFilter().
|
|
Checks the given
Implements KFileFilter. Definition at line 80 of file kfilefilter.cpp. References QString::at(), QPtrListIterator::current(), QPtrList::isEmpty(), KFileItem::mimeTypePtr(), KFileItem::mode(), KFileItem::name(), and KGlobal::staticQString(). |
The documentation for this class was generated from the following files: