PluginIdentifier.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 
8  This program is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 2 of the
11  License, or (at your option) any later version. See the file
12  COPYING included with this distribution for more information.
13 */
14 
15 /*
16  This is a modified version of a source file from the
17  Rosegarden MIDI and audio sequencer and notation editor.
18  This file copyright 2000-2006 Chris Cannam and QMUL.
19 */
20 
21 #ifndef SV_PLUGIN_IDENTIFIER_H
22 #define SV_PLUGIN_IDENTIFIER_H
23 
24 #include <QString>
25 
26 
27 // A plugin identifier is simply a string; this class provides methods
28 // to parse it into its constituent bits (plugin type, DLL path and label).
29 
31 
32 public:
33 
34  static QString createIdentifier(QString type, QString soName, QString label);
35 
36  static QString canonicalise(QString identifier);
37 
38  static void parseIdentifier(QString identifier,
39  QString &type, QString &soName, QString &label);
40 
41  static bool areIdentifiersSimilar(QString id1, QString id2);
42 
43  // Fake soName for use with plugins that are actually compiled in
44  static QString BUILTIN_PLUGIN_SONAME;
45 
46  // Not strictly related to identifiers
48 };
49 
50 #endif
static QString canonicalise(QString identifier)
static QString RESERVED_PROJECT_DIRECTORY_KEY
static void parseIdentifier(QString identifier, QString &type, QString &soName, QString &label)
static QString createIdentifier(QString type, QString soName, QString label)
static bool areIdentifiersSimilar(QString id1, QString id2)
static QString BUILTIN_PLUGIN_SONAME