diff options
Diffstat (limited to 'src/modinfo.h')
| -rw-r--r-- | src/modinfo.h | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/modinfo.h b/src/modinfo.h index f582cc32..b3e75bc4 100644 --- a/src/modinfo.h +++ b/src/modinfo.h @@ -702,7 +702,7 @@ public: /** * @return true if this mod is considered "valid", that is: it contains data used by the game **/ - virtual bool isValid() const { return m_Valid; } + virtual bool isValid() const = 0; /** * @return true if the file has been endorsed on nexus @@ -715,11 +715,6 @@ public: virtual ETrackedState trackedState() const { return TRACKED_FALSE; } /** - * @brief updates the valid-flag for this mod - */ - void testValid(); - - /** * @brief updates the mod to flag it as converted in order to ignore the alternate game warning */ virtual void markConverted(bool) {} @@ -801,6 +796,13 @@ public: **/ QUrl parseCustomURL() const; +public slots: + + /** + * @brief Notify this mod that the content of the disk may have changed. + */ + virtual void diskContentModified() = 0; + signals: /** @@ -817,13 +819,6 @@ protected: static void updateIndices(); static bool ByName(const ModInfo::Ptr &LHS, const ModInfo::Ptr &RHS); - /** - * @brief check if the content of this mod is valid. - * - * @return true if the content is valid, false otherwize. - **/ - virtual bool doTestValid() const = 0; - private: static void createFromOverwrite(PluginContainer *pluginContainer, @@ -848,8 +843,6 @@ private: static std::map<std::pair<QString, int>, std::vector<unsigned int> > s_ModsByModID; static int s_NextID; - bool m_Valid; - }; |
