Mercurial > hg > svcore
comparison rdf/PluginRDFDescription.h @ 1845:6f626cfdba51
Pull out Provider struct
author | Chris Cannam |
---|---|
date | Mon, 20 Apr 2020 18:45:47 +0100 |
parents | 3ec563af0a4f |
children |
comparison
equal
deleted
inserted
replaced
1844:5b1b03c1d8d4 | 1845:6f626cfdba51 |
---|---|
21 #include <map> | 21 #include <map> |
22 #include <set> | 22 #include <set> |
23 | 23 |
24 #include "base/Debug.h" | 24 #include "base/Debug.h" |
25 | 25 |
26 #include "plugin/Provider.h" | |
27 | |
26 class PluginRDFDescription | 28 class PluginRDFDescription |
27 { | 29 { |
28 public: | 30 public: |
29 PluginRDFDescription() : m_haveDescription(false) { } | 31 PluginRDFDescription() : m_haveDescription(false) { } |
30 PluginRDFDescription(QString pluginId); | 32 PluginRDFDescription(QString pluginId); |
31 ~PluginRDFDescription(); | 33 ~PluginRDFDescription(); |
32 | 34 |
33 enum OutputDisposition | 35 enum OutputDisposition { |
34 { | |
35 OutputDispositionUnknown, | 36 OutputDispositionUnknown, |
36 OutputSparse, | 37 OutputSparse, |
37 OutputDense, | 38 OutputDense, |
38 OutputTrackLevel | 39 OutputTrackLevel |
39 }; | 40 }; |
41 bool haveDescription() const; | 42 bool haveDescription() const; |
42 | 43 |
43 QString getPluginName() const; | 44 QString getPluginName() const; |
44 QString getPluginDescription() const; | 45 QString getPluginDescription() const; |
45 QString getPluginMaker() const; | 46 QString getPluginMaker() const; |
46 QString getPluginInfoURL() const; | 47 Provider getPluginProvider() const; |
47 QString getPluginDownloadURL() const; | |
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 | 48 |
67 QStringList getOutputIds() const; | 49 QStringList getOutputIds() const; |
68 QString getOutputName(QString outputId) const; | 50 QString getOutputName(QString outputId) const; |
69 OutputDisposition getOutputDisposition(QString outputId) const; | 51 OutputDisposition getOutputDisposition(QString outputId) const; |
70 QString getOutputEventTypeURI(QString outputId) const; | 52 QString getOutputEventTypeURI(QString outputId) const; |
81 QString m_pluginUri; | 63 QString m_pluginUri; |
82 bool m_haveDescription; | 64 bool m_haveDescription; |
83 QString m_pluginName; | 65 QString m_pluginName; |
84 QString m_pluginDescription; | 66 QString m_pluginDescription; |
85 QString m_pluginMaker; | 67 QString m_pluginMaker; |
86 QString m_pluginInfoURL; | 68 Provider m_provider; |
87 QString m_pluginDownloadURL; | |
88 std::set<DownloadType> m_pluginDownloadTypes; | |
89 std::map<QString, Pack> m_pluginFoundInPacks; | |
90 OutputStringMap m_outputNames; | 69 OutputStringMap m_outputNames; |
91 OutputDispositionMap m_outputDispositions; | 70 OutputDispositionMap m_outputDispositions; |
92 OutputStringMap m_outputEventTypeURIMap; | 71 OutputStringMap m_outputEventTypeURIMap; |
93 OutputStringMap m_outputFeatureAttributeURIMap; | 72 OutputStringMap m_outputFeatureAttributeURIMap; |
94 OutputStringMap m_outputSignalTypeURIMap; | 73 OutputStringMap m_outputSignalTypeURIMap; |