diff options
| author | Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> | 2025-08-18 07:55:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-18 07:55:52 +0200 |
| commit | d52fcccb831b63dc1add068084369543d0a45246 (patch) | |
| tree | 3d3009a7e0ad3b477b64b349a1bdc7fd1e0d5f62 /src/modinfo.h | |
| parent | 6c64236e2e7a8e2883b7656657e0fac329d5621b (diff) | |
Add author and uploader columns to mod list (#2269)
Diffstat (limited to 'src/modinfo.h')
| -rw-r--r-- | src/modinfo.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/modinfo.h b/src/modinfo.h index bbb1aae3..b73073ed 100644 --- a/src/modinfo.h +++ b/src/modinfo.h @@ -352,6 +352,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. */ virtual MOBase::TrackedState trackedState() const override @@ -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. |
