diff options
| author | Tannin <devnull@localhost> | 2013-03-22 18:46:40 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-03-22 18:46:40 +0100 |
| commit | 0a19f0433992be5f9791c8869380d09cd06b66b8 (patch) | |
| tree | 12399954f7c1156ed1cacb24dac3a8574a513e7f /src/installationmanager.h | |
| parent | 8b4e11060b37ad70754aa665ad59744eadd2dd1e (diff) | |
- support for grouping filters for mod list (incomplete)
- offering multiple options for mod names during installation
- support for renaming profiles
- updated installer plugins
- minor bugfixes
Diffstat (limited to 'src/installationmanager.h')
| -rw-r--r-- | src/installationmanager.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/installationmanager.h b/src/installationmanager.h index 7d864647..5bf64e94 100644 --- a/src/installationmanager.h +++ b/src/installationmanager.h @@ -20,10 +20,10 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #ifndef INSTALLATIONMANAGER_H #define INSTALLATIONMANAGER_H -#include "installdialog.h" #include <iinstallationmanager.h> #include <iplugininstaller.h> +#include <guessedvalue.h> #include <QObject> #define WIN32_LEAN_AND_MEAN @@ -61,12 +61,12 @@ public: * @brief install a mod from an archive * * @param fileName absolute file name of the archive to install + * @param modsDirectory directory to install mods to * @param modName suggested name of the mod. If this is empty (the default), a name will be guessed based on the filename. The user will always have a chance to rename the mod - * @param preferIntegrated if true, integrated installers are chosen over external installers * @return true if the archive was installed, false if installation failed or was refused * @exception std::exception an exception may be thrown if the archive can't be opened (maybe the format is invalid or the file is damaged) **/ - bool install(const QString &fileName, const QString &pluginsFileName, const QString &modsDirectory, bool preferIntegrated, bool enableQuickInstall, QString &modName, bool &hasIniTweaks); + bool install(const QString &fileName, const QString &modsDirectory, MOBase::GuessedValue<QString> &modName, bool &hasIniTweaks); /** * @return true if the installation was canceled @@ -123,7 +123,7 @@ public: * @param archiveFile path to the archive to install * @return the installation result */ - virtual MOBase::IPluginInstaller::EInstallResult installArchive(const QString &modName, const QString &archiveName); + virtual MOBase::IPluginInstaller::EInstallResult installArchive(MOBase::GuessedValue<QString> &modName, const QString &archiveName); private: @@ -152,11 +152,11 @@ private: bool checkFomodPackage(MOBase::DirectoryTree *dataTree, QString &offset, bool &xmlInstaller); bool checkNMMInstaller(); - void fixModName(QString &name); +// static bool fixModName(QString &name); - bool testOverwrite(const QString &modsDirectory, QString &modName); + bool testOverwrite(const QString &modsDirectory, MOBase::GuessedValue<QString> &modName); - bool doInstall(const QString &modsDirectory, QString &modName, + bool doInstall(const QString &modsDirectory, MOBase::GuessedValue<QString> &modName, int modID, const QString &version, const QString &newestVersion, int categoryID); bool installFomodExternal(const QString &fileName, const QString &pluginsFileName, const QString &modDirectory); @@ -165,7 +165,7 @@ private: int categoryID, QString &modName, bool nameGuessed, bool &manualRequest); QString generateBackupName(const QString &directoryName); - bool ensureValidModName(QString &name); + bool ensureValidModName(MOBase::GuessedValue<QString> &name); private slots: |
