summaryrefslogtreecommitdiff
path: root/src/modinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modinfo.h')
-rw-r--r--src/modinfo.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/modinfo.h b/src/modinfo.h
index 3b83d207..e408e812 100644
--- a/src/modinfo.h
+++ b/src/modinfo.h
@@ -268,6 +268,13 @@ public:
virtual void setNexusDescription(const QString &description) = 0;
/**
+ * @brief sets the category id from a nexus category id. Conversion to MO id happens internally
+ * @param categoryID the nexus category id
+ * @note if a mapping is not possible, the category is set to the default value
+ */
+ virtual void addNexusCategory(int categoryID) = 0;
+
+ /**
* update the endorsement state for the mod. This only changes the
* buffered state, it does not sync with Nexus
* @param endorsed the new endorsement state
@@ -606,6 +613,13 @@ public:
virtual void setNexusDescription(const QString &description);
/**
+ * @brief sets the category id from a nexus category id. Conversion to MO id happens internally
+ * @param categoryID the nexus category id
+ * @note if a mapping is not possible, the category is set to the default value
+ */
+ virtual void addNexusCategory(int categoryID);
+
+ /**
* @brief sets the new primary category of the mod
* @param categoryID the category to set
*/
@@ -854,6 +868,7 @@ public:
virtual void setNewestVersion(const MOBase::VersionInfo&) {}
virtual void ignoreUpdate(bool) {}
virtual void setNexusDescription(const QString&) {}
+ virtual void addNexusCategory(int) {}
virtual void setIsEndorsed(bool) {}
virtual void setNeverEndorse() {}
virtual bool remove() { return false; }