20 #ifndef __FILEFINDER_ENGINE_ENGINE_H 21 # define __FILEFINDER_ENGINE_ENGINE_H 26 #include <Plugins/iPlugin> 33 #include <QWaitCondition> 34 #include <QStringList> 42 namespace FileFinder {
74 virtual bool init(QString
const & args);
78 virtual bool isReady()
const {
return mReady; }
117 virtual void search(QString
const & dir,
bool recursive,
Filter const & filter);
119 virtual void cancel();
121 virtual bool busy()
const;
144 void setPattern(QString
const & pattern);
148 bool isEmpty()
const {
return mPatterns.isEmpty(); }
152 bool exactMatch(QString
const & str)
const;
157 QVector<QRegExp *> mPatterns;
169 QStringList split(QString
const & str);
200 void search(QString
const & dir,
bool recursive,
Filter const & filter);
225 void found(QString
const & fileName, QString
const & dir);
231 void finished(
bool canceled);
242 static int const ReadBufferSize;
245 mutable QMutex mLock;
248 QWaitCondition mSomethingToDo;
259 QRegExp mRxIncludeContent;
260 QRegExp mRxExcludeContent;
281 void recursiveSearch(QString
const & path);
Interface for the file finder engine.
Worker thread searching for files.
Module for the FileFinder application that searches for files.
bool COMMON_EXPORT init()
eVaf common library initialized
#define VER_MODULE_NAME_STR
Module/library name (shall end with \0)
Implements the iFileFinder interface.
Version information for eVaf modules.
A chain of QRegExp patterns.
Common interface for all the eVaf modules.
File filter defining patterns for file names and contents.