1
#ifndef GREPFINDTHREAD_H
2
#define GREPFINDTHREAD_H
7
class GrepFindFilesThread : public QThread
13
* @param[in] parent Parent
14
* @param[in] startDir Root directory of the search
15
* @param[in] recursive Whether the search should be recursive
16
* @param[in] patterns Space-separated list of wildcard patterns to search for
17
* @param[in] exclusions Space-separated list of wildcard patterns to exclude. Matches the whole path.
18
* @param[in] onlyProject Whether the search should only consider project files.
20
GrepFindFilesThread(QObject *parent, const KUrl &startDir, bool recursive,
21
const QString &patterns, const QString &exclusions,
24
* @brief Returns the list of found files
25
* @return List of found files
27
KUrl::List files() const;
29
* @brief Sets the internal m_tryAbort flag to @c true
30
* @note It is not guaranteed that the thread stops its work immediately.
31
* Check this via QThread::isRunning() or QThread::isFinished().
35
* @brief Check if the internal m_tryAbort flag is set
36
* @return Whether the thread is going to abort its work.
38
bool triesToAbort() const;
41
* @brief Parses include string to a list suitable for QDir::match
43
static QStringList parseInclude(QString inc);
46
* @brief Parses exclude string to a list suitable for QDir::match
48
static QStringList parseExclude(QString excl);
59
volatile bool m_tryAbort;
60
// creating with no parameters would be bad
61
GrepFindFilesThread();
b'\\ No newline at end of file'