Mercurial > hg > svcore
diff plugin/FeatureExtractionPluginFactory.h @ 1149:afed8be79032 3.0-integration
Show warning to the user when plugin population has problems
author | Chris Cannam |
---|---|
date | Tue, 19 Jan 2016 12:32:30 +0000 |
parents | 9cdb4206aceb |
children | 6b1af0f05f06 |
line wrap: on
line diff
--- a/plugin/FeatureExtractionPluginFactory.h Mon Jan 11 14:18:56 2016 +0000 +++ b/plugin/FeatureExtractionPluginFactory.h Tue Jan 19 12:32:30 2016 +0000 @@ -38,6 +38,14 @@ virtual std::vector<QString> getPluginIdentifiers(); + /** + * Return any error message arising from the initial plugin + * scan. The return value will either be an empty string (nothing + * to report) or an HTML string suitable for dropping into a + * dialog and showing the user. + */ + virtual QString getPluginPopulationWarning() { return m_pluginScanError; } + virtual QString findPluginFile(QString soname, QString inDir = ""); // We don't set blockSize or channels on this -- they're @@ -59,9 +67,12 @@ std::map<Vamp::Plugin *, void *> m_handleMap; std::vector<QString> getPluginCandidateFiles(); - std::vector<QString> winnowPluginCandidates(std::vector<QString> candidates); + std::vector<QString> winnowPluginCandidates(std::vector<QString> candidates, + QString &warningMessage); void generateTaxonomy(); + + QString m_pluginScanError; }; #endif