diff options
| author | Tannin <devnull@localhost> | 2014-07-15 20:45:29 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-07-15 20:45:29 +0200 |
| commit | 0a152ceadfc90650359b15dc448751f702e1070c (patch) | |
| tree | 02e468fb58330d25fd765974e48ab681bf360cab /src/modinfo.h | |
| parent | d412060d59b1597ae1d11d793662610e90863fc9 (diff) | |
| parent | 5718af351034c1936a91a3782651733dfecdc4e5 (diff) | |
Merge
Diffstat (limited to 'src/modinfo.h')
| -rw-r--r-- | src/modinfo.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/modinfo.h b/src/modinfo.h index ef647eab..cacddadf 100644 --- a/src/modinfo.h +++ b/src/modinfo.h @@ -472,6 +472,18 @@ public: */ virtual void saveMeta() {} + /** + * @brief retrieve list of mods (as mod index) that are overwritten by this one. Updates may be delayed + * @return + */ + virtual std::set<unsigned int> getModOverwrite() { return std::set<unsigned int>(); } + + /** + * @brief retrieve list of mods (as mod index) that overwrite this one. Updates may be delayed + * @return + */ + virtual std::set<unsigned int> getModOverwritten() { return std::set<unsigned int>(); } + signals: /** @@ -525,6 +537,11 @@ public: * @brief clear all caches held for this mod */ virtual void clearCaches(); + + virtual std::set<unsigned int> getModOverwrite() { return m_OverwriteList; } + + virtual std::set<unsigned int> getModOverwritten() { return m_OverwrittenList; } + private: enum EConflictType { @@ -554,6 +571,9 @@ private: mutable EConflictType m_CurrentConflictState; mutable QTime m_LastConflictCheck; + mutable std::set<unsigned int> m_OverwriteList; // indices of mods overritten by this mod + mutable std::set<unsigned int> m_OverwrittenList; // indices of mods overwriting this mod + }; |
