From d52fcccb831b63dc1add068084369543d0a45246 Mon Sep 17 00:00:00 2001 From: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> Date: Mon, 18 Aug 2025 07:55:52 +0200 Subject: Add author and uploader columns to mod list (#2269) --- src/modinfo.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'src/modinfo.h') diff --git a/src/modinfo.h b/src/modinfo.h index bbb1aae3..b73073ed 100644 --- a/src/modinfo.h +++ b/src/modinfo.h @@ -351,6 +351,21 @@ public: // IModInterface implementations / Re-declaration */ virtual QStringList categories() const override; + /** + * @return the author of the mod. + */ + virtual QString author() const = 0; + + /** + * @return the name of the uploader of this mod. + */ + virtual QString uploader() const = 0; + + /** + * @return the URL of the uploader of this mod's profile. + */ + virtual QString uploaderUrl() const = 0; + /** * @return the tracked state of this mod. */ @@ -486,6 +501,21 @@ public: // Mutable operations: */ virtual bool setName(const QString& name) = 0; + /** + * @brief Set the author of the mod. + */ + virtual void setAuthor(const QString& author) = 0; + + /** + * @brief Set the name of the uploader of this mod. + */ + virtual void setUploader(const QString& uploader) = 0; + + /** + * @brief Set the URL of the uploader of this mod's profile. + */ + virtual void setUploaderUrl(const QString& uploaderUrl) = 0; + public: // Methods after this do not come from IModInterface: /** * @return true if this mod is empty, false otherwise. -- cgit v1.3.1