Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add form and header versions to IPluginList #165

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/ipluginlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,22 @@ class IPluginList
*/
virtual bool hasNoRecords(const QString& name) const = 0;

/**
* @brief retrieve the form version of a plugin
* @param name filename of the plugin (without path but with file extension)
* @return the form version of the plugin, 0 if it doesn't have a form version or -1
* if the plugin doesn't exist
* @note Oblivion-style plugin headers don't have a form version
*/
virtual int formVersion(const QString& name) const = 0;

/**
* @brief retrieve the header version of a plugin
* @param name filename of the plugin (without path but with file extension)
* @return the header version of the plugin or -1 if the plugin doesn't exist
*/
virtual float headerVersion(const QString& name) const = 0;

/**
* @brief retrieve the author of a plugin
* @param name filename of the plugin (without path but with file extension)
Expand Down
Loading