annotate plugin/PluginScan.h @ 1202:3b84f9bd0048 3.0-integration

Merge work on unified spectrogram and colour 3d plot caching renderer
author Chris Cannam
date Fri, 05 Aug 2016 15:05:02 +0100
parents 2f628dc9a0b0
children c6bdf247016a
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@1180 20 class KnownPlugins;
Chris@1178 21
Chris@1180 22 class PluginScan
Chris@1178 23 {
Chris@1178 24 public:
Chris@1178 25 static PluginScan *getInstance();
Chris@1178 26
Chris@1181 27 void scan(QString helperExecutablePath);
Chris@1179 28
Chris@1179 29 bool scanSucceeded() const;
Chris@1178 30
Chris@1180 31 enum PluginType {
Chris@1180 32 VampPlugin,
Chris@1180 33 LADSPAPlugin,
Chris@1180 34 DSSIPlugin
Chris@1180 35 };
Chris@1180 36 QStringList getCandidateLibrariesFor(PluginType) const;
Chris@1178 37
Chris@1178 38 QString getStartupFailureReport() const;
Chris@1178 39
Chris@1178 40 private:
Chris@1178 41 PluginScan();
Chris@1178 42 ~PluginScan();
Chris@1178 43 KnownPlugins *m_kp;
Chris@1179 44 bool m_succeeded;
Chris@1180 45
Chris@1180 46 class Logger;
Chris@1180 47 Logger *m_logger;
Chris@1178 48 };
Chris@1178 49
Chris@1178 50 #endif