comparison rdf/PluginRDFDescription.h @ 1843:3ec563af0a4f

Retrieve download URL, download type, and "pack" information
author Chris Cannam
date Fri, 17 Apr 2020 17:45:34 +0100
parents ad5f892c0c4d
children 6f626cfdba51
comparison
equal deleted inserted replaced
1842:19fa7bf208d8 1843:3ec563af0a4f
17 #define SV_PLUGIN_RDF_DESCRIPTION_H 17 #define SV_PLUGIN_RDF_DESCRIPTION_H
18 18
19 #include <QString> 19 #include <QString>
20 #include <QStringList> 20 #include <QStringList>
21 #include <map> 21 #include <map>
22 #include <set>
22 23
23 #include "base/Debug.h" 24 #include "base/Debug.h"
24 25
25 class PluginRDFDescription 26 class PluginRDFDescription
26 { 27 {
41 42
42 QString getPluginName() const; 43 QString getPluginName() const;
43 QString getPluginDescription() const; 44 QString getPluginDescription() const;
44 QString getPluginMaker() const; 45 QString getPluginMaker() const;
45 QString getPluginInfoURL() const; 46 QString getPluginInfoURL() const;
47 QString getPluginDownloadURL() const;
46 48
49 enum DownloadType
50 {
51 DownloadSourceCode,
52 DownloadWindows,
53 DownloadMac,
54 DownloadLinux32,
55 DownloadLinux64,
56 DownloadOther
57 };
58 std::set<DownloadType> getPluginDownloadTypes() const;
59
60 struct Pack
61 {
62 QString name;
63 QString downloadURL;
64 };
65 std::map<QString, Pack> getPluginFoundInPacks() const; // uri -> pack
66
47 QStringList getOutputIds() const; 67 QStringList getOutputIds() const;
48 QString getOutputName(QString outputId) const; 68 QString getOutputName(QString outputId) const;
49 OutputDisposition getOutputDisposition(QString outputId) const; 69 OutputDisposition getOutputDisposition(QString outputId) const;
50 QString getOutputEventTypeURI(QString outputId) const; 70 QString getOutputEventTypeURI(QString outputId) const;
51 QString getOutputFeatureAttributeURI(QString outputId) const; 71 QString getOutputFeatureAttributeURI(QString outputId) const;
62 bool m_haveDescription; 82 bool m_haveDescription;
63 QString m_pluginName; 83 QString m_pluginName;
64 QString m_pluginDescription; 84 QString m_pluginDescription;
65 QString m_pluginMaker; 85 QString m_pluginMaker;
66 QString m_pluginInfoURL; 86 QString m_pluginInfoURL;
87 QString m_pluginDownloadURL;
88 std::set<DownloadType> m_pluginDownloadTypes;
89 std::map<QString, Pack> m_pluginFoundInPacks;
67 OutputStringMap m_outputNames; 90 OutputStringMap m_outputNames;
68 OutputDispositionMap m_outputDispositions; 91 OutputDispositionMap m_outputDispositions;
69 OutputStringMap m_outputEventTypeURIMap; 92 OutputStringMap m_outputEventTypeURIMap;
70 OutputStringMap m_outputFeatureAttributeURIMap; 93 OutputStringMap m_outputFeatureAttributeURIMap;
71 OutputStringMap m_outputSignalTypeURIMap; 94 OutputStringMap m_outputSignalTypeURIMap;