From 535623693e63569f485c15984274ea65c4d0c872 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Fri, 30 Jul 2021 21:29:16 -0500 Subject: Add menu item to auto-assign categories based on nexus assignments --- src/downloadmanager.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/downloadmanager.h') diff --git a/src/downloadmanager.h b/src/downloadmanager.h index 305c10e3..359455d9 100644 --- a/src/downloadmanager.h +++ b/src/downloadmanager.h @@ -298,6 +298,14 @@ public: **/ QString getFileName(int index) const; + /** + * @brief retrieve the file index from the filename + * + * @param filename the filename of the download + * @return the index of the file + */ + int getDownloadIndex(QString filename) const; + /** * @brief retrieve the file size of the download specified by index * @@ -348,6 +356,14 @@ public: **/ int getModID(int index) const; + /** + * @brief retrieve the nexus category id of the download specified by index + * + * @param index index of the file to look up + * @return the nexus category id + */ + int getCategoryID(int index) const; + /** * @brief retrieve the displayable game name of the download specified by the index * -- cgit v1.3.1