shared: IndexSyncer: Support cancellation

This commit is contained in:
2022-06-04 14:07:06 +02:00
parent 7d9c883abd
commit d7b93d11d8
2 changed files with 17 additions and 3 deletions

View File

@ -13,11 +13,14 @@ class IndexSyncer : public QObject
bool verbose = false;
QString pattern;
std::atomic<bool> stopToken{false};
public:
IndexSyncer(SqliteDbService &dbService);
public slots:
void sync();
void cancel();
void setDryRun(bool dryRun);
void setVerbose(bool verbose);
void setKeepGoing(bool keepGoing);