summaryrefslogtreecommitdiff
path: root/src/installationmanager.h
diff options
context:
space:
mode:
authorSeth Riley <17361645+Qudix@users.noreply.github.com>2020-12-01 15:55:50 -0600
committerSeth Riley <17361645+Qudix@users.noreply.github.com>2020-12-01 15:55:50 -0600
commit852d8745a1ac3ef2aaa83ae21d473d20428d7d30 (patch)
tree7ff242377cd3ec72571cd96cd631c28bbaac6470 /src/installationmanager.h
parent60688ecf5bc6e44795472cb22888ec5994a904a8 (diff)
parent1ec3ab2b8a845f75495b4cacbeb17c86ea137a01 (diff)
Merge https://github.com/ModOrganizer2/modorganizer into ignore_alt
Diffstat (limited to 'src/installationmanager.h')
-rw-r--r--src/installationmanager.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/installationmanager.h b/src/installationmanager.h
index 66f11eae..145abdb6 100644
--- a/src/installationmanager.h
+++ b/src/installationmanager.h
@@ -35,6 +35,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include <errorcodes.h>
#include "modinfo.h"
+#include "plugincontainer.h"
/**
@@ -88,6 +89,11 @@ public:
void setModsDirectory(const QString &modsDirectory) { m_ModsDirectory = modsDirectory; }
/**
+ *
+ */
+ void setPluginContainer(const PluginContainer* pluginContainer);
+
+ /**
* @brief update the directory where downloads are stored
* @param downloadDirectory the download directory
*/
@@ -126,8 +132,8 @@ public:
* @brief register an installer-plugin
* @param the installer to register
*/
- void registerInstaller(MOBase::IPluginInstaller *installer);
-
+ void registerInstaller(MOBase::IPluginInstaller *installer);
+
/**
* @return the extensions of archives supported by this installation manager.
*/
@@ -167,7 +173,7 @@ public:
*
* The flatten argument is not present here while it is present in the deprecated QStringList
* version for multiple reasons: 1) it was never used, 2) it is kind of fishy because there
- * is no way to know if a file is going to be overriden, 3) it is quite easy to flatten a
+ * is no way to know if a file is going to be overriden, 3) it is quite easy to flatten a
* IFileTree and thus to given a list of entries flattened (this was not possible with the
* QStringList version since these were based on the name of the file inside the archive).
*/
@@ -185,7 +191,7 @@ public:
* @return the path to the created file.
*/
virtual QString createFile(std::shared_ptr<const MOBase::FileTreeEntry> entry) override;
-
+
/**
* @brief Installs the given archive.
*
@@ -279,6 +285,9 @@ private:
private:
+ // The plugin container, mostly to check if installer are enabled or not.
+ const PluginContainer *m_PluginContainer;
+
bool m_IsRunning;
QWidget *m_ParentWidget;
@@ -289,13 +298,13 @@ private:
std::vector<MOBase::IPluginInstaller*> m_Installers;
std::set<QString, CaseInsensitive> m_SupportedExtensions;
- // Archive management:
+ // Archive management.
std::unique_ptr<Archive> m_ArchiveHandler;
QString m_CurrentFile;
QString m_Password;
// Map from entries in the tree that is used by the installer and absolute
- // paths to temporary files:
+ // paths to temporary files.
std::map<std::shared_ptr<const MOBase::FileTreeEntry>, QString> m_CreatedFiles;
std::set<QString> m_TempFilesToDelete;
};