summaryrefslogtreecommitdiff
path: root/src/installationmanager.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-06-01 21:06:52 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2020-06-01 21:06:52 +0200
commit2c20a4115d0fdc4ce81787d8d78bd06fbf838b25 (patch)
tree25d60bd64d079764190852a44caac8584e6904ec /src/installationmanager.h
parentaf0c0dc33e639f116aaa5c0ac4f2541a80106099 (diff)
Fix opening and extraction of archives with passwords and/or encrypted filenames.
Diffstat (limited to 'src/installationmanager.h')
-rw-r--r--src/installationmanager.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/installationmanager.h b/src/installationmanager.h
index 67e58356..328272e1 100644
--- a/src/installationmanager.h
+++ b/src/installationmanager.h
@@ -204,10 +204,16 @@ private:
void postInstallCleanup();
+private slots:
+
+ /**
+ * @brief Query user for password and update the m_Password field.
+ */
+ void queryPassword();
+
signals:
- void progressUpdate(float percentage);
- void progressUpdate(QString const fileName);
+ void passwordRequested();
private:
@@ -253,6 +259,9 @@ private:
Archive *m_ArchiveHandler;
QString m_CurrentFile;
+ // Current password:
+ QString m_Password;
+
// Map from entries in the tree that is used by the installer and absolute
// paths to temporary files:
std::map<std::shared_ptr<const MOBase::FileTreeEntry>, QString> m_CreatedFiles;