MCPcopy Create free account
hub / github.com/audacity/audacity / SendCommands

Method SendCommands

src/commands/GetInfoCommand.cpp:430–446  ·  view source on GitHub ↗

Send the list of commands. */

Source from the content-addressed store, hash-verified

428 Send the list of commands.
429 */
430bool GetInfoCommand::SendCommands(const CommandContext &context, int flags )
431{
432 context.StartArray();
433 PluginManager & pm = PluginManager::Get();
434 {
435 for (auto &plug
436 : pm.PluginsOfType(PluginTypeEffect | PluginTypeAudacityCommand)) {
437 auto command = pm.GetCommandIdentifier(plug.GetID());
438 if (!command.empty()){
439 EffectAndCommandPluginManager::Get().GetCommandDefinition(
440 plug.GetID(), context, flags);
441 }
442 }
443 }
444 context.EndArray();
445 return true;
446}
447
448bool GetInfoCommand::SendBoxes(const CommandContext &context)
449{

Callers

nothing calls this directly

Calls 7

GetFunction · 0.85
GetCommandIdentifierMethod · 0.80
GetCommandDefinitionMethod · 0.80
StartArrayMethod · 0.45
GetIDMethod · 0.45
emptyMethod · 0.45
EndArrayMethod · 0.45

Tested by

no test coverage detected