Skip to content

Commit

Permalink
Add startDownloadNexusFile overload with game name
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanFeenstra committed Dec 31, 2024
1 parent 34c0b40 commit 189f2c9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/idownloadmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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/<gameName>.
* @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
Expand Down

0 comments on commit 189f2c9

Please sign in to comment.