|
|
|
@ -60,27 +60,27 @@ class TDEIO_EXPORT KSimpleFileFilter : public KFileFilter
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
/**
|
|
|
|
|
* Creates a new filter. By default, it filters only hidden dot files
|
|
|
|
|
* Creates a new filter. By default, it filters only hidden files
|
|
|
|
|
* and "." and "..".
|
|
|
|
|
*/
|
|
|
|
|
KSimpleFileFilter();
|
|
|
|
|
virtual ~KSimpleFileFilter();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Enable or disable filtering hidden dot files.
|
|
|
|
|
* Enable or disable filtering hidden files.
|
|
|
|
|
* This option is enabled by default.
|
|
|
|
|
* @param filter true to enable filtering dot files, false to
|
|
|
|
|
* @param filter true to enable filtering hidden files, false to
|
|
|
|
|
* disable
|
|
|
|
|
* @see filterDotFiles
|
|
|
|
|
* @see filterHiddenFiles
|
|
|
|
|
*/
|
|
|
|
|
virtual void setFilterDotFiles( bool filter );
|
|
|
|
|
virtual void setFilterHiddenFiles( bool filter );
|
|
|
|
|
/**
|
|
|
|
|
* Checks whether filtering dot files is enabled.
|
|
|
|
|
* Checks whether filtering hidden files is enabled.
|
|
|
|
|
* This option is enabled by default.
|
|
|
|
|
* @return true if filtering is enabled, false otherwise
|
|
|
|
|
* @see setFilterDotFiles
|
|
|
|
|
* @see setFilterHiddenFiles
|
|
|
|
|
*/
|
|
|
|
|
bool filterDotFiles() const { return m_filterDotFiles; }
|
|
|
|
|
bool filterHiddenFiles() const { return m_filterHiddenFiles; }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Filters "." and "..", default is true.
|
|
|
|
@ -158,7 +158,7 @@ protected:
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
TQStringList m_mimeFilters;
|
|
|
|
|
bool m_filterDotFiles :1;
|
|
|
|
|
bool m_filterHiddenFiles :1;
|
|
|
|
|
bool m_filterSpecials :1;
|
|
|
|
|
mode_t m_modeFilter;
|
|
|
|
|
protected:
|
|
|
|
|