Make possible to cancel updates/creations

This commit is contained in:
Luis Ángel San Martín
2023-08-20 12:36:40 +02:00
parent a6caf98af9
commit 45043cf36e
2 changed files with 24 additions and 8 deletions

View File

@ -26,7 +26,8 @@ public:
void createLibrary(const QString &source, const QString &target);
void updateLibrary(const QString &source, const QString &target);
void updateFolder(const QString &source, const QString &target, const QString &folder, const QModelIndex &dest);
void stop();
void stop(); // used to stop the process and keep the changes
void cancel(); // cancels this run and changes in the DB are rolled back
private:
void processLibrary(const QString &source, const QString &target);
@ -51,6 +52,7 @@ private:
// qulonglong insertFolder(qulonglong parentId,const Folder & folder);
// qulonglong insertComic(const Comic & comic);
bool stopRunning;
bool canceled;
// LibraryCreator está en modo creación si creation == true;
bool creation;
bool partialUpdate;