diff transform/TransformFactory.h @ 460:93fb1ebff76b

* Add persistent cache file support to FileSource (e.g. for RDF descriptions) * Query RDF plugin data in a background thread on startup
author Chris Cannam
date Fri, 17 Oct 2008 13:32:55 +0000
parents ef14acd6d102
children 9525c9d7e54d
line wrap: on
line diff
--- a/transform/TransformFactory.h	Thu Oct 16 13:38:33 2008 +0000
+++ b/transform/TransformFactory.h	Fri Oct 17 13:32:55 2008 +0000
@@ -24,6 +24,8 @@
 
 #include <QObject>
 #include <QStringList>
+#include <QThread>
+#include <QMutex>
 
 #include <map>
 #include <set>
@@ -192,6 +194,21 @@
 
     Vamp::PluginBase *instantiateDefaultPluginFor(TransformId id, size_t rate);
 
+    QMutex m_transformsMutex;
+    QMutex m_uninstalledTransformsMutex;
+
+    class UninstalledTransformsPopulateThread : public QThread
+    {
+    public:
+        UninstalledTransformsPopulateThread(TransformFactory *factory) :
+            m_factory(factory) {
+        }
+        virtual void run() {
+            m_factory->populateUninstalledTransforms();
+        }
+        TransformFactory *m_factory;
+    };
+
     static TransformFactory *m_instance;
 };