shared: IndexSyncer: Support cancellation

Tento commit je obsažen v:
2022-06-04 14:07:06 +02:00
rodič 7d9c883abd
revize d7b93d11d8
2 změnil soubory, kde provedl 17 přidání a 3 odebrání

Zobrazit soubor

@@ -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);