2017-11-18 18:34:47 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
2020-10-11 11:04:34 +00:00
|
|
|
// Copyright (C) 2017-2020 Edouard Griffiths, F4EXB. //
|
2017-11-18 18:34:47 +00:00
|
|
|
// //
|
|
|
|
// 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 12:43:33 +00:00
|
|
|
// (at your option) any later version. //
|
2017-11-18 18:34:47 +00: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/>. //
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2020-11-12 00:22:48 +00:00
|
|
|
#ifndef SDRBASE_WEBAPI_WEBAPIADAPTER_H_
|
|
|
|
#define SDRBASE_WEBAPI_WEBAPIADAPTER_H_
|
2017-11-18 18:34:47 +00:00
|
|
|
|
2017-11-23 17:43:01 +00:00
|
|
|
#include <QtGlobal>
|
|
|
|
|
2017-11-18 18:34:47 +00:00
|
|
|
#include "webapi/webapiadapterinterface.h"
|
2018-03-20 12:49:21 +00:00
|
|
|
#include "export.h"
|
2017-11-18 18:34:47 +00:00
|
|
|
|
2020-10-10 18:08:11 +00:00
|
|
|
class MainCore;
|
2020-10-11 10:39:30 +00:00
|
|
|
class DeviceSet;
|
2020-10-10 18:08:11 +00:00
|
|
|
class FeatureSet;
|
2017-11-18 18:34:47 +00:00
|
|
|
|
2020-10-11 10:39:30 +00:00
|
|
|
class SDRBASE_API WebAPIAdapter: public WebAPIAdapterInterface
|
2017-11-18 18:34:47 +00:00
|
|
|
{
|
|
|
|
public:
|
2020-10-11 10:39:30 +00:00
|
|
|
WebAPIAdapter();
|
|
|
|
virtual ~WebAPIAdapter();
|
2017-11-18 18:34:47 +00:00
|
|
|
|
|
|
|
virtual int instanceSummary(
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGInstanceSummaryResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-18 18:34:47 +00:00
|
|
|
|
2018-01-06 02:46:53 +00:00
|
|
|
virtual int instanceDelete(
|
2018-03-03 09:06:47 +00:00
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
2018-01-06 02:46:53 +00:00
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2019-08-01 00:16:56 +00:00
|
|
|
|
|
|
|
virtual int instanceConfigGet(
|
|
|
|
SWGSDRangel::SWGInstanceConfigResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2018-01-06 02:46:53 +00:00
|
|
|
|
2019-08-06 17:06:49 +00:00
|
|
|
virtual int instanceConfigPutPatch(
|
|
|
|
bool force, // PUT else PATCH
|
|
|
|
SWGSDRangel::SWGInstanceConfigResponse& query,
|
|
|
|
const ConfigKeys& configKeys,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2019-08-06 06:48:14 +00:00
|
|
|
|
2017-11-22 17:57:35 +00:00
|
|
|
virtual int instanceDevices(
|
2019-05-08 23:12:40 +00:00
|
|
|
int direction,
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGInstanceDevicesResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-22 17:57:35 +00:00
|
|
|
|
2017-11-23 00:19:32 +00:00
|
|
|
virtual int instanceChannels(
|
2019-05-08 23:12:40 +00:00
|
|
|
int direction,
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGInstanceChannelsResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-23 00:19:32 +00:00
|
|
|
|
2021-08-28 22:48:35 +00:00
|
|
|
virtual int instanceFeatures(
|
|
|
|
SWGSDRangel::SWGInstanceFeaturesResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2017-11-23 17:43:01 +00:00
|
|
|
virtual int instanceLoggingGet(
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGLoggingInfo& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-23 17:43:01 +00:00
|
|
|
|
|
|
|
virtual int instanceLoggingPut(
|
2018-02-14 00:42:35 +00:00
|
|
|
SWGSDRangel::SWGLoggingInfo& query,
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGLoggingInfo& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-23 17:43:01 +00:00
|
|
|
|
2017-11-24 07:46:12 +00:00
|
|
|
virtual int instanceAudioGet(
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGAudioDevices& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-24 07:46:12 +00:00
|
|
|
|
2018-03-28 22:38:01 +00:00
|
|
|
virtual int instanceAudioInputPatch(
|
|
|
|
SWGSDRangel::SWGAudioInputDevice& response,
|
|
|
|
const QStringList& audioInputKeys,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceAudioOutputPatch(
|
|
|
|
SWGSDRangel::SWGAudioOutputDevice& response,
|
|
|
|
const QStringList& audioOutputKeys,
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-24 16:12:53 +00:00
|
|
|
|
2018-03-28 23:43:31 +00:00
|
|
|
virtual int instanceAudioInputDelete(
|
|
|
|
SWGSDRangel::SWGAudioInputDevice& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceAudioOutputDelete(
|
|
|
|
SWGSDRangel::SWGAudioOutputDevice& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceAudioInputCleanupPatch(
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceAudioOutputCleanupPatch(
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2017-11-25 03:02:11 +00:00
|
|
|
virtual int instanceLocationGet(
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGLocationInformation& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-25 03:02:11 +00:00
|
|
|
|
|
|
|
virtual int instanceLocationPut(
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGLocationInformation& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2018-08-02 21:05:53 +00:00
|
|
|
|
|
|
|
virtual int instanceDVSerialGet(
|
2019-07-21 07:47:11 +00:00
|
|
|
SWGSDRangel::SWGDVSerialDevices& response,
|
2018-08-02 21:05:53 +00:00
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-25 03:02:11 +00:00
|
|
|
|
2017-11-25 03:43:22 +00:00
|
|
|
virtual int instanceDVSerialPatch(
|
|
|
|
bool dvserial,
|
2019-07-21 07:47:11 +00:00
|
|
|
SWGSDRangel::SWGDVSerialDevices& response,
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-25 03:43:22 +00:00
|
|
|
|
2019-07-20 23:57:51 +00:00
|
|
|
virtual int instanceAMBESerialGet(
|
2019-07-21 07:47:11 +00:00
|
|
|
SWGSDRangel::SWGDVSerialDevices& response,
|
2019-07-20 23:57:51 +00:00
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceAMBEDevicesGet(
|
|
|
|
SWGSDRangel::SWGAMBEDevices& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceAMBEDevicesPut(
|
|
|
|
SWGSDRangel::SWGAMBEDevices& query,
|
|
|
|
SWGSDRangel::SWGAMBEDevices& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceAMBEDevicesPatch(
|
|
|
|
SWGSDRangel::SWGAMBEDevices& query,
|
|
|
|
SWGSDRangel::SWGAMBEDevices& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceAMBEDevicesDelete(
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2020-01-24 22:05:16 +00:00
|
|
|
#ifdef HAS_LIMERFEUSB
|
2020-01-13 00:57:39 +00:00
|
|
|
virtual int instanceLimeRFESerialGet(
|
|
|
|
SWGSDRangel::SWGLimeRFEDevices& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceLimeRFEConfigGet(
|
|
|
|
const QString& serial,
|
|
|
|
SWGSDRangel::SWGLimeRFESettings& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceLimeRFEConfigPut(
|
|
|
|
SWGSDRangel::SWGLimeRFESettings& query,
|
2020-01-14 00:11:31 +00:00
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
2020-01-13 00:57:39 +00:00
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceLimeRFERunPut(
|
|
|
|
SWGSDRangel::SWGLimeRFESettings& query,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2020-01-14 14:26:49 +00:00
|
|
|
|
|
|
|
virtual int instanceLimeRFEPowerGet(
|
|
|
|
const QString& serial,
|
|
|
|
SWGSDRangel::SWGLimeRFEPower& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2020-01-13 00:57:39 +00:00
|
|
|
#endif
|
|
|
|
|
2017-12-20 23:50:58 +00:00
|
|
|
virtual int instancePresetsGet(
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGPresets& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-25 10:14:52 +00:00
|
|
|
|
2017-11-25 15:08:18 +00:00
|
|
|
virtual int instancePresetPatch(
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGPresetTransfer& query,
|
|
|
|
SWGSDRangel::SWGPresetIdentifier& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-25 15:08:18 +00:00
|
|
|
|
2017-11-25 15:47:13 +00:00
|
|
|
virtual int instancePresetPut(
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGPresetTransfer& query,
|
|
|
|
SWGSDRangel::SWGPresetIdentifier& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-25 15:47:13 +00:00
|
|
|
|
2017-11-25 17:32:37 +00:00
|
|
|
virtual int instancePresetPost(
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGPresetTransfer& query,
|
|
|
|
SWGSDRangel::SWGPresetIdentifier& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-25 17:32:37 +00:00
|
|
|
|
2017-11-25 18:42:56 +00:00
|
|
|
virtual int instancePresetDelete(
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGPresetIdentifier& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-25 18:42:56 +00:00
|
|
|
|
2022-05-08 17:33:10 +00:00
|
|
|
virtual int instancePresetFilePut(
|
|
|
|
SWGSDRangel::SWGFilePath& query,
|
|
|
|
SWGSDRangel::SWGPresetIdentifier& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instancePresetFilePost(
|
|
|
|
SWGSDRangel::SWGPresetExport& query,
|
|
|
|
SWGSDRangel::SWGPresetIdentifier& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instancePresetBlobPut(
|
|
|
|
SWGSDRangel::SWGBase64Blob& query,
|
|
|
|
SWGSDRangel::SWGPresetIdentifier& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instancePresetBlobPost(
|
|
|
|
SWGSDRangel::SWGPresetIdentifier& query,
|
|
|
|
SWGSDRangel::SWGBase64Blob& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceConfigurationsGet(
|
|
|
|
SWGSDRangel::SWGConfigurations& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceConfigurationPatch(
|
|
|
|
SWGSDRangel::SWGConfigurationIdentifier& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceConfigurationPut(
|
|
|
|
SWGSDRangel::SWGConfigurationIdentifier& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceConfigurationPost(
|
|
|
|
SWGSDRangel::SWGConfigurationIdentifier& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceConfigurationDelete(
|
|
|
|
SWGSDRangel::SWGConfigurationIdentifier& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceConfigurationFilePut(
|
|
|
|
SWGSDRangel::SWGFilePath& query,
|
|
|
|
SWGSDRangel::SWGConfigurationIdentifier& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceConfigurationFilePost(
|
|
|
|
SWGSDRangel::SWGConfigurationImportExport& query,
|
|
|
|
SWGSDRangel::SWGConfigurationIdentifier& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceConfigurationBlobPut(
|
|
|
|
SWGSDRangel::SWGBase64Blob& query,
|
|
|
|
SWGSDRangel::SWGConfigurationIdentifier& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceConfigurationBlobPost(
|
|
|
|
SWGSDRangel::SWGConfigurationIdentifier& query,
|
|
|
|
SWGSDRangel::SWGBase64Blob& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2021-09-04 03:58:06 +00:00
|
|
|
virtual int instanceFeaturePresetsGet(
|
|
|
|
SWGSDRangel::SWGFeaturePresets& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceFeaturePresetDelete(
|
|
|
|
SWGSDRangel::SWGFeaturePresetIdentifier& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2017-11-25 19:14:16 +00:00
|
|
|
virtual int instanceDeviceSetsGet(
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGDeviceSetList& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-25 19:14:16 +00:00
|
|
|
|
2017-12-22 00:07:03 +00:00
|
|
|
virtual int instanceDeviceSetPost(
|
2019-05-08 23:12:40 +00:00
|
|
|
int direction,
|
2017-12-19 16:55:05 +00:00
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-25 21:52:24 +00:00
|
|
|
|
2017-12-22 00:07:03 +00:00
|
|
|
virtual int instanceDeviceSetDelete(
|
2017-12-19 16:55:05 +00:00
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-25 21:52:24 +00:00
|
|
|
|
2022-05-09 19:31:14 +00:00
|
|
|
virtual int instanceWorkspacePost(
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int instanceWorkspaceDelete(
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2017-11-26 09:37:39 +00:00
|
|
|
virtual int devicesetGet(
|
|
|
|
int deviceSetIndex,
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGDeviceSet& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-26 09:37:39 +00:00
|
|
|
|
2018-01-06 02:46:53 +00:00
|
|
|
virtual int devicesetFocusPatch(
|
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2020-11-12 00:22:48 +00:00
|
|
|
virtual int devicesetSpectrumSettingsGet(
|
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGGLSpectrum& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int devicesetSpectrumSettingsPutPatch(
|
|
|
|
int deviceSetIndex,
|
|
|
|
bool force, //!< true to force settings = put else patch
|
|
|
|
const QStringList& spectrumSettingsKeys,
|
|
|
|
SWGSDRangel::SWGGLSpectrum& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int devicesetSpectrumServerGet(
|
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGSpectrumServer& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int devicesetSpectrumServerPost(
|
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int devicesetSpectrumServerDelete(
|
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2017-11-27 07:14:07 +00:00
|
|
|
virtual int devicesetDevicePut(
|
|
|
|
int deviceSetIndex,
|
2018-02-14 12:40:34 +00:00
|
|
|
SWGSDRangel::SWGDeviceListItem& query,
|
2017-12-02 04:45:30 +00:00
|
|
|
SWGSDRangel::SWGDeviceListItem& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-11-27 07:14:07 +00:00
|
|
|
|
2017-12-06 21:08:34 +00:00
|
|
|
virtual int devicesetDeviceSettingsGet(
|
2017-12-04 17:22:25 +00:00
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGDeviceSettings& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2020-03-09 03:01:23 +00:00
|
|
|
virtual int devicesetDeviceActionsPost(
|
|
|
|
int deviceSetIndex,
|
2020-03-09 18:56:09 +00:00
|
|
|
const QStringList& deviceActionsKeys,
|
2020-03-09 03:01:23 +00:00
|
|
|
SWGSDRangel::SWGDeviceActions& query,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2017-12-07 12:55:42 +00:00
|
|
|
virtual int devicesetDeviceSettingsPutPatch(
|
|
|
|
int deviceSetIndex,
|
|
|
|
bool force,
|
2017-12-27 00:46:33 +00:00
|
|
|
const QStringList& deviceSettingsKeys,
|
2017-12-07 12:55:42 +00:00
|
|
|
SWGSDRangel::SWGDeviceSettings& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2017-12-09 09:49:20 +00:00
|
|
|
virtual int devicesetDeviceRunGet(
|
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGDeviceState& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2017-12-08 16:12:33 +00:00
|
|
|
virtual int devicesetDeviceRunPost(
|
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGDeviceState& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int devicesetDeviceRunDelete(
|
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGDeviceState& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2019-12-24 18:08:11 +00:00
|
|
|
|
|
|
|
virtual int devicesetDeviceSubsystemRunGet(
|
|
|
|
int deviceSetIndex,
|
|
|
|
int subsystemIndex,
|
|
|
|
SWGSDRangel::SWGDeviceState& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int devicesetDeviceSubsystemRunPost(
|
|
|
|
int deviceSetIndex,
|
|
|
|
int subsystemIndex,
|
|
|
|
SWGSDRangel::SWGDeviceState& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int devicesetDeviceSubsystemRunDelete(
|
|
|
|
int deviceSetIndex,
|
|
|
|
int subsystemIndex,
|
|
|
|
SWGSDRangel::SWGDeviceState& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
2017-12-08 16:12:33 +00:00
|
|
|
|
2018-05-25 23:43:28 +00:00
|
|
|
virtual int devicesetDeviceReportGet(
|
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGDeviceReport& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2018-03-18 23:08:38 +00:00
|
|
|
virtual int devicesetChannelsReportGet(
|
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGChannelsDetail& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2017-12-11 00:18:10 +00:00
|
|
|
virtual int devicesetChannelPost(
|
|
|
|
int deviceSetIndex,
|
2017-12-19 16:55:05 +00:00
|
|
|
SWGSDRangel::SWGChannelSettings& query,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
2017-12-11 00:18:10 +00:00
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2017-12-23 22:41:37 +00:00
|
|
|
virtual int devicesetChannelDelete(
|
|
|
|
int deviceSetIndex,
|
|
|
|
int channelIndex,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2017-12-10 19:27:08 +00:00
|
|
|
virtual int devicesetChannelSettingsGet(
|
|
|
|
int deviceSetIndex,
|
|
|
|
int channelIndex,
|
|
|
|
SWGSDRangel::SWGChannelSettings& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2020-03-09 03:01:23 +00:00
|
|
|
virtual int devicesetChannelActionsPost(
|
|
|
|
int deviceSetIndex,
|
|
|
|
int channelIndex,
|
2020-03-09 18:56:09 +00:00
|
|
|
const QStringList& channelActionsKeys,
|
2020-03-09 03:01:23 +00:00
|
|
|
SWGSDRangel::SWGChannelActions& query,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2017-12-11 17:18:47 +00:00
|
|
|
virtual int devicesetChannelSettingsPutPatch(
|
|
|
|
int deviceSetIndex,
|
|
|
|
int channelIndex,
|
|
|
|
bool force,
|
2017-12-24 02:27:07 +00:00
|
|
|
const QStringList& channelSettingsKeys,
|
2017-12-11 17:18:47 +00:00
|
|
|
SWGSDRangel::SWGChannelSettings& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2018-03-18 19:17:11 +00:00
|
|
|
virtual int devicesetChannelReportGet(
|
|
|
|
int deviceSetIndex,
|
|
|
|
int channelIndex,
|
|
|
|
SWGSDRangel::SWGChannelReport& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2020-09-21 01:13:36 +00:00
|
|
|
virtual int featuresetGet(
|
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGFeatureSet& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int featuresetFeaturePost(
|
|
|
|
int featureSetIndex,
|
|
|
|
SWGSDRangel::SWGFeatureSettings& query,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int featuresetFeatureDelete(
|
|
|
|
int featureSetIndex,
|
|
|
|
int featureIndex,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int featuresetFeatureRunGet(
|
|
|
|
int featureSetIndex,
|
|
|
|
int featureIndex,
|
|
|
|
SWGSDRangel::SWGDeviceState& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int featuresetFeatureRunPost(
|
|
|
|
int featureSetIndex,
|
|
|
|
int featureIndex,
|
|
|
|
SWGSDRangel::SWGDeviceState& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int featuresetFeatureRunDelete(
|
|
|
|
int featureSetIndex,
|
|
|
|
int featureIndex,
|
|
|
|
SWGSDRangel::SWGDeviceState& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2021-09-05 20:12:26 +00:00
|
|
|
virtual int featuresetPresetPatch(
|
|
|
|
int featureSetIndex,
|
|
|
|
SWGSDRangel::SWGFeaturePresetIdentifier& query,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int featuresetPresetPut(
|
|
|
|
int featureSetIndex,
|
|
|
|
SWGSDRangel::SWGFeaturePresetIdentifier& query,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int featuresetPresetPost(
|
|
|
|
int featureSetIndex,
|
|
|
|
SWGSDRangel::SWGFeaturePresetIdentifier& query,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2020-09-21 01:13:36 +00:00
|
|
|
virtual int featuresetFeatureSettingsGet(
|
|
|
|
int featureSetIndex,
|
|
|
|
int featureIndex,
|
|
|
|
SWGSDRangel::SWGFeatureSettings& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int featuresetFeatureSettingsPutPatch(
|
|
|
|
int featureSetIndex,
|
|
|
|
int featureIndex,
|
|
|
|
bool force,
|
|
|
|
const QStringList& featureSettingsKeys,
|
|
|
|
SWGSDRangel::SWGFeatureSettings& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int featuresetFeatureReportGet(
|
|
|
|
int featureSetIndex,
|
|
|
|
int featureIndex,
|
|
|
|
SWGSDRangel::SWGFeatureReport& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
|
|
|
virtual int featuresetFeatureActionsPost(
|
|
|
|
int featureSetIndex,
|
|
|
|
int featureIndex,
|
|
|
|
const QStringList& featureActionsKeys,
|
|
|
|
SWGSDRangel::SWGFeatureActions& query,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error);
|
|
|
|
|
2017-11-18 18:34:47 +00:00
|
|
|
private:
|
2020-10-10 18:08:11 +00:00
|
|
|
MainCore *m_mainCore;
|
2017-11-23 17:43:01 +00:00
|
|
|
|
2017-12-02 04:45:30 +00:00
|
|
|
void getDeviceSetList(SWGSDRangel::SWGDeviceSetList* deviceSetList);
|
2020-10-11 11:05:43 +00:00
|
|
|
void getDeviceSet(SWGSDRangel::SWGDeviceSet *swgDeviceSet, const DeviceSet* deviceSet, int deviceSetIndex);
|
|
|
|
void getChannelsDetail(SWGSDRangel::SWGChannelsDetail *channelsDetail, const DeviceSet* deviceSet);
|
2022-05-04 11:27:13 +00:00
|
|
|
void getFeatureSet(SWGSDRangel::SWGFeatureSet *swgFeatureSet, const FeatureSet* featureSet);
|
2017-11-23 17:43:01 +00:00
|
|
|
static QtMsgType getMsgTypeFromString(const QString& msgTypeString);
|
|
|
|
static void getMsgTypeString(const QtMsgType& msgType, QString& level);
|
2017-11-18 18:34:47 +00:00
|
|
|
};
|
|
|
|
|
2020-11-12 00:22:48 +00:00
|
|
|
#endif /* SDRGUI_WEBAPI_WEBAPIADAPTERGUI_H_ */
|