diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-05-24 13:27:40 +0200 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-05-24 13:27:40 +0200 |
| commit | 9fb639a00e1a809a9ea9b5e68777ec46f534761c (patch) | |
| tree | 9f72cebe6ba9825a0330fefe60a0b55de2392a2e /src/modinfo.h | |
| parent | 08ae9db2fd2a07acb2433275fc84c2ca47267a92 (diff) | |
Update ModInfo to use a single file tree for all content-related operations.
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; - }; |
