1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-03 06:24:48 -04:00

v7: VORDemod to VORDemodMC conversion in swagger. Part of #1223

This commit is contained in:
f4exb
2022-05-01 11:25:15 +02:00
parent 046b79cab3
commit c2bcd990b9
24 changed files with 1164 additions and 262 deletions
+11 -4
View File
@@ -4357,10 +4357,15 @@ bool WebAPIRequestMapper::getChannelSettings(
channelSettings->setUdpSinkSettings(new SWGSDRangel::SWGUDPSinkSettings());
channelSettings->getUdpSinkSettings()->fromJsonObject(settingsJsonObject);
}
else if (channelSettingsKey == "VORDemodMCSettings")
{
channelSettings->setVorDemodMcSettings(new SWGSDRangel::SWGVORDemodMCSettings());
channelSettings->getVorDemodMcSettings()->fromJsonObject(settingsJsonObject);
}
else if (channelSettingsKey == "VORDemodSettings")
{
channelSettings->setVorDemodSettings(new SWGSDRangel::SWGVORDemodSettings());
channelSettings->getVorDemodSettings()->fromJsonObject(settingsJsonObject);
channelSettings->setVorDemodScSettings(new SWGSDRangel::SWGVORDemodSCSettings());
channelSettings->getVorDemodScSettings()->fromJsonObject(settingsJsonObject);
}
else if (channelSettingsKey == "WFMDemodSettings")
{
@@ -5077,7 +5082,8 @@ void WebAPIRequestMapper::resetChannelSettings(SWGSDRangel::SWGChannelSettings&
channelSettings.setSsbModSettings(nullptr);
channelSettings.setUdpSourceSettings(nullptr);
channelSettings.setUdpSinkSettings(nullptr);
channelSettings.setVorDemodSettings(nullptr);
channelSettings.setVorDemodMcSettings(nullptr);
channelSettings.setVorDemodScSettings(nullptr);
channelSettings.setWfmDemodSettings(nullptr);
channelSettings.setWfmModSettings(nullptr);
}
@@ -5108,7 +5114,8 @@ void WebAPIRequestMapper::resetChannelReport(SWGSDRangel::SWGChannelReport& chan
channelReport.setSsbModReport(nullptr);
channelReport.setUdpSourceReport(nullptr);
channelReport.setUdpSinkReport(nullptr);
channelReport.setVorDemodReport(nullptr);
channelReport.setVorDemodMcReport(nullptr);
channelReport.setVorDemodScReport(nullptr);
channelReport.setWfmDemodReport(nullptr);
channelReport.setWfmModReport(nullptr);
}