Chris@1178: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@1178: Chris@1178: /* Chris@1178: Sonic Visualiser Chris@1178: An audio file viewer and annotation editor. Chris@1178: Centre for Digital Music, Queen Mary, University of London. Chris@1178: Chris@1178: This program is free software; you can redistribute it and/or Chris@1178: modify it under the terms of the GNU General Public License as Chris@1178: published by the Free Software Foundation; either version 2 of the Chris@1178: License, or (at your option) any later version. See the file Chris@1178: COPYING included with this distribution for more information. Chris@1178: */ Chris@1178: Chris@1178: #ifndef PLUGIN_SCAN_H Chris@1178: #define PLUGIN_SCAN_H Chris@1178: Chris@1178: #include Chris@1178: Chris@1180: class KnownPlugins; Chris@1178: Chris@1180: class PluginScan Chris@1178: { Chris@1178: public: Chris@1178: static PluginScan *getInstance(); Chris@1178: Chris@1181: void scan(QString helperExecutablePath); Chris@1179: Chris@1179: bool scanSucceeded() const; Chris@1178: Chris@1180: enum PluginType { Chris@1180: VampPlugin, Chris@1180: LADSPAPlugin, Chris@1180: DSSIPlugin Chris@1180: }; Chris@1180: QStringList getCandidateLibrariesFor(PluginType) const; Chris@1178: Chris@1178: QString getStartupFailureReport() const; Chris@1178: Chris@1178: private: Chris@1178: PluginScan(); Chris@1178: ~PluginScan(); Chris@1178: KnownPlugins *m_kp; Chris@1179: bool m_succeeded; Chris@1180: Chris@1180: class Logger; Chris@1180: Logger *m_logger; Chris@1178: }; Chris@1178: Chris@1178: #endif