comparison plugin/PluginIdentifier.h @ 0:da6937383da8

initial import
author Chris Cannam
date Tue, 10 Jan 2006 16:33:16 +0000
parents
children d86891498eef
comparison
equal deleted inserted replaced
-1:000000000000 0:da6937383da8
1 /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 A waveform viewer and audio annotation editor.
5 Chris Cannam, Queen Mary University of London, 2005
6
7 This is experimental software. Not for distribution.
8 */
9
10 /*
11 This is a modified version of a source file from the
12 Rosegarden MIDI and audio sequencer and notation editor.
13 This file copyright 2000-2005 Chris Cannam.
14 */
15
16 #ifndef _PLUGIN_IDENTIFIER_H_
17 #define _PLUGIN_IDENTIFIER_H_
18
19 #include <QString>
20
21
22 // A plugin identifier is simply a string; this class provides methods
23 // to parse it into its constituent bits (plugin type, DLL path and label).
24
25 class PluginIdentifier {
26
27 public:
28
29 static QString createIdentifier(QString type, QString soName, QString label);
30
31 static void parseIdentifier(QString identifier,
32 QString &type, QString &soName, QString &label);
33
34 static bool areIdentifiersSimilar(QString id1, QString id2);
35
36 // Fake soName for use with plugins that are actually compiled in
37 static QString BUILTIN_PLUGIN_SONAME;
38
39 // Not strictly related to identifiers
40 static QString RESERVED_PROJECT_DIRECTORY_KEY;
41 };
42
43 #endif