From fb713ae896dc7e57ec413f01194747187f3620fc Mon Sep 17 00:00:00 2001 From: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> Date: Sat, 28 Sep 2024 19:58:20 +0200 Subject: [PATCH] Add author and description methods to IPluginList (#161) --- src/ipluginlist.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/ipluginlist.h b/src/ipluginlist.h index 1f842afb..246209ba 100644 --- a/src/ipluginlist.h +++ b/src/ipluginlist.h @@ -220,6 +220,21 @@ class IPluginList * exist. */ virtual bool hasNoRecords(const QString& name) const = 0; + + /** + * @brief retrieve the author of a plugin + * @param name filename of the plugin (without path but with file extension) + * @return the author of the plugin or an empty string if the plugin doesn't exist + */ + virtual QString author(const QString& name) const = 0; + + /** + * @brief retrieve the description of a plugin + * @param name filename of the plugin (without path but with file extension) + * @return the description of the plugin or an empty string if the plugin doesn't + * exist + */ + virtual QString description(const QString& name) const = 0; }; } // namespace MOBase