comparison plugin/PluginScan.h @ 1180:98664afd518b pluginscan

Update for adjusted checker layout, and tidy
author Chris Cannam
date Thu, 14 Apr 2016 16:52:55 +0100
parents 6b1af0f05f06
children 2f628dc9a0b0
comparison
equal deleted inserted replaced
1179:6b1af0f05f06 1180:98664afd518b
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 19
20 #include "../vamp-plugin-load-checker/knownplugins.h" //!!! 20 class KnownPlugins;
21 21
22 class PluginScan : public PluginCandidates::LogCallback 22 class PluginScan
23 { 23 {
24 public: 24 public:
25 static PluginScan *getInstance(); 25 static PluginScan *getInstance();
26 26
27 void scan(); 27 void scan();
28 28
29 bool scanSucceeded() const; 29 bool scanSucceeded() const;
30 30
31 QStringList getCandidateVampLibraries() const; 31 enum PluginType {
32 QStringList getCandidateLADSPALibraries() const; 32 VampPlugin,
33 QStringList getCandidateDSSILibraries() const; 33 LADSPAPlugin,
34 QStringList getCandidateLibrariesFor(KnownPlugins::PluginType) const; 34 DSSIPlugin
35 };
36 QStringList getCandidateLibrariesFor(PluginType) const;
35 37
36 QString getStartupFailureReport() const; 38 QString getStartupFailureReport() const;
37
38 protected:
39 void log(std::string);
40 39
41 private: 40 private:
42 PluginScan(); 41 PluginScan();
43 ~PluginScan(); 42 ~PluginScan();
44 KnownPlugins *m_kp; 43 KnownPlugins *m_kp;
45 bool m_succeeded; 44 bool m_succeeded;
45
46 class Logger;
47 Logger *m_logger;
46 }; 48 };
47 49
48 #endif 50 #endif