25#ifndef LMMS_GUI_FILE_SEARCH_JOB_H
26#define LMMS_GUI_FILE_SEARCH_JOB_H
78 std::atomic_flag
m_stop = ATOMIC_FLAG_INIT;
void foundMatch(const QString &path)
Emitted when the search job has found a matching path.
FileSearchJob(QObject *parent=nullptr)
Create a search job with the given parent (if any).
Definition FileSearchJob.cpp:33
void search(Task task)
Definition FileSearchJob.cpp:47
FileSearchJob & operator=(FileSearchJob &&)=delete
FileSearchJob(const FileSearchJob &)=delete
void runSearch(Task task)
Definition FileSearchJob.cpp:60
FileSearchJob(FileSearchJob &&)=delete
FileSearchJob & operator=(const FileSearchJob &)=delete
std::atomic_flag m_stop
Definition FileSearchJob.h:78
void started()
Emitted when the search job has started searching.
void finished()
Emitted when the search job has finished searching.
std::future< void > m_task
Definition FileSearchJob.h:77
~FileSearchJob()
Stop processing and destroys the object.
Definition FileSearchJob.cpp:38
static uintptr_t parent
Definition pugl.h:1644
Definition AudioPortAudio.cpp:223
Represents a search task to be carried out by the search job.
Definition FileSearchJob.h:42
QStringList paths
The filter to be tokenized.
Definition FileSearchJob.h:44
QFlags< QDir::Filter > dirFilters
The list of allowed extensions.
Definition FileSearchJob.h:46
QString filter
Definition FileSearchJob.h:43
QStringList extensions
The list of paths to search recursively through.
Definition FileSearchJob.h:45