diff transform/TransformFactory.cpp @ 1166:4607603c46d0

Show warning to the user when plugin population has problems
author Chris Cannam
date Tue, 19 Jan 2016 12:32:30 +0000
parents 205250c5d2a2
children 6877f4200912
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)
 {