comparison plugin/PluginScan.h @ 1241:c6bdf247016a 3.0-integration

Support multiple plugin checker helpers, as for multiple piper servers
author Chris Cannam
date Tue, 01 Nov 2016 14:06:47 +0000
parents 2f628dc9a0b0
children 75aefcc9f07d
comparison
equal deleted inserted replaced
1240:42a4b058f8ba 1241:c6bdf247016a
14 14
15 #ifndef PLUGIN_SCAN_H 15 #ifndef PLUGIN_SCAN_H
16 #define PLUGIN_SCAN_H 16 #define PLUGIN_SCAN_H
17 17
18 #include <QStringList> 18 #include <QStringList>
19 #include <vector>
19 20
20 class KnownPlugins; 21 class KnownPlugins;
21 22
22 class PluginScan 23 class PluginScan
23 { 24 {
24 public: 25 public:
25 static PluginScan *getInstance(); 26 static PluginScan *getInstance();
26 27
27 void scan(QString helperExecutablePath); 28 void scan();
28 29
29 bool scanSucceeded() const; 30 bool scanSucceeded() const;
30 31
31 enum PluginType { 32 enum PluginType {
32 VampPlugin, 33 VampPlugin,
38 QString getStartupFailureReport() const; 39 QString getStartupFailureReport() const;
39 40
40 private: 41 private:
41 PluginScan(); 42 PluginScan();
42 ~PluginScan(); 43 ~PluginScan();
43 KnownPlugins *m_kp; 44
45 void clear();
46
47 std::vector<KnownPlugins *> m_kp;
44 bool m_succeeded; 48 bool m_succeeded;
45 49
46 class Logger; 50 class Logger;
47 Logger *m_logger; 51 Logger *m_logger;
48 }; 52 };