diff plugin/PiperVampPluginFactory.h @ 1240:42a4b058f8ba 3.0-integration

Support for multiple servers
author Chris Cannam
date Tue, 01 Nov 2016 12:09:05 +0000
parents 5d886b7b4029
children 75aefcc9f07d
line wrap: on
line diff
--- a/plugin/PiperVampPluginFactory.h	Fri Oct 28 15:20:58 2016 +0100
+++ b/plugin/PiperVampPluginFactory.h	Tue Nov 01 12:09:05 2016 +0000
@@ -49,10 +49,15 @@
 
 protected:
     QMutex m_mutex;
-    std::string m_serverName;
+    QStringList m_servers; // executable file paths
+    std::map<QString, QString> m_origins; // plugin identifier -> server path
     std::map<QString, piper_vamp::PluginStaticData> m_pluginData; // identifier -> data
     std::map<QString, QString> m_taxonomy; // identifier -> category string
+
     void populate(QString &errorMessage);
+    void populateFrom(QString server, QString &errorMessage);
+
+    static QStringList getServerSuffixes();
 };
 
 #endif