diff transform/TransformFactory.cpp @ 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 26cf6d5251ec
children ea636412f9fe
line wrap: on
line diff
--- a/transform/TransformFactory.cpp	Mon Jan 11 14:18:56 2016 +0000
+++ b/transform/TransformFactory.cpp	Tue Jan 19 12:32:30 2016 +0000
@@ -399,6 +399,18 @@
     m_transformsPopulated = true;
 }
 
+QString
+TransformFactory::getPluginPopulationWarning()
+{
+    FeatureExtractionPluginFactory *vfactory =
+        FeatureExtractionPluginFactory::instance("vamp");
+    QString warningMessage;
+    if (vfactory) {
+        warningMessage = vfactory->getPluginPopulationWarning();
+    }
+    return warningMessage;
+}
+
 void
 TransformFactory::populateFeatureExtractionPlugins(TransformDescriptionMap &transforms)
 {