Skip to content

Commit

Permalink
Add author and description methods to IPluginList (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanFeenstra authored Sep 28, 2024
1 parent 44201d7 commit fb713ae
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/ipluginlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb713ae

Please sign in to comment.