diff --git a/src/pluginlist.cpp b/src/pluginlist.cpp index 94aee98d..9a49b828 100644 --- a/src/pluginlist.cpp +++ b/src/pluginlist.cpp @@ -1028,6 +1028,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 89c05141..0588b4d7 100644 --- a/src/pluginlist.h +++ b/src/pluginlist.h @@ -244,6 +244,9 @@ class PluginList : public QAbstractItemModel bool isLightFlagged(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 8b826a81..034a1429 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 6865004a..e289ced8 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;