SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <webapirequestmapper.h>
Public Member Functions | |
WebAPIRequestMapper (QObject *parent=0) | |
~WebAPIRequestMapper () | |
void | service (qtwebapp::HttpRequest &request, qtwebapp::HttpResponse &response) |
void | setAdapter (WebAPIAdapterInterface *adapter) |
Public Member Functions inherited from qtwebapp::HttpRequestHandler | |
HttpRequestHandler (QObject *parent=NULL) | |
virtual | ~HttpRequestHandler () |
Private Attributes | |
WebAPIAdapterInterface * | m_adapter |
qtwebapp::StaticFileController * | m_staticFileController |
Definition at line 39 of file webapirequestmapper.h.
WebAPIRequestMapper::WebAPIRequestMapper | ( | QObject * | parent = 0 | ) |
Definition at line 50 of file webapirequestmapper.cpp.
References m_staticFileController, and qtwebapp::HttpDocrootSettings::path.
WebAPIRequestMapper::~WebAPIRequestMapper | ( | ) |
Definition at line 62 of file webapirequestmapper.cpp.
References m_staticFileController.
|
private |
Definition at line 2785 of file webapirequestmapper.cpp.
Referenced by validateDeviceSettings().
|
private |
Definition at line 2771 of file webapirequestmapper.cpp.
References i.
Referenced by validateChannelSettings().
|
private |
Definition at line 1557 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGSuccessResponse::asJson(), SWGSDRangel::SWGErrorResponse::asJson(), WebAPIAdapterInterface::devicesetChannelDelete(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), m_adapter, qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 1691 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGChannelReport::asJson(), WebAPIAdapterInterface::devicesetChannelReportGet(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), m_adapter, resetChannelReport(), qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 1480 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGSuccessResponse::asJson(), SWGSDRangel::SWGErrorResponse::asJson(), WebAPIAdapterInterface::devicesetChannelPost(), qtwebapp::HttpRequest::getBody(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), m_adapter, parseJsonBody(), resetChannelSettings(), SWGSDRangel::SWGChannelSettings::setChannelType(), SWGSDRangel::SWGChannelSettings::setDirection(), qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 1602 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGChannelSettings::asJson(), WebAPIAdapterInterface::devicesetChannelSettingsGet(), WebAPIAdapterInterface::devicesetChannelSettingsPutPatch(), qtwebapp::HttpRequest::getBody(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), m_adapter, parseJsonBody(), resetChannelSettings(), qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), validateChannelSettings(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 1442 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGChannelsDetail::asJson(), WebAPIAdapterInterface::devicesetChannelsReportGet(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), m_adapter, qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 1403 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGDeviceReport::asJson(), WebAPIAdapterInterface::devicesetDeviceReportGet(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), m_adapter, resetDeviceReport(), qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 1337 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGDeviceState::asJson(), SWGSDRangel::SWGErrorResponse::asJson(), WebAPIAdapterInterface::devicesetDeviceRunDelete(), WebAPIAdapterInterface::devicesetDeviceRunGet(), WebAPIAdapterInterface::devicesetDeviceRunPost(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), m_adapter, qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 1190 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGDeviceListItem::asJson(), SWGSDRangel::SWGErrorResponse::asJson(), WebAPIAdapterInterface::devicesetDevicePut(), qtwebapp::HttpRequest::getBody(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), m_adapter, parseJsonBody(), qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), validateDeviceListItem(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 1254 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGDeviceSettings::asJson(), WebAPIAdapterInterface::devicesetDeviceSettingsGet(), WebAPIAdapterInterface::devicesetDeviceSettingsPutPatch(), qtwebapp::HttpRequest::getBody(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), m_adapter, parseJsonBody(), resetDeviceSettings(), qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), validateDeviceSettings(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 1150 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGSuccessResponse::asJson(), SWGSDRangel::SWGErrorResponse::asJson(), WebAPIAdapterInterface::devicesetFocusPatch(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), m_adapter, qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 1112 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGDeviceSet::asJson(), WebAPIAdapterInterface::devicesetGet(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), m_adapter, qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 673 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGSuccessResponse::asJson(), SWGSDRangel::SWGAMBEDevices::asJson(), qtwebapp::HttpRequest::getBody(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), WebAPIAdapterInterface::instanceAMBEDevicesDelete(), WebAPIAdapterInterface::instanceAMBEDevicesGet(), WebAPIAdapterInterface::instanceAMBEDevicesPatch(), WebAPIAdapterInterface::instanceAMBEDevicesPut(), m_adapter, parseJsonBody(), qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), validateAMBEDevices(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 645 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGDVSerialDevices::asJson(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), WebAPIAdapterInterface::instanceAMBESerialGet(), m_adapter, qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 535 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGSuccessResponse::asJson(), SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), WebAPIAdapterInterface::instanceAudioInputCleanupPatch(), m_adapter, qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 397 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGAudioInputDevice::asJson(), SWGSDRangel::SWGErrorResponse::asJson(), qtwebapp::HttpRequest::getBody(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), WebAPIAdapterInterface::instanceAudioInputDelete(), WebAPIAdapterInterface::instanceAudioInputPatch(), m_adapter, parseJsonBody(), resetAudioInputDevice(), qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), validateAudioInputDevice(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 563 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGSuccessResponse::asJson(), SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), WebAPIAdapterInterface::instanceAudioOutputCleanupPatch(), m_adapter, qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 466 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGAudioOutputDevice::asJson(), SWGSDRangel::SWGErrorResponse::asJson(), qtwebapp::HttpRequest::getBody(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), WebAPIAdapterInterface::instanceAudioOutputDelete(), WebAPIAdapterInterface::instanceAudioOutputPatch(), m_adapter, parseJsonBody(), resetAudioOutputDevice(), qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), validateAudioOutputDevice(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 369 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGAudioDevices::asJson(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), WebAPIAdapterInterface::instanceAudioGet(), m_adapter, qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 277 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGInstanceChannelsResponse::asJson(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), qtwebapp::HttpRequest::getParameter(), SWGSDRangel::SWGErrorResponse::init(), WebAPIAdapterInterface::instanceChannels(), m_adapter, qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 218 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGInstanceConfigResponse::asJson(), qtwebapp::HttpRequest::getMethod(), WebAPIAdapterInterface::instanceConfigGet(), m_adapter, qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 1061 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGSuccessResponse::asJson(), SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), qtwebapp::HttpRequest::getParameter(), SWGSDRangel::SWGErrorResponse::init(), WebAPIAdapterInterface::instanceDeviceSetDelete(), WebAPIAdapterInterface::instanceDeviceSetPost(), m_adapter, qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 1034 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGDeviceSetList::asJson(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), WebAPIAdapterInterface::instanceDeviceSetsGet(), m_adapter, qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 238 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGInstanceDevicesResponse::asJson(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), qtwebapp::HttpRequest::getParameter(), SWGSDRangel::SWGErrorResponse::init(), WebAPIAdapterInterface::instanceDevices(), m_adapter, qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
|
private |
Definition at line 591 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGLocationInformation::asJson(), SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGLocationInformation::fromJson(), qtwebapp::HttpRequest::getBody(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), WebAPIAdapterInterface::instanceLocationGet(), WebAPIAdapterInterface::instanceLocationPut(), m_adapter, parseJsonBody(), qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 316 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGLoggingInfo::asJson(), SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGLoggingInfo::fromJson(), qtwebapp::HttpRequest::getBody(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), WebAPIAdapterInterface::instanceLoggingGet(), WebAPIAdapterInterface::instanceLoggingPut(), m_adapter, parseJsonBody(), qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 943 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGPresetIdentifier::asJson(), SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGPresetImport::fromJson(), SWGSDRangel::SWGPresetExport::fromJson(), qtwebapp::HttpRequest::getBody(), SWGSDRangel::SWGPresetImport::getFilePath(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), WebAPIAdapterInterface::instancePresetFilePost(), WebAPIAdapterInterface::instancePresetFilePut(), m_adapter, parseJsonBody(), qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), validatePresetExport(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 777 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGPresetIdentifier::asJson(), SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGPresetTransfer::fromJson(), SWGSDRangel::SWGPresetIdentifier::fromJson(), qtwebapp::HttpRequest::getBody(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), WebAPIAdapterInterface::instancePresetDelete(), WebAPIAdapterInterface::instancePresetPatch(), WebAPIAdapterInterface::instancePresetPost(), WebAPIAdapterInterface::instancePresetPut(), m_adapter, parseJsonBody(), qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), validatePresetIdentifer(), validatePresetTransfer(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 757 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGPresets::asJson(), qtwebapp::HttpRequest::getMethod(), WebAPIAdapterInterface::instancePresetsGet(), m_adapter, qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 177 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGSuccessResponse::asJson(), SWGSDRangel::SWGInstanceSummaryResponse::asJson(), SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), SWGSDRangel::SWGErrorResponse::init(), WebAPIAdapterInterface::instanceDelete(), WebAPIAdapterInterface::instanceSummary(), m_adapter, qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by service().
|
private |
Definition at line 1729 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGErrorResponse::asJson(), SWGSDRangel::SWGErrorResponse::getMessage(), SWGSDRangel::SWGErrorResponse::init(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
Referenced by devicesetChannelService(), devicesetChannelSettingsService(), devicesetDeviceService(), devicesetDeviceSettingsService(), instanceAMBEDevicesService(), instanceAudioInputParametersService(), instanceAudioOutputParametersService(), instanceLocationService(), instanceLoggingService(), instancePresetFileService(), and instancePresetService().
|
private |
Definition at line 2893 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGAudioInputDevice::cleanup(), and SWGSDRangel::SWGAudioInputDevice::setName().
Referenced by instanceAudioInputParametersService().
|
private |
Definition at line 2899 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGAudioOutputDevice::cleanup(), SWGSDRangel::SWGAudioOutputDevice::setName(), and SWGSDRangel::SWGAudioOutputDevice::setUdpAddress().
Referenced by instanceAudioOutputParametersService().
|
private |
Definition at line 2873 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGChannelReport::cleanup(), SWGSDRangel::SWGChannelReport::setAmDemodReport(), SWGSDRangel::SWGChannelReport::setAmModReport(), SWGSDRangel::SWGChannelReport::setAtvModReport(), SWGSDRangel::SWGChannelReport::setBfmDemodReport(), SWGSDRangel::SWGChannelReport::setChannelType(), SWGSDRangel::SWGChannelReport::setDsdDemodReport(), SWGSDRangel::SWGChannelReport::setNfmDemodReport(), SWGSDRangel::SWGChannelReport::setNfmModReport(), SWGSDRangel::SWGChannelReport::setRemoteSourceReport(), SWGSDRangel::SWGChannelReport::setSsbDemodReport(), SWGSDRangel::SWGChannelReport::setSsbModReport(), SWGSDRangel::SWGChannelReport::setUdpSinkReport(), SWGSDRangel::SWGChannelReport::setUdpSourceReport(), SWGSDRangel::SWGChannelReport::setWfmDemodReport(), and SWGSDRangel::SWGChannelReport::setWfmModReport().
Referenced by devicesetChannelReportService().
|
private |
Definition at line 2852 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGChannelSettings::cleanup(), SWGSDRangel::SWGChannelSettings::setAmDemodSettings(), SWGSDRangel::SWGChannelSettings::setAmModSettings(), SWGSDRangel::SWGChannelSettings::setAtvModSettings(), SWGSDRangel::SWGChannelSettings::setBfmDemodSettings(), SWGSDRangel::SWGChannelSettings::setChannelType(), SWGSDRangel::SWGChannelSettings::setDsdDemodSettings(), SWGSDRangel::SWGChannelSettings::setNfmDemodSettings(), SWGSDRangel::SWGChannelSettings::setNfmModSettings(), SWGSDRangel::SWGChannelSettings::setRemoteSinkSettings(), SWGSDRangel::SWGChannelSettings::setRemoteSourceSettings(), SWGSDRangel::SWGChannelSettings::setSsbDemodSettings(), SWGSDRangel::SWGChannelSettings::setSsbModSettings(), SWGSDRangel::SWGChannelSettings::setUdpSinkSettings(), SWGSDRangel::SWGChannelSettings::setUdpSourceSettings(), SWGSDRangel::SWGChannelSettings::setWfmDemodSettings(), and SWGSDRangel::SWGChannelSettings::setWfmModSettings().
Referenced by devicesetChannelService(), and devicesetChannelSettingsService().
|
private |
Definition at line 2834 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGDeviceReport::cleanup(), SWGSDRangel::SWGDeviceReport::setAirspyHfReport(), SWGSDRangel::SWGDeviceReport::setAirspyReport(), SWGSDRangel::SWGDeviceReport::setDeviceHwType(), SWGSDRangel::SWGDeviceReport::setFileInputReport(), SWGSDRangel::SWGDeviceReport::setLimeSdrInputReport(), SWGSDRangel::SWGDeviceReport::setLimeSdrOutputReport(), SWGSDRangel::SWGDeviceReport::setPerseusReport(), SWGSDRangel::SWGDeviceReport::setPlutoSdrInputReport(), SWGSDRangel::SWGDeviceReport::setPlutoSdrOutputReport(), SWGSDRangel::SWGDeviceReport::setRemoteInputReport(), SWGSDRangel::SWGDeviceReport::setRemoteOutputReport(), SWGSDRangel::SWGDeviceReport::setRtlSdrReport(), and SWGSDRangel::SWGDeviceReport::setSdrPlayReport().
Referenced by devicesetDeviceReportService().
|
private |
Definition at line 2809 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGDeviceSettings::cleanup(), SWGSDRangel::SWGDeviceSettings::setAirspyHfSettings(), SWGSDRangel::SWGDeviceSettings::setAirspySettings(), SWGSDRangel::SWGDeviceSettings::setBladeRf1InputSettings(), SWGSDRangel::SWGDeviceSettings::setBladeRf1OutputSettings(), SWGSDRangel::SWGDeviceSettings::setDeviceHwType(), SWGSDRangel::SWGDeviceSettings::setFcdProPlusSettings(), SWGSDRangel::SWGDeviceSettings::setFcdProSettings(), SWGSDRangel::SWGDeviceSettings::setFileInputSettings(), SWGSDRangel::SWGDeviceSettings::setHackRfInputSettings(), SWGSDRangel::SWGDeviceSettings::setHackRfOutputSettings(), SWGSDRangel::SWGDeviceSettings::setLimeSdrInputSettings(), SWGSDRangel::SWGDeviceSettings::setLimeSdrOutputSettings(), SWGSDRangel::SWGDeviceSettings::setPerseusSettings(), SWGSDRangel::SWGDeviceSettings::setPlutoSdrInputSettings(), SWGSDRangel::SWGDeviceSettings::setPlutoSdrOutputSettings(), SWGSDRangel::SWGDeviceSettings::setRemoteInputSettings(), SWGSDRangel::SWGDeviceSettings::setRemoteOutputSettings(), SWGSDRangel::SWGDeviceSettings::setRtlSdrSettings(), SWGSDRangel::SWGDeviceSettings::setSdrPlaySettings(), and SWGSDRangel::SWGDeviceSettings::setTestSourceSettings().
Referenced by devicesetDeviceSettingsService().
|
virtual |
Generate a response for an incoming HTTP request.
request | The received HTTP request |
response | Must be used to return the response |
Reimplemented from qtwebapp::HttpRequestHandler.
Definition at line 70 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGErrorResponse::asJson(), devicesetChannelIndexService(), WebAPIAdapterInterface::devicesetChannelIndexURLRe, devicesetChannelReportService(), WebAPIAdapterInterface::devicesetChannelReportURLRe, devicesetChannelService(), devicesetChannelSettingsService(), WebAPIAdapterInterface::devicesetChannelSettingsURLRe, devicesetChannelsReportService(), WebAPIAdapterInterface::devicesetChannelsReportURLRe, WebAPIAdapterInterface::devicesetChannelURLRe, devicesetDeviceReportService(), WebAPIAdapterInterface::devicesetDeviceReportURLRe, devicesetDeviceRunService(), WebAPIAdapterInterface::devicesetDeviceRunURLRe, devicesetDeviceService(), devicesetDeviceSettingsService(), WebAPIAdapterInterface::devicesetDeviceSettingsURLRe, WebAPIAdapterInterface::devicesetDeviceURLRe, devicesetFocusService(), WebAPIAdapterInterface::devicesetFocusURLRe, devicesetService(), WebAPIAdapterInterface::devicesetURLRe, SWGSDRangel::SWGErrorResponse::getMessage(), qtwebapp::HttpRequest::getMethod(), qtwebapp::HttpRequest::getPath(), SWGSDRangel::SWGErrorResponse::init(), instanceAMBEDevicesService(), WebAPIAdapterInterface::instanceAMBEDevicesURL, instanceAMBESerialService(), WebAPIAdapterInterface::instanceAMBESerialURL, instanceAudioInputCleanupService(), WebAPIAdapterInterface::instanceAudioInputCleanupURL, instanceAudioInputParametersService(), WebAPIAdapterInterface::instanceAudioInputParametersURL, instanceAudioOutputCleanupService(), WebAPIAdapterInterface::instanceAudioOutputCleanupURL, instanceAudioOutputParametersService(), WebAPIAdapterInterface::instanceAudioOutputParametersURL, instanceAudioService(), WebAPIAdapterInterface::instanceAudioURL, instanceChannelsService(), WebAPIAdapterInterface::instanceChannelsURL, instanceConfigService(), WebAPIAdapterInterface::instanceConfigURL, instanceDeviceSetService(), instanceDeviceSetsService(), WebAPIAdapterInterface::instanceDeviceSetsURL, WebAPIAdapterInterface::instanceDeviceSetURL, instanceDevicesService(), WebAPIAdapterInterface::instanceDevicesURL, instanceLocationService(), WebAPIAdapterInterface::instanceLocationURL, instanceLoggingService(), WebAPIAdapterInterface::instanceLoggingURL, instancePresetFileService(), WebAPIAdapterInterface::instancePresetFileURL, instancePresetService(), instancePresetsService(), WebAPIAdapterInterface::instancePresetsURL, WebAPIAdapterInterface::instancePresetURL, instanceSummaryService(), WebAPIAdapterInterface::instanceSummaryURL, m_adapter, m_staticFileController, qtwebapp::StaticFileController::service(), qtwebapp::HttpResponse::setHeader(), qtwebapp::HttpResponse::setStatus(), and qtwebapp::HttpResponse::write().
|
inline |
Definition at line 45 of file webapirequestmapper.h.
Referenced by MainCore::MainCore(), and MainWindow::MainWindow().
|
private |
Definition at line 2730 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGAMBEDevices::getAmbeDevices(), i, SWGSDRangel::SWGAMBEDevices::init(), and SWGSDRangel::SWGAMBEDevices::setNbDevices().
Referenced by instanceAMBEDevicesService().
|
private |
Definition at line 2654 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGAudioInputDevice::setIndex(), SWGSDRangel::SWGAudioInputDevice::setSampleRate(), and SWGSDRangel::SWGAudioInputDevice::setVolume().
Referenced by instanceAudioInputParametersService().
|
private |
Definition at line 2677 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGAudioOutputDevice::setCopyToUdp(), SWGSDRangel::SWGAudioOutputDevice::setIndex(), SWGSDRangel::SWGAudioOutputDevice::setSampleRate(), SWGSDRangel::SWGAudioOutputDevice::setUdpAddress(), SWGSDRangel::SWGAudioOutputDevice::setUdpChannelCodec(), SWGSDRangel::SWGAudioOutputDevice::setUdpChannelMode(), SWGSDRangel::SWGAudioOutputDevice::setUdpDecimationFactor(), SWGSDRangel::SWGAudioOutputDevice::setUdpPort(), and SWGSDRangel::SWGAudioOutputDevice::setUdpUsesRtp().
Referenced by instanceAudioOutputParametersService().
|
private |
Definition at line 2321 of file webapirequestmapper.cpp.
References appendSettingsSubKeys(), SWGSDRangel::SWGAMDemodSettings::fromJsonObject(), SWGSDRangel::SWGBFMDemodSettings::fromJsonObject(), SWGSDRangel::SWGNFMDemodSettings::fromJsonObject(), SWGSDRangel::SWGLocalSinkSettings::fromJsonObject(), SWGSDRangel::SWGDSDDemodSettings::fromJsonObject(), SWGSDRangel::SWGLocalSourceSettings::fromJsonObject(), SWGSDRangel::SWGFreeDVDemodSettings::fromJsonObject(), SWGSDRangel::SWGRemoteSinkSettings::fromJsonObject(), SWGSDRangel::SWGRemoteSourceSettings::fromJsonObject(), SWGSDRangel::SWGATVModSettings::fromJsonObject(), SWGSDRangel::SWGSSBDemodSettings::fromJsonObject(), SWGSDRangel::SWGFreqTrackerSettings::fromJsonObject(), SWGSDRangel::SWGUDPSourceSettings::fromJsonObject(), SWGSDRangel::SWGUDPSinkSettings::fromJsonObject(), SWGSDRangel::SWGWFMDemodSettings::fromJsonObject(), SWGSDRangel::SWGWFMModSettings::fromJsonObject(), SWGSDRangel::SWGNFMModSettings::fromJsonObject(), SWGSDRangel::SWGAMModSettings::fromJsonObject(), SWGSDRangel::SWGFreeDVModSettings::fromJsonObject(), SWGSDRangel::SWGSSBModSettings::fromJsonObject(), SWGSDRangel::SWGChannelSettings::getAmDemodSettings(), SWGSDRangel::SWGChannelSettings::getAmModSettings(), SWGSDRangel::SWGChannelSettings::getAtvModSettings(), SWGSDRangel::SWGChannelSettings::getBfmDemodSettings(), SWGSDRangel::SWGChannelSettings::getChannelType(), SWGSDRangel::SWGChannelSettings::getDirection(), SWGSDRangel::SWGChannelSettings::getDsdDemodSettings(), SWGSDRangel::SWGChannelSettings::getFreeDvDemodSettings(), SWGSDRangel::SWGChannelSettings::getFreeDvModSettings(), SWGSDRangel::SWGChannelSettings::getFreqTrackerSettings(), SWGSDRangel::SWGChannelSettings::getLocalSinkSettings(), SWGSDRangel::SWGChannelSettings::getLocalSourceSettings(), SWGSDRangel::SWGChannelSettings::getNfmDemodSettings(), SWGSDRangel::SWGChannelSettings::getNfmModSettings(), SWGSDRangel::SWGChannelSettings::getRemoteSinkSettings(), SWGSDRangel::SWGChannelSettings::getRemoteSourceSettings(), SWGSDRangel::SWGChannelSettings::getSsbDemodSettings(), SWGSDRangel::SWGChannelSettings::getSsbModSettings(), SWGSDRangel::SWGChannelSettings::getUdpSinkSettings(), SWGSDRangel::SWGChannelSettings::getUdpSourceSettings(), SWGSDRangel::SWGChannelSettings::getWfmDemodSettings(), SWGSDRangel::SWGChannelSettings::getWfmModSettings(), SWGSDRangel::SWGChannelSettings::setAmDemodSettings(), SWGSDRangel::SWGChannelSettings::setAmModSettings(), SWGSDRangel::SWGChannelSettings::setAtvModSettings(), SWGSDRangel::SWGChannelSettings::setBfmDemodSettings(), SWGSDRangel::SWGChannelSettings::setChannelType(), SWGSDRangel::SWGChannelSettings::setDirection(), SWGSDRangel::SWGChannelSettings::setDsdDemodSettings(), SWGSDRangel::SWGChannelSettings::setFreeDvDemodSettings(), SWGSDRangel::SWGChannelSettings::setFreeDvModSettings(), SWGSDRangel::SWGChannelSettings::setFreqTrackerSettings(), SWGSDRangel::SWGChannelSettings::setLocalSinkSettings(), SWGSDRangel::SWGChannelSettings::setLocalSourceSettings(), SWGSDRangel::SWGChannelSettings::setNfmDemodSettings(), SWGSDRangel::SWGChannelSettings::setNfmModSettings(), SWGSDRangel::SWGChannelSettings::setRemoteSinkSettings(), SWGSDRangel::SWGChannelSettings::setRemoteSourceSettings(), SWGSDRangel::SWGChannelSettings::setSsbDemodSettings(), SWGSDRangel::SWGChannelSettings::setSsbModSettings(), SWGSDRangel::SWGChannelSettings::setUdpSinkSettings(), SWGSDRangel::SWGChannelSettings::setUdpSourceSettings(), SWGSDRangel::SWGChannelSettings::setWfmDemodSettings(), and SWGSDRangel::SWGChannelSettings::setWfmModSettings().
Referenced by devicesetChannelSettingsService().
|
private |
Definition at line 1797 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGDeviceListItem::setDeviceStreamIndex(), SWGSDRangel::SWGDeviceListItem::setDirection(), SWGSDRangel::SWGDeviceListItem::setDisplayedName(), SWGSDRangel::SWGDeviceListItem::setHwType(), SWGSDRangel::SWGDeviceListItem::setIndex(), SWGSDRangel::SWGDeviceListItem::setSequence(), and SWGSDRangel::SWGDeviceListItem::setSerial().
Referenced by devicesetDeviceService().
|
private |
Definition at line 1853 of file webapirequestmapper.cpp.
References appendSettingsArrayKeys(), SWGSDRangel::SWGAirspySettings::fromJsonObject(), SWGSDRangel::SWGAirspyHFSettings::fromJsonObject(), SWGSDRangel::SWGHackRFInputSettings::fromJsonObject(), SWGSDRangel::SWGTestSourceSettings::fromJsonObject(), SWGSDRangel::SWGBladeRF1OutputSettings::fromJsonObject(), SWGSDRangel::SWGBladeRF2InputSettings::fromJsonObject(), SWGSDRangel::SWGHackRFOutputSettings::fromJsonObject(), SWGSDRangel::SWGXtrxInputSettings::fromJsonObject(), SWGSDRangel::SWGBladeRF2OutputSettings::fromJsonObject(), SWGSDRangel::SWGKiwiSDRSettings::fromJsonObject(), SWGSDRangel::SWGXtrxOutputSettings::fromJsonObject(), SWGSDRangel::SWGLimeSdrInputSettings::fromJsonObject(), SWGSDRangel::SWGRemoteInputSettings::fromJsonObject(), SWGSDRangel::SWGLocalInputSettings::fromJsonObject(), SWGSDRangel::SWGLimeSdrOutputSettings::fromJsonObject(), SWGSDRangel::SWGRemoteOutputSettings::fromJsonObject(), SWGSDRangel::SWGLocalOutputSettings::fromJsonObject(), SWGSDRangel::SWGBladeRF1InputSettings::fromJsonObject(), SWGSDRangel::SWGFCDProSettings::fromJsonObject(), SWGSDRangel::SWGPerseusSettings::fromJsonObject(), SWGSDRangel::SWGPlutoSdrInputSettings::fromJsonObject(), SWGSDRangel::SWGPlutoSdrOutputSettings::fromJsonObject(), SWGSDRangel::SWGFCDProPlusSettings::fromJsonObject(), SWGSDRangel::SWGRtlSdrSettings::fromJsonObject(), SWGSDRangel::SWGFileInputSettings::fromJsonObject(), SWGSDRangel::SWGSDRPlaySettings::fromJsonObject(), SWGSDRangel::SWGTestMISettings::fromJsonObject(), SWGSDRangel::SWGSoapySDRInputSettings::fromJsonObject(), SWGSDRangel::SWGSoapySDROutputSettings::fromJsonObject(), SWGSDRangel::SWGDeviceSettings::getAirspyHfSettings(), SWGSDRangel::SWGDeviceSettings::getAirspySettings(), SWGSDRangel::SWGDeviceSettings::getBladeRf1InputSettings(), SWGSDRangel::SWGDeviceSettings::getBladeRf1OutputSettings(), SWGSDRangel::SWGDeviceSettings::getBladeRf2InputSettings(), SWGSDRangel::SWGDeviceSettings::getBladeRf2OutputSettings(), SWGSDRangel::SWGDeviceSettings::getDeviceHwType(), SWGSDRangel::SWGDeviceSettings::getDirection(), SWGSDRangel::SWGDeviceSettings::getFcdProPlusSettings(), SWGSDRangel::SWGDeviceSettings::getFcdProSettings(), SWGSDRangel::SWGDeviceSettings::getFileInputSettings(), SWGSDRangel::SWGDeviceSettings::getHackRfInputSettings(), SWGSDRangel::SWGDeviceSettings::getHackRfOutputSettings(), SWGSDRangel::SWGDeviceSettings::getKiwiSdrSettings(), SWGSDRangel::SWGDeviceSettings::getLimeSdrInputSettings(), SWGSDRangel::SWGDeviceSettings::getLimeSdrOutputSettings(), SWGSDRangel::SWGDeviceSettings::getLocalInputSettings(), SWGSDRangel::SWGDeviceSettings::getLocalOutputSettings(), SWGSDRangel::SWGDeviceSettings::getPerseusSettings(), SWGSDRangel::SWGDeviceSettings::getPlutoSdrInputSettings(), SWGSDRangel::SWGDeviceSettings::getPlutoSdrOutputSettings(), SWGSDRangel::SWGDeviceSettings::getRemoteInputSettings(), SWGSDRangel::SWGDeviceSettings::getRemoteOutputSettings(), SWGSDRangel::SWGDeviceSettings::getRtlSdrSettings(), SWGSDRangel::SWGDeviceSettings::getSdrPlaySettings(), SWGSDRangel::SWGDeviceSettings::getSoapySdrInputSettings(), SWGSDRangel::SWGDeviceSettings::getSoapySdrOutputSettings(), SWGSDRangel::SWGDeviceSettings::getTestMiSettings(), SWGSDRangel::SWGDeviceSettings::getTestSourceSettings(), SWGSDRangel::SWGDeviceSettings::getXtrxInputSettings(), SWGSDRangel::SWGDeviceSettings::getXtrxOutputSettings(), SWGSDRangel::SWGSoapySDRInputSettings::init(), SWGSDRangel::SWGDeviceSettings::setAirspyHfSettings(), SWGSDRangel::SWGDeviceSettings::setAirspySettings(), SWGSDRangel::SWGDeviceSettings::setBladeRf1InputSettings(), SWGSDRangel::SWGDeviceSettings::setBladeRf1OutputSettings(), SWGSDRangel::SWGDeviceSettings::setBladeRf2InputSettings(), SWGSDRangel::SWGDeviceSettings::setBladeRf2OutputSettings(), SWGSDRangel::SWGDeviceSettings::setDeviceHwType(), SWGSDRangel::SWGDeviceSettings::setDirection(), SWGSDRangel::SWGDeviceSettings::setFcdProPlusSettings(), SWGSDRangel::SWGDeviceSettings::setFcdProSettings(), SWGSDRangel::SWGDeviceSettings::setFileInputSettings(), SWGSDRangel::SWGDeviceSettings::setHackRfInputSettings(), SWGSDRangel::SWGDeviceSettings::setHackRfOutputSettings(), SWGSDRangel::SWGDeviceSettings::setKiwiSdrSettings(), SWGSDRangel::SWGDeviceSettings::setLimeSdrInputSettings(), SWGSDRangel::SWGDeviceSettings::setLimeSdrOutputSettings(), SWGSDRangel::SWGDeviceSettings::setLocalInputSettings(), SWGSDRangel::SWGDeviceSettings::setLocalOutputSettings(), SWGSDRangel::SWGDeviceSettings::setPerseusSettings(), SWGSDRangel::SWGDeviceSettings::setPlutoSdrInputSettings(), SWGSDRangel::SWGDeviceSettings::setPlutoSdrOutputSettings(), SWGSDRangel::SWGDeviceSettings::setRemoteInputSettings(), SWGSDRangel::SWGDeviceSettings::setRemoteOutputSettings(), SWGSDRangel::SWGDeviceSettings::setRtlSdrSettings(), SWGSDRangel::SWGDeviceSettings::setSdrPlaySettings(), SWGSDRangel::SWGDeviceSettings::setSoapySdrInputSettings(), SWGSDRangel::SWGDeviceSettings::setSoapySdrOutputSettings(), SWGSDRangel::SWGDeviceSettings::setTestMiSettings(), SWGSDRangel::SWGDeviceSettings::setTestSourceSettings(), SWGSDRangel::SWGDeviceSettings::setXtrxInputSettings(), and SWGSDRangel::SWGDeviceSettings::setXtrxOutputSettings().
Referenced by devicesetDeviceSettingsService().
|
private |
Definition at line 1782 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGPresetExport::getFilePath(), SWGSDRangel::SWGPresetExport::getPreset(), and validatePresetIdentifer().
Referenced by instancePresetFileService().
|
private |
Definition at line 1777 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGPresetIdentifier::getGroupName(), SWGSDRangel::SWGPresetIdentifier::getName(), and SWGSDRangel::SWGPresetIdentifier::getType().
Referenced by instancePresetService(), validatePresetExport(), and validatePresetTransfer().
|
private |
Definition at line 1766 of file webapirequestmapper.cpp.
References SWGSDRangel::SWGPresetTransfer::getPreset(), and validatePresetIdentifer().
Referenced by instancePresetService().
|
private |
Definition at line 48 of file webapirequestmapper.h.
Referenced by devicesetChannelIndexService(), devicesetChannelReportService(), devicesetChannelService(), devicesetChannelSettingsService(), devicesetChannelsReportService(), devicesetDeviceReportService(), devicesetDeviceRunService(), devicesetDeviceService(), devicesetDeviceSettingsService(), devicesetFocusService(), devicesetService(), instanceAMBEDevicesService(), instanceAMBESerialService(), instanceAudioInputCleanupService(), instanceAudioInputParametersService(), instanceAudioOutputCleanupService(), instanceAudioOutputParametersService(), instanceAudioService(), instanceChannelsService(), instanceConfigService(), instanceDeviceSetService(), instanceDeviceSetsService(), instanceDevicesService(), instanceLocationService(), instanceLoggingService(), instancePresetFileService(), instancePresetService(), instancePresetsService(), instanceSummaryService(), and service().
|
private |
Definition at line 49 of file webapirequestmapper.h.
Referenced by service(), WebAPIRequestMapper(), and ~WebAPIRequestMapper().