comparison rdf/PluginRDFIndexer.cpp @ 477:e0784311a103

* Start thread to populate uninstalled transforms only on request (so runner doesn't have to have it)
author Chris Cannam
date Tue, 11 Nov 2008 09:41:45 +0000
parents acddcc3cca36
children 3ffce691c9bf
comparison
equal deleted inserted replaced
476:acddcc3cca36 477:e0784311a103
50 return m_instance; 50 return m_instance;
51 } 51 }
52 52
53 PluginRDFIndexer::PluginRDFIndexer() 53 PluginRDFIndexer::PluginRDFIndexer()
54 { 54 {
55 indexInstalledURLs();
56 }
57
58 PluginRDFIndexer::~PluginRDFIndexer()
59 {
60 QMutexLocker locker(&m_mutex);
61 }
62
63 void
64 PluginRDFIndexer::indexInstalledURLs()
65 {
55 vector<string> paths = PluginHostAdapter::getPluginPath(); 66 vector<string> paths = PluginHostAdapter::getPluginPath();
56 67
57 QStringList filters; 68 QStringList filters;
58 filters << "*.n3"; 69 filters << "*.n3";
59 filters << "*.N3"; 70 filters << "*.N3";
96 } 107 }
97 } 108 }
98 } 109 }
99 } 110 }
100 111
101 PluginRDFIndexer::~PluginRDFIndexer()
102 {
103 QMutexLocker locker(&m_mutex);
104 }
105
106 bool 112 bool
107 PluginRDFIndexer::indexConfiguredURLs() 113 PluginRDFIndexer::indexConfiguredURLs()
108 { 114 {
109 std::cerr << "PluginRDFIndexer::indexConfiguredURLs" << std::endl; 115 std::cerr << "PluginRDFIndexer::indexConfiguredURLs" << std::endl;
110 116