From 1bf3cc585e28516f4ff6c9edf720fa9d290f47c2 Mon Sep 17 00:00:00 2001 From: Tannin Date: Wed, 16 Oct 2013 19:32:59 +0200 Subject: - nmm importer now also transfers category, endorsement state and lastest version information - nmm importer should now always determine the correct nexus id - nmm importer will now correctly restore overwritten files for imported mods --- src/modinfo.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/modinfo.h') diff --git a/src/modinfo.h b/src/modinfo.h index 3b83d207..e408e812 100644 --- a/src/modinfo.h +++ b/src/modinfo.h @@ -267,6 +267,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 @@ -605,6 +612,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; } -- cgit v1.3.1