From 1b4851a941cbafb7bf7a45feee7149cefa7e0acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 26 Oct 2016 18:12:33 +0200 Subject: NOISSUE use QtConcurrent to run FS operations in worker threads Not all operations - only the ones that aren't in error handling. The API for QFuture is too nasty to do much more in a sensible way. --- api/logic/InstanceImportTask.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'api/logic/InstanceImportTask.h') diff --git a/api/logic/InstanceImportTask.h b/api/logic/InstanceImportTask.h index a551ec68..fe227e07 100644 --- a/api/logic/InstanceImportTask.h +++ b/api/logic/InstanceImportTask.h @@ -4,6 +4,8 @@ #include "multimc_logic_export.h" #include "net/NetJob.h" #include +#include +#include #include "settings/SettingsObject.h" class BaseInstanceProvider; @@ -26,6 +28,8 @@ private slots: void downloadSucceeded(); void downloadFailed(QString reason); void downloadProgressChanged(qint64 current, qint64 total); + void extractFinished(); + void extractAborted(); private: /* data */ SettingsObjectPtr m_globalSettings; @@ -37,4 +41,7 @@ private: /* data */ QString m_instName; QString m_instIcon; QString m_instGroup; + QString m_stagingPath; + QFuture m_extractFuture; + QFutureWatcher m_extractFutureWatcher; }; -- cgit v1.2.3