| 
									
										
										
										
											2017-11-17 03:17:15 +01:00
										 |  |  | ///////////////////////////////////////////////////////////////////////////////////
 | 
					
						
							|  |  |  | // Copyright (C) 2017 Edouard Griffiths, F4EXB.                                  //
 | 
					
						
							|  |  |  | //                                                                               //
 | 
					
						
							|  |  |  | // Swagger server adapter interface                                              //
 | 
					
						
							|  |  |  | //                                                                               //
 | 
					
						
							|  |  |  | // This program is free software; you can redistribute it and/or modify          //
 | 
					
						
							|  |  |  | // it under the terms of the GNU General Public License as published by          //
 | 
					
						
							|  |  |  | // the Free Software Foundation as version 3 of the License, or                  //
 | 
					
						
							| 
									
										
										
										
											2019-04-11 14:32:15 +02:00
										 |  |  | // (at your option) any later version.                                           //
 | 
					
						
							| 
									
										
										
										
											2017-11-17 03:17:15 +01:00
										 |  |  | //                                                                               //
 | 
					
						
							|  |  |  | // This program is distributed in the hope that it will be useful,               //
 | 
					
						
							|  |  |  | // but WITHOUT ANY WARRANTY; without even the implied warranty of                //
 | 
					
						
							|  |  |  | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the                  //
 | 
					
						
							|  |  |  | // GNU General Public License V3 for more details.                               //
 | 
					
						
							|  |  |  | //                                                                               //
 | 
					
						
							|  |  |  | // You should have received a copy of the GNU General Public License             //
 | 
					
						
							|  |  |  | // along with this program. If not, see <http://www.gnu.org/licenses/>.          //
 | 
					
						
							|  |  |  | ///////////////////////////////////////////////////////////////////////////////////
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef SDRBASE_WEBAPI_WEBAPIREQUESTMAPPER_H_
 | 
					
						
							|  |  |  | #define SDRBASE_WEBAPI_WEBAPIREQUESTMAPPER_H_
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-24 17:12:53 +01:00
										 |  |  | #include <QJsonParseError>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-17 03:17:15 +01:00
										 |  |  | #include "httprequesthandler.h"
 | 
					
						
							|  |  |  | #include "httprequest.h"
 | 
					
						
							|  |  |  | #include "httpresponse.h"
 | 
					
						
							| 
									
										
										
										
											2017-11-20 18:38:26 +01:00
										 |  |  | #include "staticfilecontroller.h"
 | 
					
						
							| 
									
										
										
										
											2017-11-17 03:17:15 +01:00
										 |  |  | #include "webapiadapterinterface.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 13:49:21 +01:00
										 |  |  | #include "export.h"
 | 
					
						
							| 
									
										
										
										
											2018-03-03 20:23:38 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-02 05:45:30 +01:00
										 |  |  | namespace SWGSDRangel | 
					
						
							| 
									
										
										
										
											2017-11-25 19:42:56 +01:00
										 |  |  | { | 
					
						
							|  |  |  |     class SWGPresetTransfer; | 
					
						
							|  |  |  |     class SWGPresetIdentifier; | 
					
						
							| 
									
										
										
										
											2019-08-06 19:06:49 +02:00
										 |  |  |     class SWGPreset; | 
					
						
							|  |  |  |     class SWGChannelConfig; | 
					
						
							|  |  |  |     class SWGDeviceConfig; | 
					
						
							| 
									
										
										
										
											2020-09-24 05:38:05 +02:00
										 |  |  |     class SWGFeatureConfig; | 
					
						
							|  |  |  |     class SWGFeatureActions; | 
					
						
							|  |  |  |     class SWGFeatureSetPreset; | 
					
						
							| 
									
										
										
										
											2017-11-25 19:42:56 +01:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-03 20:23:38 +01:00
										 |  |  | class SDRBASE_API WebAPIRequestMapper : public qtwebapp::HttpRequestHandler { | 
					
						
							| 
									
										
										
										
											2017-11-17 03:17:15 +01:00
										 |  |  |     Q_OBJECT | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     WebAPIRequestMapper(QObject* parent=0); | 
					
						
							| 
									
										
										
										
											2017-11-20 18:38:26 +01:00
										 |  |  |     ~WebAPIRequestMapper(); | 
					
						
							| 
									
										
										
										
											2017-11-17 03:17:15 +01:00
										 |  |  |     void service(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void setAdapter(WebAPIAdapterInterface *adapter) { m_adapter = adapter; } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							|  |  |  |     WebAPIAdapterInterface *m_adapter; | 
					
						
							| 
									
										
										
										
											2017-11-20 18:38:26 +01:00
										 |  |  |     qtwebapp::StaticFileController *m_staticFileController; | 
					
						
							| 
									
										
										
										
											2017-11-24 17:12:53 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     void instanceSummaryService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2019-08-01 02:16:56 +02:00
										 |  |  |     void instanceConfigService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2017-11-24 17:12:53 +01:00
										 |  |  |     void instanceDevicesService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void instanceChannelsService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2021-08-29 00:48:35 +02:00
										 |  |  |     void instanceFeaturesService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2017-11-24 17:12:53 +01:00
										 |  |  |     void instanceLoggingService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void instanceAudioService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2018-03-29 01:43:31 +02:00
										 |  |  |     void instanceAudioInputParametersService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void instanceAudioOutputParametersService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void instanceAudioInputCleanupService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void instanceAudioOutputCleanupService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2017-11-25 04:02:11 +01:00
										 |  |  |     void instanceLocationService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2017-12-21 00:50:58 +01:00
										 |  |  |     void instancePresetsService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2017-11-25 11:14:52 +01:00
										 |  |  |     void instancePresetService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2017-12-19 01:11:34 +01:00
										 |  |  |     void instancePresetFileService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2022-05-08 19:33:10 +02:00
										 |  |  |     void instancePresetBlobService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void instanceConfigurationsService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void instanceConfigurationService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void instanceConfigurationFileService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void instanceConfigurationBlobService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2021-09-04 05:58:06 +02:00
										 |  |  |     void instanceFeaturePresetsService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void instanceFeaturePresetService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2017-11-25 20:14:16 +01:00
										 |  |  |     void instanceDeviceSetsService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2017-12-22 01:07:03 +01:00
										 |  |  |     void instanceDeviceSetService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2022-05-09 21:31:14 +02:00
										 |  |  |     void instanceWorkspaceService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2017-11-24 17:12:53 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-04 18:22:25 +01:00
										 |  |  |     void devicesetService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2020-05-05 18:58:18 +02:00
										 |  |  |     void devicesetSpectrumSettingsService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void devicesetSpectrumServerService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2022-05-13 22:24:48 +02:00
										 |  |  |     void devicesetSpectrumWorkspaceService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2017-12-04 18:22:25 +01:00
										 |  |  |     void devicesetDeviceService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2017-12-06 22:08:34 +01:00
										 |  |  |     void devicesetDeviceSettingsService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2017-12-08 17:12:33 +01:00
										 |  |  |     void devicesetDeviceRunService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2019-12-24 19:08:11 +01:00
										 |  |  |     void devicesetDeviceSubsystemRunService(const std::string& indexStr, const std::string& subsystemIndexStr,qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2018-05-26 01:43:28 +02:00
										 |  |  |     void devicesetDeviceReportService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2020-03-09 04:01:23 +01:00
										 |  |  |     void devicesetDeviceActionsService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2022-05-13 22:24:48 +02:00
										 |  |  |     void devicesetDeviceWorkspaceService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2018-03-19 00:08:38 +01:00
										 |  |  |     void devicesetChannelsReportService(const std::string& deviceSetIndexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2017-12-11 01:18:10 +01:00
										 |  |  |     void devicesetChannelService(const std::string& deviceSetIndexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void devicesetChannelIndexService(const std::string& deviceSetIndexStr, const std::string& channelIndexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2017-12-10 20:27:08 +01:00
										 |  |  |     void devicesetChannelSettingsService(const std::string& deviceSetIndexStr, const std::string& channelIndexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2018-03-18 20:17:11 +01:00
										 |  |  |     void devicesetChannelReportService(const std::string& deviceSetIndexStr, const std::string& channelIndexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2020-03-09 19:56:09 +01:00
										 |  |  |     void devicesetChannelActionsService(const std::string& deviceSetIndexStr, const std::string& channelIndexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2022-05-13 22:24:48 +02:00
										 |  |  |     void devicesetChannelWorkspaceService(const std::string& deviceSetIndexStr, const std::string& channelIndexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2017-11-26 10:37:39 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-05-04 13:27:13 +02:00
										 |  |  |     void featuresetService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void featuresetFeatureService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void featuresetPresetService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void featuresetFeatureIndexService(const std::string& featureIndexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void featuresetFeatureRunService(const std::string& featureIndexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void featuresetFeatureSettingsService(const std::string& featureIndexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void featuresetFeatureReportService(const std::string& featureIndexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							|  |  |  |     void featuresetFeatureActionsService(const std::string& featureIndexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2022-05-13 22:24:48 +02:00
										 |  |  |     void featuresetFeatureWorkspaceService(const std::string& featureIndexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2022-05-09 21:31:14 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-02 05:45:30 +01:00
										 |  |  |     bool validatePresetTransfer(SWGSDRangel::SWGPresetTransfer& presetTransfer); | 
					
						
							|  |  |  |     bool validatePresetIdentifer(SWGSDRangel::SWGPresetIdentifier& presetIdentifier); | 
					
						
							| 
									
										
										
										
											2017-12-19 01:11:34 +01:00
										 |  |  |     bool validatePresetExport(SWGSDRangel::SWGPresetExport& presetExport); | 
					
						
							| 
									
										
										
										
											2020-05-05 18:58:18 +02:00
										 |  |  |     bool validateSpectrumSettings(SWGSDRangel::SWGGLSpectrum& spectrumSettings, QJsonObject& jsonObject, QStringList& spectrumSettingsKeys); | 
					
						
							| 
									
										
										
										
											2017-12-23 07:28:02 +01:00
										 |  |  |     bool validateDeviceListItem(SWGSDRangel::SWGDeviceListItem& deviceListItem, QJsonObject& jsonObject); | 
					
						
							| 
									
										
										
										
											2017-12-27 01:46:33 +01:00
										 |  |  |     bool validateDeviceSettings(SWGSDRangel::SWGDeviceSettings& deviceSettings, QJsonObject& jsonObject, QStringList& deviceSettingsKeys); | 
					
						
							| 
									
										
										
										
											2020-03-09 19:56:09 +01:00
										 |  |  |     bool validateDeviceActions(SWGSDRangel::SWGDeviceActions& deviceActions, QJsonObject& jsonObject, QStringList& deviceActionsKeys); | 
					
						
							|  |  |  |     bool validateChannelSettings(SWGSDRangel::SWGChannelSettings& channelSettings, QJsonObject& jsonObject, QStringList& channelSettingsKeys); | 
					
						
							|  |  |  |     bool validateChannelActions(SWGSDRangel::SWGChannelActions& channelActions, QJsonObject& jsonObject, QStringList& channelActionsKeys); | 
					
						
							| 
									
										
										
										
											2021-09-04 05:58:06 +02:00
										 |  |  |     bool validateFeaturePresetIdentifer(SWGSDRangel::SWGFeaturePresetIdentifier& presetIdentifier); | 
					
						
							| 
									
										
										
										
											2020-09-29 01:14:44 +02:00
										 |  |  |     bool validateFeatureSettings(SWGSDRangel::SWGFeatureSettings& featureSettings, QJsonObject& jsonObject, QStringList& featureSettingsKeys); | 
					
						
							|  |  |  |     bool validateFeatureActions(SWGSDRangel::SWGFeatureActions& featureActions, QJsonObject& jsonObject, QStringList& featureActionsKeys); | 
					
						
							| 
									
										
										
										
											2018-03-29 00:38:01 +02:00
										 |  |  |     bool validateAudioInputDevice(SWGSDRangel::SWGAudioInputDevice& audioInputDevice, QJsonObject& jsonObject, QStringList& audioInputDeviceKeys); | 
					
						
							|  |  |  |     bool validateAudioOutputDevice(SWGSDRangel::SWGAudioOutputDevice& audioOutputDevice, QJsonObject& jsonObject, QStringList& audioOutputDeviceKeys); | 
					
						
							| 
									
										
										
										
											2019-08-06 19:06:49 +02:00
										 |  |  |     bool validateConfig(SWGSDRangel::SWGInstanceConfigResponse& config, QJsonObject& jsonObject, WebAPIAdapterInterface::ConfigKeys& configKeys); | 
					
						
							| 
									
										
										
										
											2022-05-13 22:24:48 +02:00
										 |  |  |     bool validateWorkspaceInfo(SWGSDRangel::SWGWorkspaceInfo& workspaceInfo, QJsonObject& jsonObject); | 
					
						
							| 
									
										
										
										
											2022-05-08 19:33:10 +02:00
										 |  |  |     bool validateConfigurationIdentifier(SWGSDRangel::SWGConfigurationIdentifier& configurationIdentifier); | 
					
						
							|  |  |  |     bool validateConfigurationImportExport(SWGSDRangel::SWGConfigurationImportExport& configuratopmImportExport); | 
					
						
							| 
									
										
										
										
											2019-08-06 19:06:49 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-24 05:38:05 +02:00
										 |  |  |     bool appendFeatureSetPresetKeys( | 
					
						
							|  |  |  |         SWGSDRangel::SWGFeatureSetPreset *preset, | 
					
						
							|  |  |  |         const QJsonObject& presetJson, | 
					
						
							|  |  |  |         WebAPIAdapterInterface::FeatureSetPresetKeys& featureSetPresetKeys | 
					
						
							|  |  |  |     ); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-06 19:06:49 +02:00
										 |  |  |     bool appendPresetKeys( | 
					
						
							|  |  |  |             SWGSDRangel::SWGPreset *preset, | 
					
						
							|  |  |  |             const QJsonObject& presetJson, | 
					
						
							|  |  |  |             WebAPIAdapterInterface::PresetKeys& presetKeys); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-24 05:38:05 +02:00
										 |  |  |     bool appendPresetFeatureKeys( | 
					
						
							|  |  |  |         SWGSDRangel::SWGFeatureConfig *feature, | 
					
						
							|  |  |  |         const QJsonObject& featureSettingsJson, | 
					
						
							|  |  |  |         WebAPIAdapterInterface::FeatureKeys& featureKeys | 
					
						
							|  |  |  |     ); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-06 19:06:49 +02:00
										 |  |  |     bool appendPresetChannelKeys( | 
					
						
							|  |  |  |             SWGSDRangel::SWGChannelConfig *channel, | 
					
						
							| 
									
										
										
										
											2019-08-07 00:27:34 +02:00
										 |  |  |             const QJsonObject& channelSettngsJson, | 
					
						
							| 
									
										
										
										
											2019-08-06 19:06:49 +02:00
										 |  |  |             WebAPIAdapterInterface::ChannelKeys& channelKeys | 
					
						
							|  |  |  |     ); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-09 19:56:09 +01:00
										 |  |  |     bool getChannelSettings( | 
					
						
							| 
									
										
										
										
											2019-08-06 19:06:49 +02:00
										 |  |  |         const QString& channelSettingsKey, | 
					
						
							|  |  |  |         SWGSDRangel::SWGChannelSettings *channelSettings, | 
					
						
							|  |  |  |         const QJsonObject& channelSettingsJson, | 
					
						
							|  |  |  |         QStringList& channelSettingsKeys | 
					
						
							|  |  |  |     ); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-09 19:56:09 +01:00
										 |  |  |     bool getChannelActions( | 
					
						
							|  |  |  |         const QString& channelActionsKey, | 
					
						
							|  |  |  |         SWGSDRangel::SWGChannelActions *channelActions, | 
					
						
							|  |  |  |         const QJsonObject& channelActionsJson, | 
					
						
							|  |  |  |         QStringList& channelSettingsKeys | 
					
						
							|  |  |  |     ); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-06 19:06:49 +02:00
										 |  |  |     bool appendPresetDeviceKeys( | 
					
						
							|  |  |  |             SWGSDRangel::SWGDeviceConfig *device, | 
					
						
							| 
									
										
										
										
											2019-08-07 00:27:34 +02:00
										 |  |  |             const QJsonObject& deviceSettngsJson, | 
					
						
							|  |  |  |             WebAPIAdapterInterface::DeviceKeys& devicelKeys | 
					
						
							|  |  |  |     ); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-09 19:56:09 +01:00
										 |  |  |     bool getDeviceSettings( | 
					
						
							| 
									
										
										
										
											2019-08-07 00:27:34 +02:00
										 |  |  |         const QString& deviceSettingsKey, | 
					
						
							|  |  |  |         SWGSDRangel::SWGDeviceSettings *deviceSettings, | 
					
						
							|  |  |  |         const QJsonObject& deviceSettingsJson, | 
					
						
							| 
									
										
										
										
											2020-03-09 19:56:09 +01:00
										 |  |  |         QStringList& deviceActionsKeys | 
					
						
							|  |  |  |     ); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     bool getDeviceActions( | 
					
						
							|  |  |  |         const QString& deviceActionsKey, | 
					
						
							|  |  |  |         SWGSDRangel::SWGDeviceActions *deviceActions, | 
					
						
							|  |  |  |         const QJsonObject& deviceActionsJson, | 
					
						
							|  |  |  |         QStringList& deviceActionsKeys | 
					
						
							| 
									
										
										
										
											2019-08-06 19:06:49 +02:00
										 |  |  |     ); | 
					
						
							| 
									
										
										
										
											2017-11-25 19:42:56 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-01 00:20:14 +01:00
										 |  |  |     void extractKeys( | 
					
						
							|  |  |  |         const QJsonObject& rootJsonObject, | 
					
						
							|  |  |  |         QStringList& keyList | 
					
						
							|  |  |  |     ); | 
					
						
							| 
									
										
										
										
											2019-05-26 02:14:35 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-24 05:38:05 +02:00
										 |  |  |     bool getFeatureSettings( | 
					
						
							|  |  |  |         const QString& featureSettingsKey, | 
					
						
							|  |  |  |         SWGSDRangel::SWGFeatureSettings *featureSettings, | 
					
						
							|  |  |  |         const QJsonObject& featureSettingsJson, | 
					
						
							|  |  |  |         QStringList& featureSettingsKeys | 
					
						
							|  |  |  |     ); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     bool getFeatureActions( | 
					
						
							|  |  |  |         const QString& featureActionsKey, | 
					
						
							|  |  |  |         SWGSDRangel::SWGFeatureActions *featureActions, | 
					
						
							|  |  |  |         const QJsonObject& featureActionsJson, | 
					
						
							|  |  |  |         QStringList& featureSettingsKeys | 
					
						
							|  |  |  |     ); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-07 18:50:36 +01:00
										 |  |  |     bool parseJsonBody(QString& jsonStr, QJsonObject& jsonObject, qtwebapp::HttpResponse& response); | 
					
						
							| 
									
										
										
										
											2017-12-06 22:08:34 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-05-05 18:58:18 +02:00
										 |  |  |     void resetSpectrumSettings(SWGSDRangel::SWGGLSpectrum& spectrumSettings); | 
					
						
							| 
									
										
										
										
											2017-12-06 22:08:34 +01:00
										 |  |  |     void resetDeviceSettings(SWGSDRangel::SWGDeviceSettings& deviceSettings); | 
					
						
							| 
									
										
										
										
											2018-05-28 11:44:32 +02:00
										 |  |  |     void resetDeviceReport(SWGSDRangel::SWGDeviceReport& deviceReport); | 
					
						
							| 
									
										
										
										
											2020-03-09 04:01:23 +01:00
										 |  |  |     void resetDeviceActions(SWGSDRangel::SWGDeviceActions& deviceActions); | 
					
						
							| 
									
										
										
										
											2017-12-10 20:27:08 +01:00
										 |  |  |     void resetChannelSettings(SWGSDRangel::SWGChannelSettings& deviceSettings); | 
					
						
							| 
									
										
										
										
											2020-03-09 04:01:23 +01:00
										 |  |  |     void resetChannelReport(SWGSDRangel::SWGChannelReport& channelReport); | 
					
						
							|  |  |  |     void resetChannelActions(SWGSDRangel::SWGChannelActions& channelActions); | 
					
						
							| 
									
										
										
										
											2018-03-29 00:38:01 +02:00
										 |  |  |     void resetAudioInputDevice(SWGSDRangel::SWGAudioInputDevice& audioInputDevice); | 
					
						
							|  |  |  |     void resetAudioOutputDevice(SWGSDRangel::SWGAudioOutputDevice& audioOutputDevice); | 
					
						
							| 
									
										
										
										
											2020-09-29 01:14:44 +02:00
										 |  |  |     void resetFeatureSettings(SWGSDRangel::SWGFeatureSettings& deviceSettings); | 
					
						
							|  |  |  |     void resetFeatureReport(SWGSDRangel::SWGFeatureReport& featureReport); | 
					
						
							|  |  |  |     void resetFeatureActions(SWGSDRangel::SWGFeatureActions& featureActions); | 
					
						
							| 
									
										
										
										
											2019-08-06 19:06:49 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     static const QMap<QString, QString> m_channelURIToSettingsKey; | 
					
						
							| 
									
										
										
										
											2019-08-07 00:27:34 +02:00
										 |  |  |     static const QMap<QString, QString> m_deviceIdToSettingsKey; | 
					
						
							|  |  |  |     static const QMap<QString, QString> m_channelTypeToSettingsKey; | 
					
						
							|  |  |  |     static const QMap<QString, QString> m_sourceDeviceHwIdToSettingsKey; | 
					
						
							|  |  |  |     static const QMap<QString, QString> m_sinkDeviceHwIdToSettingsKey; | 
					
						
							| 
									
										
										
										
											2020-03-09 19:56:09 +01:00
										 |  |  |     static const QMap<QString, QString> m_mimoDeviceHwIdToSettingsKey; | 
					
						
							|  |  |  |     static const QMap<QString, QString> m_channelTypeToActionsKey; | 
					
						
							|  |  |  |     static const QMap<QString, QString> m_sourceDeviceHwIdToActionsKey; | 
					
						
							|  |  |  |     static const QMap<QString, QString> m_sinkDeviceHwIdToActionsKey; | 
					
						
							|  |  |  |     static const QMap<QString, QString> m_mimoDeviceHwIdToActionsKey; | 
					
						
							| 
									
										
										
										
											2020-09-24 05:38:05 +02:00
										 |  |  |     static const QMap<QString, QString> m_featureTypeToSettingsKey; | 
					
						
							|  |  |  |     static const QMap<QString, QString> m_featureTypeToActionsKey; | 
					
						
							|  |  |  |     static const QMap<QString, QString> m_featureURIToSettingsKey; | 
					
						
							| 
									
										
										
										
											2017-11-17 03:17:15 +01:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif /* SDRBASE_WEBAPI_WEBAPIREQUESTMAPPER_H_ */
 |