| 654 | } |
| 655 | |
| 656 | QStringList Commander::GetCommands() |
| 657 | { |
| 658 | QStringList commandList; |
| 659 | QStringList helpCommandList; |
| 660 | |
| 661 | collectCommandsFromGroup(mainCommandsGroup.commands, commandList, helpCommandList); |
| 662 | |
| 663 | for (const auto &server_group : serverGroups) { |
| 664 | if (server_group.enabled) |
| 665 | collectCommandsFromGroup(server_group.group.commands, commandList, helpCommandList); |
| 666 | } |
| 667 | |
| 668 | for (const auto &client_group : clientGroups) |
| 669 | collectCommandsFromGroup(client_group.commands, commandList, helpCommandList); |
| 670 | |
| 671 | commandList << helpCommandList; |
| 672 | return commandList; |
| 673 | } |
no test coverage detected