File finder interface.
More...
#include </var/tmp/work/evaf/src/apps/FileFinder/Engine/ifilefinder.h>
|
void | finished (bool canceled) |
| Signal emitted when the search is finished. More...
|
|
void | found (QString const &fileName, QString const &dir) |
| Signal emitted for every file found during the search. More...
|
|
File finder interface.
The iFileFinder interface is used to search for files using name and content filters.
Definition at line 73 of file ifilefinder.h.
eVaf::FileFinder::iFileFinder::iFileFinder |
( |
| ) |
|
|
inline |
virtual eVaf::FileFinder::iFileFinder::~iFileFinder |
( |
| ) |
|
|
inlinevirtual |
virtual bool eVaf::FileFinder::iFileFinder::busy |
( |
| ) |
const |
|
pure virtual |
Indicates that a search is ongoing.
virtual void eVaf::FileFinder::iFileFinder::cancel |
( |
| ) |
|
|
pure virtual |
Cancels an ongoing search.
void eVaf::FileFinder::iFileFinder::finished |
( |
bool |
canceled | ) |
|
|
signal |
Signal emitted when the search is finished.
- Parameters
-
canceled | True if the search was canceled instead of finished |
void eVaf::FileFinder::iFileFinder::found |
( |
QString const & |
fileName, |
|
|
QString const & |
dir |
|
) |
| |
|
signal |
Signal emitted for every file found during the search.
- Parameters
-
fileName | name of the file with a path relative to the search directory |
dir | Search directory |
virtual void eVaf::FileFinder::iFileFinder::search |
( |
QString const & |
dir, |
|
|
bool |
recursive, |
|
|
Filter const & |
filter |
|
) |
| |
|
pure virtual |
Starts a file search in the directory dir using filter.
- Parameters
-
dir | Directory where to search |
recursive | If True, searches also in sub-directories |
filter | File name and content filter |
The search() function searches for files matching the given filter. The search is started in the directory dir and continues recursively into sub-directories if the recursive flag is set to true.
The function is non-blocking and returns immediately. Results of the search are reported with found() signals and the finished() signal indicates that the search is either finished or canceled.
If a new search is started before the current search is finished, then the current search is canceled.
The documentation for this class was generated from the following file: