diff --git a/src/pluginlist.cpp b/src/pluginlist.cpp index a1f048ec1..be2168827 100644 --- a/src/pluginlist.cpp +++ b/src/pluginlist.cpp @@ -1080,6 +1080,26 @@ bool PluginList::hasNoRecords(const QString& name) const } } +QString PluginList::author(const QString& name) const +{ + auto iter = m_ESPsByName.find(name); + if (iter == m_ESPsByName.end()) { + return QString(); + } else { + return m_ESPs[iter->second].author; + } +} + +QString PluginList::description(const QString& name) const +{ + auto iter = m_ESPsByName.find(name); + if (iter == m_ESPsByName.end()) { + return QString(); + } else { + return m_ESPs[iter->second].description; + } +} + boost::signals2::connection PluginList::onPluginStateChanged( const std::function&)>& func) { diff --git a/src/pluginlist.h b/src/pluginlist.h index f648387cc..41a7d6343 100644 --- a/src/pluginlist.h +++ b/src/pluginlist.h @@ -245,6 +245,9 @@ class PluginList : public QAbstractItemModel bool isBlueprintFlagged(const QString& name) const; bool hasNoRecords(const QString& name) const; + QString author(const QString& name) const; + QString description(const QString& name) const; + boost::signals2::connection onRefreshed(const std::function& callback); boost::signals2::connection onPluginMoved(const std::function& func); diff --git a/src/pluginlistproxy.cpp b/src/pluginlistproxy.cpp index 8b826a818..034a14290 100644 --- a/src/pluginlistproxy.cpp +++ b/src/pluginlistproxy.cpp @@ -128,3 +128,13 @@ bool PluginListProxy::hasNoRecords(const QString& name) const { return m_Proxied->hasNoRecords(name); } + +QString PluginListProxy::author(const QString& name) const +{ + return m_Proxied->author(name); +} + +QString PluginListProxy::description(const QString& name) const +{ + return m_Proxied->description(name); +} diff --git a/src/pluginlistproxy.h b/src/pluginlistproxy.h index 6865004a8..e289ced89 100644 --- a/src/pluginlistproxy.h +++ b/src/pluginlistproxy.h @@ -36,6 +36,9 @@ class PluginListProxy : public MOBase::IPluginList bool isLightFlagged(const QString& name) const override; bool hasNoRecords(const QString& name) const override; + QString author(const QString& name) const override; + QString description(const QString& name) const override; + private: friend class OrganizerProxy;