1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 22:14:45 -04:00

REST API: config: GET (3) added commands and removed usless friend class

This commit is contained in:
f4exb
2019-08-01 10:54:45 +02:00
parent b95fa98e5a
commit 8ce4788b55
6 changed files with 61 additions and 20 deletions
+10
View File
@@ -136,6 +136,16 @@ int WebAPIAdapterGUI::instanceConfigGet(
WebAPIAdapterBase::webapiFormatPreset(swgPresets->back(), *preset);
}
int nbCommands = m_mainWindow.m_settings.getCommandCount();
QList<SWGSDRangel::SWGCommand*> *swgCommands = response.getCommands();
for (int i = 0; i < nbCommands; i++)
{
const Command *command = m_mainWindow.m_settings.getCommand(i);
swgCommands->append(new SWGSDRangel::SWGCommand);
WebAPIAdapterBase::webapiFormatCommand(swgCommands->back(), *command);
}
return 200;
}