From 189f2c9fc9f4b5f7be640db404d673b7a365bde6 Mon Sep 17 00:00:00 2001 From: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> Date: Tue, 31 Dec 2024 19:34:52 +0100 Subject: [PATCH] Add startDownloadNexusFile overload with game name --- src/idownloadmanager.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/idownloadmanager.h b/src/idownloadmanager.h index cb596f97..96ca03d3 100644 --- a/src/idownloadmanager.h +++ b/src/idownloadmanager.h @@ -34,6 +34,16 @@ class QDLLEXPORT IDownloadManager : public QObject */ virtual int startDownloadNexusFile(int modID, int fileID) = 0; + /** + * @brief download a file from www.nexusmods.com/. + * @param gameName 'short' name of the game the mod is for + * @param modID id of the mod for which to download a file + * @param fileID id of the file to download + * @return an id by which the download will be identified + */ + virtual int startDownloadNexusFile(const QString& gameName, int modID, + int fileID) = 0; + /** * @brief get the (absolute) file path of the specified download. * @param id id of the download as returned by the download... functions