annotate plugin/PluginScan.h @ 1179:6b1af0f05f06 pluginscan

Make use of, and warn for, the plugin checker for all types of plugin. Haven't yet resolved the question of how to install and find it.
author Chris Cannam
date Thu, 14 Apr 2016 14:03:18 +0100
parents bf05d9259dbc
children 98664afd518b
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@1179 28
Chris@1179 29 bool scanSucceeded() const;
Chris@1178 30
Chris@1178 31 QStringList getCandidateVampLibraries() const;
Chris@1178 32 QStringList getCandidateLADSPALibraries() const;
Chris@1178 33 QStringList getCandidateDSSILibraries() const;
Chris@1179 34 QStringList getCandidateLibrariesFor(KnownPlugins::PluginType) const;
Chris@1178 35
Chris@1178 36 QString getStartupFailureReport() const;
Chris@1178 37
Chris@1178 38 protected:
Chris@1178 39 void log(std::string);
Chris@1178 40
Chris@1178 41 private:
Chris@1178 42 PluginScan();
Chris@1178 43 ~PluginScan();
Chris@1178 44 KnownPlugins *m_kp;
Chris@1179 45 bool m_succeeded;
Chris@1178 46 };
Chris@1178 47
Chris@1178 48 #endif