Mercurial > hg > svcore
comparison transform/TransformFactory.h @ 1865:7b6e18380e8f startup-timing
Make it possible to check whether the transforms have been populated yet
author | Chris Cannam |
---|---|
date | Wed, 03 Jun 2020 13:57:50 +0100 |
parents | 6f626cfdba51 |
children |
comparison
equal
deleted
inserted
replaced
1864:166d7a4c2cd6 | 1865:7b6e18380e8f |
---|---|
76 QString getTransformTypeName(TransformDescription::Type) const; | 76 QString getTransformTypeName(TransformDescription::Type) const; |
77 | 77 |
78 typedef std::map<TransformId, TextMatcher::Match> SearchResults; | 78 typedef std::map<TransformId, TextMatcher::Match> SearchResults; |
79 SearchResults search(QString keyword); | 79 SearchResults search(QString keyword); |
80 SearchResults search(QStringList keywords); | 80 SearchResults search(QStringList keywords); |
81 | |
82 /** | |
83 * Return true if the transforms have been populated, i.e. a call | |
84 * to something like haveTransform() will return without having to | |
85 * do the work of scanning plugins | |
86 */ | |
87 bool havePopulated(); | |
81 | 88 |
82 /** | 89 /** |
83 * Return true if the given transform is known. | 90 * Return true if the given transform is known. |
84 */ | 91 */ |
85 bool haveTransform(TransformId identifier); | 92 bool haveTransform(TransformId identifier); |
189 QString xml); | 196 QString xml); |
190 | 197 |
191 QString getStartupFailureReport() const { | 198 QString getStartupFailureReport() const { |
192 return m_errorString; | 199 return m_errorString; |
193 } | 200 } |
201 | |
202 signals: | |
203 void transformsPopulated(); | |
204 void uninstalledTransformsPopulated(); | |
194 | 205 |
195 protected: | 206 protected: |
196 typedef std::map<TransformId, TransformDescription> TransformDescriptionMap; | 207 typedef std::map<TransformId, TransformDescription> TransformDescriptionMap; |
197 | 208 |
198 TransformDescriptionMap m_transforms; | 209 TransformDescriptionMap m_transforms; |