summaryrefslogtreecommitdiff
path: root/src/installationmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/installationmanager.h')
-rw-r--r--src/installationmanager.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/installationmanager.h b/src/installationmanager.h
index 40cffad4..f6028904 100644
--- a/src/installationmanager.h
+++ b/src/installationmanager.h
@@ -53,10 +53,12 @@ public:
*
* @param parent parent object.
**/
- explicit InstallationManager(QWidget *parent);
+ explicit InstallationManager();
virtual ~InstallationManager();
+ void setParentWidget(QWidget *widget);
+
/**
* @brief update the directory where mods are to be installed
* @param modsDirectory the mod directory
@@ -141,7 +143,7 @@ public:
* @param merge if this value is not null, the value will be set to whether the use chose to merge or replace
* @return true if we can proceed with the installation, false if the user canceled or in case of an unrecoverable error
*/
- virtual bool testOverwrite(MOBase::GuessedValue<QString> &modName, bool *merge = NULL) const;
+ virtual bool testOverwrite(MOBase::GuessedValue<QString> &modName, bool *merge = nullptr) const;
private:
@@ -166,7 +168,7 @@ private:
bool isSimpleArchiveTopLayer(const MOBase::DirectoryTree::Node *node, bool bainStyle);
MOBase::DirectoryTree::Node *getSimpleArchiveBase(MOBase::DirectoryTree *dataTree);
- //bool testOverwrite(const QString &modsDirectory, MOBase::GuessedValue<QString> &modName, bool *merge = NULL);
+ //bool testOverwrite(const QString &modsDirectory, MOBase::GuessedValue<QString> &modName, bool *merge = nullptr);
bool doInstall(MOBase::GuessedValue<QString> &modName,
int modID, const QString &version, const QString &newestVersion, int categoryID, const QString &repository);