annotate plugin/PluginScan.h @ 1178:bf05d9259dbc pluginscan

First cut running (but not yet using output of, or recovering from errors in) the plugin checker at startup
author Chris Cannam
date Thu, 14 Apr 2016 12:12:04 +0100
parents
children 6b1af0f05f06
rev   line source
Chris@1178 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@1178 2
Chris@1178 3 /*
Chris@1178 4 Sonic Visualiser
Chris@1178 5 An audio file viewer and annotation editor.
Chris@1178 6 Centre for Digital Music, Queen Mary, University of London.
Chris@1178 7
Chris@1178 8 This program is free software; you can redistribute it and/or
Chris@1178 9 modify it under the terms of the GNU General Public License as
Chris@1178 10 published by the Free Software Foundation; either version 2 of the
Chris@1178 11 License, or (at your option) any later version. See the file
Chris@1178 12 COPYING included with this distribution for more information.
Chris@1178 13 */
Chris@1178 14
Chris@1178 15 #ifndef PLUGIN_SCAN_H
Chris@1178 16 #define PLUGIN_SCAN_H
Chris@1178 17
Chris@1178 18 #include <QStringList>
Chris@1178 19
Chris@1178 20 #include "../vamp-plugin-load-checker/knownplugins.h" //!!!
Chris@1178 21
Chris@1178 22 class PluginScan : public PluginCandidates::LogCallback
Chris@1178 23 {
Chris@1178 24 public:
Chris@1178 25 static PluginScan *getInstance();
Chris@1178 26
Chris@1178 27 void scan();
Chris@1178 28
Chris@1178 29 QStringList getCandidateVampLibraries() const;
Chris@1178 30 QStringList getCandidateLADSPALibraries() const;
Chris@1178 31 QStringList getCandidateDSSILibraries() const;
Chris@1178 32
Chris@1178 33 QString getStartupFailureReport() const;
Chris@1178 34
Chris@1178 35 protected:
Chris@1178 36 void log(std::string);
Chris@1178 37
Chris@1178 38 private:
Chris@1178 39 PluginScan();
Chris@1178 40 ~PluginScan();
Chris@1178 41 KnownPlugins *m_kp;
Chris@1178 42 };
Chris@1178 43
Chris@1178 44 #endif