comparison 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
comparison
equal deleted inserted replaced
1148:9cdb4206aceb 1149:afed8be79032
36 36
37 virtual std::vector<QString> getPluginPath(); 37 virtual std::vector<QString> getPluginPath();
38 38
39 virtual std::vector<QString> getPluginIdentifiers(); 39 virtual std::vector<QString> getPluginIdentifiers();
40 40
41 /**
42 * Return any error message arising from the initial plugin
43 * scan. The return value will either be an empty string (nothing
44 * to report) or an HTML string suitable for dropping into a
45 * dialog and showing the user.
46 */
47 virtual QString getPluginPopulationWarning() { return m_pluginScanError; }
48
41 virtual QString findPluginFile(QString soname, QString inDir = ""); 49 virtual QString findPluginFile(QString soname, QString inDir = "");
42 50
43 // We don't set blockSize or channels on this -- they're 51 // We don't set blockSize or channels on this -- they're
44 // negotiated and handled via initialize() on the plugin 52 // negotiated and handled via initialize() on the plugin
45 virtual Vamp::Plugin *instantiatePlugin(QString identifier, 53 virtual Vamp::Plugin *instantiatePlugin(QString identifier,
57 friend class PluginDeletionNotifyAdapter; 65 friend class PluginDeletionNotifyAdapter;
58 void pluginDeleted(Vamp::Plugin *); 66 void pluginDeleted(Vamp::Plugin *);
59 std::map<Vamp::Plugin *, void *> m_handleMap; 67 std::map<Vamp::Plugin *, void *> m_handleMap;
60 68
61 std::vector<QString> getPluginCandidateFiles(); 69 std::vector<QString> getPluginCandidateFiles();
62 std::vector<QString> winnowPluginCandidates(std::vector<QString> candidates); 70 std::vector<QString> winnowPluginCandidates(std::vector<QString> candidates,
71 QString &warningMessage);
63 72
64 void generateTaxonomy(); 73 void generateTaxonomy();
74
75 QString m_pluginScanError;
65 }; 76 };
66 77
67 #endif 78 #endif