From 849a0a0ef40c9fa1feb15b880aa52fccdd84f234 Mon Sep 17 00:00:00 2001 From: Tannin Date: Fri, 5 Jul 2013 14:34:46 +0200 Subject: bugfix: nxmhandler in headless calls didn't save changes --- src/modinfo.h | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) (limited to 'src/modinfo.h') diff --git a/src/modinfo.h b/src/modinfo.h index a261296b..05e26590 100644 --- a/src/modinfo.h +++ b/src/modinfo.h @@ -358,15 +358,6 @@ public: */ virtual QString notes() const = 0; - /** - * @brief return the list of files on nexus related to this mod in the form of iterators - * @note this is valid only after querying the files - * @param begin iterator to the first file - * @param end iterator to one past the last file - */ - virtual void getNexusFiles(QList::const_iterator &begin, - QList::const_iterator &end) = 0; - /** * @return nexus description of the mod (html) */ @@ -402,7 +393,7 @@ public: * @brief sets the new primary category of the mod * @param categoryID the category to set */ - void setPrimaryCategory(int categoryID) { m_PrimaryCategory = categoryID; } + virtual void setPrimaryCategory(int categoryID) { m_PrimaryCategory = categoryID; } /** * @return true if this mod is considered "valid", that is: it contains data used by the game @@ -572,6 +563,12 @@ public: */ virtual void setNexusDescription(const QString &description); + /** + * @brief sets the new primary category of the mod + * @param categoryID the category to set + */ + virtual void setPrimaryCategory(int categoryID) { m_PrimaryCategory = categoryID; m_MetaInfoChanged = true; } + /** * update the endorsement state for the mod. This only changes the * buffered state, it does not sync with Nexus @@ -672,14 +669,6 @@ public: */ virtual QString notes() const; - /** - * @brief return the list of files on nexus related to this mod in the form of iterators - * @note this is valid only after querying the files - * @param begin iterator to the first file - * @param end iterator to one past the last file - */ - virtual void getNexusFiles(QList::const_iterator &begin, QList::const_iterator &end); - /** * @return nexus description of the mod (html) */ @@ -713,7 +702,6 @@ private: private slots: void nxmDescriptionAvailable(int modID, QVariant userData, QVariant resultData); - void nxmFilesAvailable(int, QVariant, const QList &resultData); void nxmEndorsementToggled(int, QVariant userData, QVariant resultData); void nxmRequestFailed(int modID, QVariant userData, const QString &errorMessage); @@ -740,7 +728,6 @@ private: QString m_InstallationFile; QString m_Notes; QString m_NexusDescription; - QList m_NexusFileInfos; QDateTime m_LastNexusQuery; @@ -820,8 +807,6 @@ public: virtual int getHighlight() const; virtual QString getDescription() const; virtual QDateTime getLastNexusQuery() const { return QDateTime(); } - virtual void getNexusFiles(QList::const_iterator&, - QList::const_iterator&) {} virtual QString getNexusDescription() const { return QString(); } private: -- cgit v1.3.1