diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-09-21 21:36:09 +0200 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-09-21 21:36:09 +0200 |
| commit | d9a8e67598b88d13b09d3e43c8f40418dea1f2a5 (patch) | |
| tree | 4a80483a343d2016f20033a95a66edf71d24d076 /src/installationmanager.cpp | |
| parent | 7563e4a517c93aeb65955985887dd0fbdbe224c7 (diff) | |
Add IPluginInstaller onInstallationStart and onInstallationEnd callbacks.
Diffstat (limited to 'src/installationmanager.cpp')
| -rw-r--r-- | src/installationmanager.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp index 608a8c91..b60c8704 100644 --- a/src/installationmanager.cpp +++ b/src/installationmanager.cpp @@ -868,3 +868,19 @@ QStringList InstallationManager::getSupportedExtensions() const { return QStringList(std::begin(m_SupportedExtensions), std::end(m_SupportedExtensions)); } + +void InstallationManager::notifyInstallationStart(QString const& archive, ModInfo::Ptr currentMod) +{ + for (auto* installer : m_Installers) { + installer->onInstallationStart(archive, currentMod.get()); + } +} + +void InstallationManager::notifyInstallationEnd( + MOBase::IPluginInstaller::EInstallResult result, + ModInfo::Ptr newMod) +{ + for (auto* installer : m_Installers) { + installer->onInstallationEnd(result, newMod.get()); + } +} |
