svcore  1.9
PluginRDFDescription.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 2008 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 _PLUGIN_RDF_DESCRIPTION_H_
17 #define _PLUGIN_RDF_DESCRIPTION_H_
18 
19 #include <QString>
20 #include <QStringList>
21 #include <map>
22 
23 #include "base/Debug.h"
24 
26 {
27 public:
29  PluginRDFDescription(QString pluginId);
31 
33  {
38  };
39 
40  bool haveDescription() const;
41 
42  QString getPluginName() const;
43  QString getPluginDescription() const;
44  QString getPluginMaker() const;
45  QString getPluginInfoURL() const;
46 
47  QStringList getOutputIds() const;
48  QString getOutputName(QString outputId) const;
49  OutputDisposition getOutputDisposition(QString outputId) const;
50  QString getOutputEventTypeURI(QString outputId) const;
51  QString getOutputFeatureAttributeURI(QString outputId) const;
52  QString getOutputSignalTypeURI(QString outputId) const;
53  QString getOutputUnit(QString outputId) const;
54  QString getOutputUri(QString outputId) const;
55 
56 protected:
57  typedef std::map<QString, OutputDisposition> OutputDispositionMap;
58  typedef std::map<QString, QString> OutputStringMap;
59 
60  QString m_pluginId;
61  QString m_pluginUri;
63  QString m_pluginName;
65  QString m_pluginMaker;
66  QString m_pluginInfoURL;
74  bool index();
75  bool indexMetadata();
76  bool indexOutputs();
77 };
78 
79 #endif
80 
QString getOutputFeatureAttributeURI(QString outputId) const
OutputStringMap m_outputSignalTypeURIMap
QString getPluginDescription() const
QString getPluginInfoURL() const
OutputStringMap m_outputNames
OutputDisposition getOutputDisposition(QString outputId) const
QString getOutputSignalTypeURI(QString outputId) const
QStringList getOutputIds() const
std::map< QString, OutputDisposition > OutputDispositionMap
QString getOutputUnit(QString outputId) const
QString getOutputEventTypeURI(QString outputId) const
OutputDispositionMap m_outputDispositions
QString getOutputUri(QString outputId) const
QString getOutputName(QString outputId) const
OutputStringMap m_outputEventTypeURIMap
OutputStringMap m_outputUnitMap
QString getPluginMaker() const
std::map< QString, QString > OutputStringMap
OutputStringMap m_outputFeatureAttributeURIMap
OutputStringMap m_outputUriMap