summaryrefslogtreecommitdiff
path: root/src/modinfo.h
diff options
context:
space:
mode:
authorSilarn <jrim@rimpo.org>2018-04-17 02:47:07 -0500
committerSilarn <jrim@rimpo.org>2018-04-17 02:47:07 -0500
commit7688175c68c2f1ce85951173c0aa3e186587aa1f (patch)
treefdbe99b1158c90ae5dc71a9d7871dd236f2e2c24 /src/modinfo.h
parentb4eae6e5d1cbd92140e9a1058d623a4338a35c43 (diff)
Add source game setter in mod info dialog
Diffstat (limited to 'src/modinfo.h')
-rw-r--r--src/modinfo.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/modinfo.h b/src/modinfo.h
index f321f068..07dccafd 100644
--- a/src/modinfo.h
+++ b/src/modinfo.h
@@ -265,7 +265,14 @@ public:
* @brief change the notes (manually set information) for this mod
* @param notes new notes
*/
- virtual void setNotes(const QString &notes) = 0;
+ virtual void setNotes(const QString &notes) = 0;
+
+ /**
+ * @brief set/change the source game of this mod
+ *
+ * @param gameName the source game shortName
+ */
+ virtual void setGameName(QString gameName) = 0;
/**
* @brief set/change the nexus mod id of this mod
@@ -411,13 +418,13 @@ public:
*
* @return the nexus mod id. may be 0 if the mod id isn't known or doesn't exist
**/
- virtual int getNexusID() const = 0;
-
- /**
- * @brief getter for the source game repository
- *
- * @return the source game repository. should default to the active game.
- **/
+ virtual int getNexusID() const = 0;
+
+ /**
+ * @brief getter for the source game repository
+ *
+ * @return the source game repository. should default to the active game.
+ **/
virtual QString getGameName() const = 0;
/**