fix(cpn): sounds processing extra files and cancel update processes earlier (#5354)

Co-authored-by: elecpower <elecpower@users.noreply.github.com>
This commit is contained in:
Neil Horne
2024-08-01 22:59:22 +10:00
committed by GitHub
co-authored by elecpower
parent b2a603ed21
commit 4390e310d0
13 changed files with 443 additions and 210 deletions
+7 -2
View File
@@ -28,9 +28,9 @@
class ProgressWidget;
class MinizInterface
class MinizInterface : public QObject
{
Q_DECLARE_TR_FUNCTIONS(MinizInterface)
Q_OBJECT
public:
enum ProgressCalcMethod {
@@ -44,6 +44,9 @@ class MinizInterface
bool zipPathToFile(const QString & sourcePath, const QString & archiveFile, bool append = true);
bool unzipArchiveToPath(const QString & archiveFile, const QString & destinationPath);
public slots:
void stop();
private:
ProgressWidget *progress;
ProgressCalcMethod progressMethod;
@@ -51,10 +54,12 @@ class MinizInterface
int logLevel;
QString path;
QString archiveFile;
bool stopping;
mz_zip_archive zip_archive;
bool addFileToArchive(const QString & path);
bool createDirectory(const QString & path);
void reportProgress(const QString & text, const int & type = QtInfoMsg, bool richText = false);
bool isStopping() { return stopping; }
};