From 5a4b6e70fd815c9052ff71a4244bdeb707e92ba1 Mon Sep 17 00:00:00 2001 From: Tannin Date: Mon, 2 Jun 2014 19:15:23 +0200 Subject: - plugin-list now displays loot messages --- src/pluginlist.h | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'src/pluginlist.h') diff --git a/src/pluginlist.h b/src/pluginlist.h index bb988281..d041172f 100644 --- a/src/pluginlist.h +++ b/src/pluginlist.h @@ -122,6 +122,24 @@ public: **/ bool isEnabled(const QString &name); + /** + * @brief clear all additional information we stored on plugins + */ + void clearAdditionalInformation(); + + /** + * @brief reset additional information on a mod + * @param name name of the plugin to clear the information of + */ + void clearInformation(const QString &name); + + /** + * @brief add additional information on a mod (i.e. from loot) + * @param name name of the plugin to add information about + * @param message the message to add to the plugin + */ + void addInformation(const QString &name, const QString &message); + /** * @brief test if a plugin is enabled * @@ -251,9 +269,8 @@ private: mutable std::set m_MasterUnset; }; - struct BossInfo { - QStringList m_BOSSMessages; - bool m_BOSSUnrecognized; + struct AdditionalInfo { + QStringList m_Messages; }; friend bool ByName(const ESPInfo& LHS, const ESPInfo& RHS); @@ -291,7 +308,7 @@ private: std::map m_ESPLoadOrder; std::map m_LockedOrder; - std::map m_BossInfo; // maps esp names to boss information + std::map m_AdditionalInfo; // maps esp names to boss information QString m_CurrentProfile; QFontMetrics m_FontMetrics; -- cgit v1.3.1