Interface for deciding which files are suitable for something. More...
#include <juce_FileFilter.h>
Public Member Functions | |
FileFilter (const String &filterDescription) | |
Creates a filter with the given description. More... | |
virtual | ~FileFilter () |
Destructor. More... | |
const String & | getDescription () const noexcept |
Returns the description that the filter was created with. More... | |
virtual bool | isDirectorySuitable (const File &file) const =0 |
Should return true if this directory is suitable for inclusion in whatever context the object is being used. More... | |
virtual bool | isFileSuitable (const File &file) const =0 |
Should return true if this file is suitable for inclusion in whatever context the object is being used. More... | |
Protected Attributes | |
String | description |
Interface for deciding which files are suitable for something.
For example, this is used by DirectoryContentsList to select which files go into the list.
@tags{Core}
juce::FileFilter::FileFilter | ( | const String & | filterDescription | ) |
Creates a filter with the given description.
The description can be returned later with the getDescription() method.
|
virtual |
Destructor.
|
noexcept |
Returns the description that the filter was created with.
Should return true if this directory is suitable for inclusion in whatever context the object is being used.
Implemented in juce::WildcardFileFilter, and juce::FileBrowserComponent.
Should return true if this file is suitable for inclusion in whatever context the object is being used.
Implemented in juce::WildcardFileFilter, and juce::FileBrowserComponent.
|
protected |