MuseScore  3.4
Music composition and notation
extension.h
Go to the documentation of this file.
1 //=============================================================================
2 // MusE Score
3 // Linux Music Score Editor
4 //
5 // Copyright (C) 2018 Werner Schweer and others
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License version 2.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 //=============================================================================
19 
20 #ifndef __EXTENSION_H__
21 #define __EXTENSION_H__
22 
23 namespace Ms {
24 
25 //---------------------------------------------------------
26 // Extension
27 //---------------------------------------------------------
28 
29 class Extension {
30  public:
31  Extension() {}
32  static constexpr const char* workspacesDir = "workspaces";
33  static constexpr const char* sfzsDir = "sfzs";
34  static constexpr const char* soundfontsDir = "soundfonts";
35  static constexpr const char* templatesDir = "templates";
36  static constexpr const char* instrumentsDir = "instruments";
37 
38  static QStringList getDirectoriesByType(const char* type);
39  static bool isInstalled(QString extensionId);
40  static QString getLatestVersion(QString extensionId);
41  };
42 
43 
44 } // namespace Ms
45 #endif
46 
static QString getLatestVersion(QString extensionId)
Definition: extension.cpp:61
static bool isInstalled(QString extensionId)
Definition: extension.cpp:51
Definition: aeolus.cpp:26
Definition: extension.h:29
static constexpr const char * sfzsDir
Definition: extension.h:33
static constexpr const char * workspacesDir
Definition: extension.h:32
static constexpr const char * templatesDir
Definition: extension.h:35
static constexpr const char * instrumentsDir
Definition: extension.h:36
static constexpr const char * soundfontsDir
Definition: extension.h:34
Extension()
Definition: extension.h:31
static QStringList getDirectoriesByType(const char *type)
Definition: extension.cpp:30