Audacity 3.2.0
|
#include <PluginDescriptor.h>
Public Member Functions | |
PluginType | GetPluginType () const |
const wxString & | GetID () const |
const wxString & | GetProviderID () const |
const PluginPath & | GetPath () const |
const ComponentInterfaceSymbol & | GetSymbol () const |
const wxString & | GetUntranslatedVersion () const |
const wxString & | GetVendor () const |
bool | IsEnabled () const |
bool | IsValid () const |
void | SetEnabled (bool enable) |
void | SetValid (bool valid) |
wxString | GetEffectFamily () const |
EffectType | GetEffectType () const |
bool | IsEffectDefault () const |
bool | IsEffectInteractive () const |
bool | IsEffectLegacy () const |
bool | IsEffectRealtime () const |
bool | IsEffectAutomatable () const |
const wxString & | GetImporterIdentifier () const |
const TranslatableString & | GetImporterFilterDescription () const |
const FileExtensions & | GetImporterExtensions () const |
void | WriteXML (XMLWriter &writer) const |
bool | HandleXMLTag (const std::string_view &tag, const AttributesList &attrs) override |
XMLTagHandler * | HandleXMLChild (const std::string_view &tag) override |
void | HandleXMLEndTag (const std::string_view &) override |
void | SetPluginType (PluginType type) |
void | SetID (const PluginID &ID) |
void | SetProviderID (const PluginID &providerID) |
void | SetPath (const PluginPath &path) |
void | SetSymbol (const ComponentInterfaceSymbol &symbol) |
void | SetVersion (const wxString &version) |
void | SetVendor (const wxString &vendor) |
void | SetEffectFamily (const wxString &family) |
void | SetEffectType (EffectType type) |
void | SetEffectDefault (bool dflt) |
void | SetEffectInteractive (bool interactive) |
void | SetEffectLegacy (bool legacy) |
void | SetRealtimeSupport (EffectDefinitionInterface::RealtimeSince realtime) |
wxString | SerializeRealtimeSupport () const |
for serialization More... | |
void | DeserializeRealtimeSupport (const wxString &value) |
for deserialization More... | |
void | SetEffectAutomatable (bool automatable) |
void | SetImporterIdentifier (const wxString &identifier) |
void | SetImporterFilterDescription (const TranslatableString &filterDesc) |
void | SetImporterExtensions (FileExtensions extensions) |
Public Member Functions inherited from XMLTagHandler | |
XMLTagHandler () | |
virtual | ~XMLTagHandler () |
virtual bool | HandleXMLTag (const std::string_view &tag, const AttributesList &attrs)=0 |
virtual void | HandleXMLEndTag (const std::string_view &WXUNUSED(tag)) |
virtual void | HandleXMLContent (const std::string_view &WXUNUSED(content)) |
virtual XMLTagHandler * | HandleXMLChild (const std::string_view &tag)=0 |
void | ReadXMLEndTag (const char *tag) |
void | ReadXMLContent (const char *s, int len) |
XMLTagHandler * | ReadXMLChild (const char *tag) |
Static Public Attributes | |
static constexpr auto | XMLNodeName { "PluginDescriptor" } |
Private Attributes | |
PluginType | mPluginType { PluginTypeNone } |
wxString | mID |
PluginPath | mPath |
ComponentInterfaceSymbol | mSymbol |
wxString | mVersion |
wxString | mVendor |
wxString | mProviderID |
bool | mEnabled {false} |
bool | mValid {false} |
wxString | mEffectFamily |
EffectType | mEffectType {EffectTypeNone} |
bool | mEffectInteractive {false} |
bool | mEffectDefault {false} |
bool | mEffectLegacy {false} |
EffectDefinitionInterface::RealtimeSince | mEffectRealtime |
bool | mEffectAutomatable {false} |
wxString | mImporterIdentifier |
FileExtensions | mImporterExtensions |
Represents either a PluginProvider or a loaded plug-in and caches some information about it
Definition at line 42 of file PluginDescriptor.h.
void PluginDescriptor::DeserializeRealtimeSupport | ( | const wxString & | value | ) |
for deserialization
Definition at line 223 of file PluginDescriptor.cpp.
References EffectDefinitionInterface::After_3_1, After_3_1_string, EffectDefinitionInterface::Always, mEffectRealtime, and EffectDefinitionInterface::Never.
Referenced by HandleXMLTag(), and PluginManager::LoadGroup().
wxString PluginDescriptor::GetEffectFamily | ( | ) | const |
Definition at line 137 of file PluginDescriptor.cpp.
References mEffectFamily.
Referenced by PluginManager::SettingsPath(), and WriteXML().
EffectType PluginDescriptor::GetEffectType | ( | ) | const |
Definition at line 142 of file PluginDescriptor.cpp.
References mEffectType.
Referenced by AudacityApplicationLogic::DoEffect(), and WriteXML().
const PluginID & PluginDescriptor::GetID | ( | ) | const |
Definition at line 50 of file PluginDescriptor.cpp.
References mID.
Referenced by anonymous_namespace{MenuHelper.cpp}::AddEffectMenuItemGroup(), anonymous_namespace{MenuHelper.cpp}::AddSortedEffectMenuItems(), anonymous_namespace{MenuHelper.cpp}::ComapareEffectsByTypeAndPublisher(), anonymous_namespace{MenuHelper.cpp}::CompareEffectsByPublisher(), anonymous_namespace{MenuHelper.cpp}::CompareEffectsByPublisherAndName(), anonymous_namespace{MenuHelper.cpp}::CompareEffectsByType(), anonymous_namespace{MenuHelper.cpp}::CompareEffectsByTypeAndName(), PluginManager::GetPlugin(), anonymous_namespace{MenuHelper.cpp}::IsEnabledPlugin(), PluginManager::IsPluginAvailable(), PluginManager::RegisterPlugin(), and WriteXML().
const FileExtensions & PluginDescriptor::GetImporterExtensions | ( | ) | const |
Definition at line 258 of file PluginDescriptor.cpp.
References mImporterExtensions.
const TranslatableString & PluginDescriptor::GetImporterFilterDescription | ( | ) | const |
const wxString & PluginDescriptor::GetImporterIdentifier | ( | ) | const |
const PluginPath & PluginDescriptor::GetPath | ( | ) | const |
Definition at line 60 of file PluginDescriptor.cpp.
References mPath.
Referenced by anonymous_namespace{MenuHelper.cpp}::AddEffectMenuItemGroup(), PluginManager::CheckPluginUpdates(), anonymous_namespace{MenuHelper.cpp}::ComapareEffectsByTypeAndPublisher(), anonymous_namespace{MenuHelper.cpp}::CompareEffectsByName(), anonymous_namespace{MenuHelper.cpp}::CompareEffectsByPublisher(), anonymous_namespace{MenuHelper.cpp}::CompareEffectsByPublisherAndName(), anonymous_namespace{MenuHelper.cpp}::CompareEffectsByType(), anonymous_namespace{MenuHelper.cpp}::CompareEffectsByTypeAndName(), anonymous_namespace{MenuHelper.cpp}::IsBundledPlugin(), PluginManager::IsPluginAvailable(), and WriteXML().
PluginType PluginDescriptor::GetPluginType | ( | ) | const |
Definition at line 45 of file PluginDescriptor.cpp.
References mPluginType.
Referenced by anonymous_namespace{MenuHelper.cpp}::AddEffectMenuItemGroup(), MacroCommands::ApplyEffectCommand(), PluginManager::SettingsPath(), and WriteXML().
const PluginID & PluginDescriptor::GetProviderID | ( | ) | const |
Definition at line 55 of file PluginDescriptor.cpp.
References mProviderID.
Referenced by PluginManager::IsPluginAvailable(), and WriteXML().
const ComponentInterfaceSymbol & PluginDescriptor::GetSymbol | ( | ) | const |
Definition at line 65 of file PluginDescriptor.cpp.
References mSymbol.
Referenced by anonymous_namespace{MenuHelper.cpp}::AddSortedEffectMenuItems(), anonymous_namespace{MenuHelper.cpp}::ComapareEffectsByTypeAndPublisher(), anonymous_namespace{MenuHelper.cpp}::CompareEffectsByName(), anonymous_namespace{MenuHelper.cpp}::CompareEffectsByPublisher(), anonymous_namespace{MenuHelper.cpp}::CompareEffectsByPublisherAndName(), anonymous_namespace{MenuHelper.cpp}::CompareEffectsByType(), anonymous_namespace{MenuHelper.cpp}::CompareEffectsByTypeAndName(), anonymous_namespace{MenuHelper.cpp}::FixBatchFlags(), PluginManager::SettingsPath(), and WriteXML().
const wxString & PluginDescriptor::GetUntranslatedVersion | ( | ) | const |
Definition at line 70 of file PluginDescriptor.cpp.
References mVersion.
Referenced by WriteXML().
const wxString & PluginDescriptor::GetVendor | ( | ) | const |
Definition at line 75 of file PluginDescriptor.cpp.
References mVendor.
Referenced by anonymous_namespace{RealtimeEffectPanel.cpp}::GetSafeVendor(), PluginManager::SettingsPath(), and WriteXML().
|
overridevirtual |
Implements XMLTagHandler.
Definition at line 332 of file PluginDescriptor.cpp.
|
override |
Definition at line 337 of file PluginDescriptor.cpp.
|
overridevirtual |
Implements XMLTagHandler.
Definition at line 288 of file PluginDescriptor.cpp.
References anonymous_namespace{PluginDescriptor.cpp}::AttrEffectAutomatable, anonymous_namespace{PluginDescriptor.cpp}::AttrEffectDefault, anonymous_namespace{PluginDescriptor.cpp}::AttrEffectFamily, anonymous_namespace{PluginDescriptor.cpp}::AttrEffectInteractive, anonymous_namespace{PluginDescriptor.cpp}::AttrEffectRealtime, anonymous_namespace{PluginDescriptor.cpp}::AttrEffectType, anonymous_namespace{PluginDescriptor.cpp}::AttrEnabled, anonymous_namespace{PluginDescriptor.cpp}::AttrID, anonymous_namespace{PluginDescriptor.cpp}::AttrName, anonymous_namespace{PluginDescriptor.cpp}::AttrPath, anonymous_namespace{PluginDescriptor.cpp}::AttrProviderID, anonymous_namespace{PluginDescriptor.cpp}::AttrType, anonymous_namespace{PluginDescriptor.cpp}::AttrValid, anonymous_namespace{PluginDescriptor.cpp}::AttrVendor, anonymous_namespace{PluginDescriptor.cpp}::AttrVersion, DeserializeRealtimeSupport(), key, SetEffectAutomatable(), SetEffectDefault(), SetEffectFamily(), SetEffectInteractive(), SetEffectType(), SetEnabled(), SetID(), SetPath(), SetPluginType(), SetProviderID(), SetSymbol(), SetValid(), SetVendor(), SetVersion(), and XMLNodeName.
bool PluginDescriptor::IsEffectAutomatable | ( | ) | const |
Definition at line 167 of file PluginDescriptor.cpp.
References mEffectAutomatable.
Referenced by WriteXML().
bool PluginDescriptor::IsEffectDefault | ( | ) | const |
Definition at line 152 of file PluginDescriptor.cpp.
References mEffectDefault.
Referenced by anonymous_namespace{MenuHelper.cpp}::AddSortedEffectMenuItems(), anonymous_namespace{MenuHelper.cpp}::CompareEffectsByPublisherAndName(), anonymous_namespace{MenuHelper.cpp}::CompareEffectsByTypeAndName(), anonymous_namespace{MenuHelper.cpp}::IsDefaultPlugin(), and WriteXML().
bool PluginDescriptor::IsEffectInteractive | ( | ) | const |
Definition at line 147 of file PluginDescriptor.cpp.
References mEffectInteractive.
Referenced by anonymous_namespace{MenuHelper.cpp}::AddSortedEffectMenuItems(), and WriteXML().
bool PluginDescriptor::IsEffectLegacy | ( | ) | const |
bool PluginDescriptor::IsEffectRealtime | ( | ) | const |
Definition at line 162 of file PluginDescriptor.cpp.
References mEffectRealtime, and EffectDefinitionInterface::Never.
bool PluginDescriptor::IsEnabled | ( | ) | const |
Definition at line 80 of file PluginDescriptor.cpp.
References mEnabled.
Referenced by anonymous_namespace{MenuHelper.cpp}::IsEnabledPlugin(), anonymous_namespace{TrackMenus.cpp}::TracksMenu(), and WriteXML().
bool PluginDescriptor::IsValid | ( | ) | const |
Definition at line 85 of file PluginDescriptor.cpp.
References mValid.
Referenced by WriteXML().
wxString PluginDescriptor::SerializeRealtimeSupport | ( | ) | const |
for serialization
Definition at line 205 of file PluginDescriptor.cpp.
References EffectDefinitionInterface::After_3_1, After_3_1_string, EffectDefinitionInterface::Always, mEffectRealtime, and EffectDefinitionInterface::Never.
Referenced by WriteXML().
void PluginDescriptor::SetEffectAutomatable | ( | bool | automatable | ) |
Definition at line 241 of file PluginDescriptor.cpp.
References mEffectAutomatable.
Referenced by HandleXMLTag(), PluginManager::LoadGroup(), and PluginManager::RegisterPlugin().
void PluginDescriptor::SetEffectDefault | ( | bool | dflt | ) |
Definition at line 187 of file PluginDescriptor.cpp.
References mEffectDefault.
Referenced by HandleXMLTag(), PluginManager::LoadGroup(), and PluginManager::RegisterPlugin().
void PluginDescriptor::SetEffectFamily | ( | const wxString & | family | ) |
Definition at line 172 of file PluginDescriptor.cpp.
References mEffectFamily.
Referenced by HandleXMLTag(), PluginManager::LoadGroup(), and PluginManager::RegisterPlugin().
void PluginDescriptor::SetEffectInteractive | ( | bool | interactive | ) |
Definition at line 182 of file PluginDescriptor.cpp.
References mEffectInteractive.
Referenced by HandleXMLTag(), PluginManager::LoadGroup(), and PluginManager::RegisterPlugin().
void PluginDescriptor::SetEffectLegacy | ( | bool | legacy | ) |
Definition at line 192 of file PluginDescriptor.cpp.
References mEffectLegacy.
Referenced by PluginManager::RegisterPlugin().
void PluginDescriptor::SetEffectType | ( | EffectType | type | ) |
Definition at line 177 of file PluginDescriptor.cpp.
References mEffectType.
Referenced by HandleXMLTag(), PluginManager::LoadGroup(), and PluginManager::RegisterPlugin().
void PluginDescriptor::SetEnabled | ( | bool | enable | ) |
Definition at line 125 of file PluginDescriptor.cpp.
References mEnabled.
Referenced by HandleXMLTag(), PluginManager::LoadGroup(), PluginStartupRegistration::OnPluginValidationFailed(), and PluginManager::RegisterPlugin().
void PluginDescriptor::SetID | ( | const PluginID & | ID | ) |
Definition at line 95 of file PluginDescriptor.cpp.
References mID.
Referenced by PluginManager::CreatePlugin(), HandleXMLTag(), PluginManager::LoadGroup(), and PluginStartupRegistration::OnPluginValidationFailed().
void PluginDescriptor::SetImporterExtensions | ( | FileExtensions | extensions | ) |
Definition at line 342 of file PluginDescriptor.cpp.
References mImporterExtensions.
Referenced by PluginManager::LoadGroup().
void PluginDescriptor::SetImporterFilterDescription | ( | const TranslatableString & | filterDesc | ) |
void PluginDescriptor::SetImporterIdentifier | ( | const wxString & | identifier | ) |
Definition at line 253 of file PluginDescriptor.cpp.
References mImporterIdentifier.
Referenced by PluginManager::LoadGroup().
void PluginDescriptor::SetPath | ( | const PluginPath & | path | ) |
Definition at line 105 of file PluginDescriptor.cpp.
References mPath.
Referenced by PluginManager::CreatePlugin(), HandleXMLTag(), PluginManager::LoadGroup(), and PluginStartupRegistration::OnPluginValidationFailed().
void PluginDescriptor::SetPluginType | ( | PluginType | type | ) |
Definition at line 90 of file PluginDescriptor.cpp.
References mPluginType.
Referenced by PluginManager::CreatePlugin(), HandleXMLTag(), PluginManager::LoadGroup(), and PluginStartupRegistration::OnPluginValidationFailed().
void PluginDescriptor::SetProviderID | ( | const PluginID & | providerID | ) |
Definition at line 100 of file PluginDescriptor.cpp.
References mProviderID.
Referenced by HandleXMLTag(), PluginManager::LoadGroup(), PluginStartupRegistration::OnPluginValidationFailed(), and PluginManager::RegisterPlugin().
void PluginDescriptor::SetRealtimeSupport | ( | EffectDefinitionInterface::RealtimeSince | realtime | ) |
Definition at line 197 of file PluginDescriptor.cpp.
References mEffectRealtime.
Referenced by PluginManager::RegisterPlugin().
void PluginDescriptor::SetSymbol | ( | const ComponentInterfaceSymbol & | symbol | ) |
Definition at line 110 of file PluginDescriptor.cpp.
References mSymbol.
Referenced by PluginManager::CreatePlugin(), HandleXMLTag(), and PluginManager::LoadGroup().
void PluginDescriptor::SetValid | ( | bool | valid | ) |
Definition at line 130 of file PluginDescriptor.cpp.
References mValid.
Referenced by HandleXMLTag(), PluginManager::LoadGroup(), PluginStartupRegistration::OnPluginValidationFailed(), and PluginManager::RegisterPlugin().
void PluginDescriptor::SetVendor | ( | const wxString & | vendor | ) |
Definition at line 120 of file PluginDescriptor.cpp.
References mVendor.
Referenced by PluginManager::CreatePlugin(), HandleXMLTag(), and PluginManager::LoadGroup().
void PluginDescriptor::SetVersion | ( | const wxString & | version | ) |
Definition at line 115 of file PluginDescriptor.cpp.
References mVersion.
Referenced by PluginManager::CreatePlugin(), HandleXMLTag(), and PluginManager::LoadGroup().
void PluginDescriptor::WriteXML | ( | XMLWriter & | writer | ) | const |
Definition at line 264 of file PluginDescriptor.cpp.
References anonymous_namespace{PluginDescriptor.cpp}::AttrEffectAutomatable, anonymous_namespace{PluginDescriptor.cpp}::AttrEffectDefault, anonymous_namespace{PluginDescriptor.cpp}::AttrEffectFamily, anonymous_namespace{PluginDescriptor.cpp}::AttrEffectInteractive, anonymous_namespace{PluginDescriptor.cpp}::AttrEffectRealtime, anonymous_namespace{PluginDescriptor.cpp}::AttrEffectType, anonymous_namespace{PluginDescriptor.cpp}::AttrEnabled, anonymous_namespace{PluginDescriptor.cpp}::AttrID, anonymous_namespace{PluginDescriptor.cpp}::AttrName, anonymous_namespace{PluginDescriptor.cpp}::AttrPath, anonymous_namespace{PluginDescriptor.cpp}::AttrProviderID, anonymous_namespace{PluginDescriptor.cpp}::AttrType, anonymous_namespace{PluginDescriptor.cpp}::AttrValid, anonymous_namespace{PluginDescriptor.cpp}::AttrVendor, anonymous_namespace{PluginDescriptor.cpp}::AttrVersion, XMLWriter::EndTag(), GetEffectFamily(), GetEffectType(), GetID(), GetPath(), GetPluginType(), GetProviderID(), GetSymbol(), GetUntranslatedVersion(), GetVendor(), Internal, IsEffectAutomatable(), IsEffectDefault(), IsEffectInteractive(), IsEnabled(), IsValid(), PluginTypeEffect, SerializeRealtimeSupport(), XMLWriter::StartTag(), XMLWriter::WriteAttr(), and XMLNodeName.
|
private |
Definition at line 152 of file PluginDescriptor.h.
Referenced by IsEffectAutomatable(), and SetEffectAutomatable().
|
private |
Definition at line 148 of file PluginDescriptor.h.
Referenced by IsEffectDefault(), and SetEffectDefault().
|
private |
Definition at line 145 of file PluginDescriptor.h.
Referenced by GetEffectFamily(), and SetEffectFamily().
|
private |
Definition at line 147 of file PluginDescriptor.h.
Referenced by IsEffectInteractive(), and SetEffectInteractive().
|
private |
Definition at line 149 of file PluginDescriptor.h.
Referenced by IsEffectLegacy(), and SetEffectLegacy().
|
private |
Definition at line 150 of file PluginDescriptor.h.
Referenced by DeserializeRealtimeSupport(), IsEffectRealtime(), SerializeRealtimeSupport(), and SetRealtimeSupport().
|
private |
Definition at line 146 of file PluginDescriptor.h.
Referenced by GetEffectType(), and SetEffectType().
|
private |
Definition at line 140 of file PluginDescriptor.h.
Referenced by IsEnabled(), and SetEnabled().
|
private |
Definition at line 134 of file PluginDescriptor.h.
|
private |
Definition at line 157 of file PluginDescriptor.h.
Referenced by GetImporterExtensions(), and SetImporterExtensions().
|
private |
Definition at line 156 of file PluginDescriptor.h.
Referenced by GetImporterIdentifier(), and SetImporterIdentifier().
|
private |
Definition at line 135 of file PluginDescriptor.h.
|
private |
Definition at line 132 of file PluginDescriptor.h.
Referenced by GetPluginType(), and SetPluginType().
|
private |
Definition at line 139 of file PluginDescriptor.h.
Referenced by GetProviderID(), and SetProviderID().
|
private |
Definition at line 136 of file PluginDescriptor.h.
Referenced by GetSymbol(), and SetSymbol().
|
private |
Definition at line 141 of file PluginDescriptor.h.
Referenced by IsValid(), and SetValid().
|
private |
Definition at line 138 of file PluginDescriptor.h.
Referenced by GetVendor(), and SetVendor().
|
private |
Definition at line 137 of file PluginDescriptor.h.
Referenced by GetUntranslatedVersion(), and SetVersion().
|
staticconstexpr |
Definition at line 46 of file PluginDescriptor.h.
Referenced by detail::PluginValidationResult::HandleXMLChild(), HandleXMLTag(), and WriteXML().