HelperExecPath.h
Go to the documentation of this file.
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 
3 /*
4  Sonic Visualiser
5  An audio file viewer and annotation editor.
6  Centre for Digital Music, Queen Mary, University of London.
7  This file copyright 2006-2016 Chris Cannam and QMUL.
8 
9  This program is free software; you can redistribute it and/or
10  modify it under the terms of the GNU General Public License as
11  published by the Free Software Foundation; either version 2 of the
12  License, or (at your option) any later version. See the file
13  COPYING included with this distribution for more information.
14 */
15 
16 #ifndef SV_HELPER_EXEC_PATH_H
17 #define SV_HELPER_EXEC_PATH_H
18 
19 #include <QStringList>
20 
34 {
35 public:
36  enum SearchType {
39  };
40 
41  HelperExecPath(SearchType type) : m_type(type) { }
42 
49  QString getHelperExecutable(QString basename);
50 
51  struct HelperExec {
52  QString executable;
53  QString tag;
54  };
55 
64  QList<HelperExec> getHelperExecutables(QString basename);
65 
70  QStringList getHelperDirPaths();
71 
76  QStringList getHelperCandidatePaths(QString basename);
77 
78 private:
80  QList<HelperExec> search(QString, QStringList &);
81  QStringList getTags();
82 };
83 
84 #endif
QString getHelperExecutable(QString basename)
Find a helper executable with the given base name in the bundle directory or installation location...
QStringList getHelperDirPaths()
Return the list of directories searched for helper executables.
QStringList getTags()
QList< HelperExec > search(QString, QStringList &)
Class to find helper executables that have been installed alongside the application.
QStringList getHelperCandidatePaths(QString basename)
Return the list of executable paths examined in the search for the helper executable with the given b...
QList< HelperExec > getHelperExecutables(QString basename)
Find all helper executables with the given base name in the bundle directory or installation location...
SearchType m_type
HelperExecPath(SearchType type)