summaryrefslogtreecommitdiff
path: root/src/pluginlist.h
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-06-02 19:15:23 +0200
committerTannin <devnull@localhost>2014-06-02 19:15:23 +0200
commit5a4b6e70fd815c9052ff71a4244bdeb707e92ba1 (patch)
treedf95709e24d2d417e463f59d9e6acf21fea35780 /src/pluginlist.h
parent18574c2ba89737b2140236bde479e87616470270 (diff)
- plugin-list now displays loot messages
Diffstat (limited to 'src/pluginlist.h')
-rw-r--r--src/pluginlist.h25
1 files changed, 21 insertions, 4 deletions
diff --git a/src/pluginlist.h b/src/pluginlist.h
index bb988281..d041172f 100644
--- a/src/pluginlist.h
+++ b/src/pluginlist.h
@@ -123,6 +123,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
*
* @param index index of the plugin to look up
@@ -251,9 +269,8 @@ private:
mutable std::set<QString> 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<QString, int> m_ESPLoadOrder;
std::map<QString, int> m_LockedOrder;
- std::map<QString, BossInfo> m_BossInfo; // maps esp names to boss information
+ std::map<QString, AdditionalInfo> m_AdditionalInfo; // maps esp names to boss information
QString m_CurrentProfile;
QFontMetrics m_FontMetrics;