2017-11-16 21:17:15 -05: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 08:32:15 -04:00
|
|
|
// (at your option) any later version. //
|
2017-11-16 21:17:15 -05: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_WEBAPIADAPTERINTERFACE_H_
|
|
|
|
#define SDRBASE_WEBAPI_WEBAPIADAPTERINTERFACE_H_
|
|
|
|
|
2017-11-18 13:34:47 -05:00
|
|
|
#include <QString>
|
2019-08-06 13:06:49 -04:00
|
|
|
#include <QStringList>
|
2017-11-25 18:26:56 -05:00
|
|
|
#include <regex>
|
2017-11-18 13:34:47 -05:00
|
|
|
|
2017-12-20 08:17:26 -05:00
|
|
|
#include "SWGErrorResponse.h"
|
|
|
|
|
2018-03-20 08:49:21 -04:00
|
|
|
#include "export.h"
|
2018-03-03 14:23:38 -05:00
|
|
|
|
2017-12-01 23:45:30 -05:00
|
|
|
namespace SWGSDRangel
|
2017-11-18 13:34:47 -05:00
|
|
|
{
|
|
|
|
class SWGInstanceSummaryResponse;
|
2019-07-31 20:16:56 -04:00
|
|
|
class SWGInstanceConfigResponse;
|
2017-11-22 12:57:35 -05:00
|
|
|
class SWGInstanceDevicesResponse;
|
2017-11-22 19:19:32 -05:00
|
|
|
class SWGInstanceChannelsResponse;
|
2019-08-06 02:48:14 -04:00
|
|
|
class SWGPreferences;
|
2017-11-23 12:43:01 -05:00
|
|
|
class SWGLoggingInfo;
|
2017-11-24 02:46:12 -05:00
|
|
|
class SWGAudioDevices;
|
2018-03-28 18:38:01 -04:00
|
|
|
class SWGAudioInputDevice;
|
|
|
|
class SWGAudioOutputDevice;
|
2017-11-24 22:02:11 -05:00
|
|
|
class SWGLocationInformation;
|
2019-07-21 03:47:11 -04:00
|
|
|
class SWGDVSerialDevices;
|
2019-07-20 19:57:51 -04:00
|
|
|
class SWGAMBEDevices;
|
2020-01-11 19:16:04 -05:00
|
|
|
class SWGLimeRFEDevices;
|
|
|
|
class SWGLimeRFESettings;
|
2020-01-14 09:26:49 -05:00
|
|
|
class SWGLimeRFEPower;
|
2017-11-25 05:14:52 -05:00
|
|
|
class SWGPresets;
|
2017-11-25 10:08:18 -05:00
|
|
|
class SWGPresetTransfer;
|
|
|
|
class SWGPresetIdentifier;
|
2017-12-18 19:11:34 -05:00
|
|
|
class SWGPresetImport;
|
|
|
|
class SWGPresetExport;
|
2017-11-25 14:14:16 -05:00
|
|
|
class SWGDeviceSetList;
|
2017-11-25 16:52:24 -05:00
|
|
|
class SWGDeviceSet;
|
2017-11-27 02:14:07 -05:00
|
|
|
class SWGDeviceListItem;
|
2017-12-04 17:07:30 -05:00
|
|
|
class SWGDeviceSettings;
|
2017-12-06 17:49:14 -05:00
|
|
|
class SWGDeviceState;
|
2018-05-25 19:43:28 -04:00
|
|
|
class SWGDeviceReport;
|
2020-03-08 23:01:23 -04:00
|
|
|
class SWGDeviceActions;
|
2018-03-18 19:08:38 -04:00
|
|
|
class SWGChannelsDetail;
|
2017-12-10 14:27:08 -05:00
|
|
|
class SWGChannelSettings;
|
2018-03-18 15:17:11 -04:00
|
|
|
class SWGChannelReport;
|
2020-03-08 23:01:23 -04:00
|
|
|
class SWGChannelActions;
|
2017-12-19 11:55:05 -05:00
|
|
|
class SWGSuccessResponse;
|
2017-11-18 13:34:47 -05:00
|
|
|
}
|
2017-11-16 21:17:15 -05:00
|
|
|
|
2018-03-03 14:23:38 -05:00
|
|
|
class SDRBASE_API WebAPIAdapterInterface
|
2017-11-16 21:17:15 -05:00
|
|
|
{
|
|
|
|
public:
|
2019-08-06 13:06:49 -04:00
|
|
|
struct ChannelKeys
|
|
|
|
{
|
|
|
|
QStringList m_keys;
|
|
|
|
QStringList m_channelKeys;
|
|
|
|
};
|
|
|
|
struct DeviceKeys
|
|
|
|
{
|
|
|
|
QStringList m_keys;
|
|
|
|
QStringList m_deviceKeys;
|
|
|
|
};
|
|
|
|
struct PresetKeys
|
|
|
|
{
|
|
|
|
QStringList m_keys;
|
|
|
|
QStringList m_spectrumKeys;
|
|
|
|
QList<ChannelKeys> m_channelsKeys;
|
|
|
|
QList<DeviceKeys> m_devicesKeys;
|
|
|
|
};
|
|
|
|
struct CommandKeys
|
|
|
|
{
|
|
|
|
QStringList m_keys;
|
|
|
|
};
|
|
|
|
struct ConfigKeys
|
|
|
|
{
|
|
|
|
QStringList m_preferencesKeys;
|
|
|
|
PresetKeys m_workingPresetKeys;
|
|
|
|
QList<PresetKeys> m_presetKeys;
|
|
|
|
QList<CommandKeys> m_commandKeys;
|
2019-08-09 12:45:10 -04:00
|
|
|
void debug() const;
|
2019-08-06 13:06:49 -04:00
|
|
|
};
|
|
|
|
|
2017-11-16 21:17:15 -05:00
|
|
|
virtual ~WebAPIAdapterInterface() {}
|
|
|
|
|
2017-11-18 05:03:42 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceSummary
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
2017-11-16 21:17:15 -05:00
|
|
|
virtual int instanceSummary(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGInstanceSummaryResponse& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-18 13:34:47 -05:00
|
|
|
|
2017-12-17 17:15:42 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel (DELETE) swagger/sdrangel/code/html2/index.html#api-Default-instanceSummary
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceDelete(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-12-17 17:15:42 -05:00
|
|
|
|
2019-07-31 20:16:56 -04:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/config (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceSummary
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceConfigGet(
|
|
|
|
SWGSDRangel::SWGInstanceConfigResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
2019-08-06 02:48:14 -04:00
|
|
|
/**
|
2019-08-06 13:06:49 -04:00
|
|
|
* Handler of /sdrangel/config (PUT, PATCH) swagger/sdrangel/code/html2/index.html#api-Default-instanceSummary
|
2019-08-06 02:48:14 -04:00
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
2019-08-06 13:06:49 -04:00
|
|
|
virtual int instanceConfigPutPatch(
|
|
|
|
bool force, // PUT else PATCH
|
|
|
|
SWGSDRangel::SWGInstanceConfigResponse& query,
|
|
|
|
const ConfigKeys& configKeys,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
2019-08-06 02:48:14 -04:00
|
|
|
SWGSDRangel::SWGErrorResponse& error
|
|
|
|
)
|
|
|
|
{
|
2019-08-06 13:06:49 -04:00
|
|
|
(void) force;
|
|
|
|
(void) query;
|
|
|
|
(void) configKeys;
|
|
|
|
(void) response;
|
2019-08-06 02:48:14 -04:00
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
2017-11-22 12:57:35 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/devices (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceDevices
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceDevices(
|
2019-05-08 19:12:40 -04:00
|
|
|
int direction,
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGInstanceDevicesResponse& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2019-05-08 19:12:40 -04:00
|
|
|
(void) direction;
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-22 12:57:35 -05:00
|
|
|
|
2017-11-22 19:19:32 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/channels (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceChannels(
|
2019-05-08 19:12:40 -04:00
|
|
|
int direction,
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGInstanceChannelsResponse& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2019-05-08 19:12:40 -04:00
|
|
|
(void) direction;
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-22 19:19:32 -05:00
|
|
|
|
2017-11-23 12:43:01 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/logging (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceLoggingGet(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGLoggingInfo& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-23 12:43:01 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/logging (PUT) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceLoggingPut(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGLoggingInfo& query,
|
|
|
|
SWGSDRangel::SWGLoggingInfo& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) query;
|
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-23 12:43:01 -05:00
|
|
|
|
2017-11-24 02:46:12 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/audio (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceAudioGet(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGAudioDevices& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-24 02:46:12 -05:00
|
|
|
|
2017-11-24 11:12:53 -05:00
|
|
|
/**
|
2018-03-28 19:43:31 -04:00
|
|
|
* Handler of /sdrangel/audio/input/parameters (PATCH) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
2017-11-24 11:12:53 -05:00
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
2018-03-28 18:38:01 -04:00
|
|
|
virtual int instanceAudioInputPatch(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGAudioInputDevice& response,
|
|
|
|
const QStringList& audioInputKeys,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
|
|
|
(void) audioInputKeys;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-24 11:12:53 -05:00
|
|
|
|
2018-03-28 18:38:01 -04:00
|
|
|
/**
|
2018-03-28 19:43:31 -04:00
|
|
|
* Handler of /sdrangel/audio/output/parameters (PATCH) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
2018-03-28 18:38:01 -04:00
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceAudioOutputPatch(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGAudioOutputDevice& response,
|
|
|
|
const QStringList& audioOutputKeys,
|
2018-03-28 18:38:01 -04:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
|
|
|
(void) audioOutputKeys;
|
2018-03-28 18:38:01 -04:00
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
2018-03-28 19:43:31 -04:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/audio/input/parameters (DELETE) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceAudioInputDelete(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGAudioInputDevice& response,
|
2018-03-28 19:43:31 -04:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
2018-03-28 19:43:31 -04:00
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/audio/output/paramaters (DELETE) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceAudioOutputDelete(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGAudioOutputDevice& response,
|
2018-03-28 19:43:31 -04:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
2018-03-28 19:43:31 -04:00
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/audio/input/cleanup (PATCH) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceAudioInputCleanupPatch(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
2018-03-28 19:43:31 -04:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
2018-03-28 19:43:31 -04:00
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/audio/output/cleanup (PATCH) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceAudioOutputCleanupPatch(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
2018-03-28 19:43:31 -04:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
2018-03-28 19:43:31 -04:00
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
2017-11-24 22:02:11 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/location (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceLocationGet(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGLocationInformation& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-24 22:02:11 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/location (PUT) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceLocationPut(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGLocationInformation& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-24 22:02:11 -05:00
|
|
|
|
2019-07-20 19:57:51 -04:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/ambe/serial (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceAMBESerialGet(
|
2019-07-21 03:47:11 -04:00
|
|
|
SWGSDRangel::SWGDVSerialDevices& response,
|
2019-07-20 19:57:51 -04:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/ambe/devices (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceAMBEDevicesGet(
|
|
|
|
SWGSDRangel::SWGAMBEDevices& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/ambe/devices (PUT) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceAMBEDevicesPut(
|
|
|
|
SWGSDRangel::SWGAMBEDevices& query,
|
|
|
|
SWGSDRangel::SWGAMBEDevices& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
(void) query;
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/ambe/devices (PATCH) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceAMBEDevicesPatch(
|
|
|
|
SWGSDRangel::SWGAMBEDevices& query,
|
|
|
|
SWGSDRangel::SWGAMBEDevices& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
(void) query;
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/ambe/devices (DELETE) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceAMBEDevicesDelete(
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
2020-01-11 19:16:04 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/limerfe/serial (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceLimeRFESerialGet(
|
|
|
|
SWGSDRangel::SWGLimeRFEDevices& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/limerfe/config (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceLimeRFEConfigGet(
|
|
|
|
const QString& serial,
|
|
|
|
SWGSDRangel::SWGLimeRFESettings& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
(void) serial;
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/limerfe/config (PUT) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceLimeRFEConfigPut(
|
|
|
|
SWGSDRangel::SWGLimeRFESettings& query,
|
2020-01-13 19:11:31 -05:00
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
2020-01-11 19:16:04 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
(void) query;
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/limerfe/run (PUT) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceLimeRFERunPut(
|
|
|
|
SWGSDRangel::SWGLimeRFESettings& query,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
(void) query;
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
2020-01-14 09:26:49 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/limerfe/power (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceLimeRFEPowerGet(
|
|
|
|
const QString& serial,
|
|
|
|
SWGSDRangel::SWGLimeRFEPower& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
(void) serial;
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
2017-11-25 05:14:52 -05:00
|
|
|
/**
|
2017-12-20 18:50:58 -05:00
|
|
|
* Handler of /sdrangel/presets (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
2017-11-25 05:14:52 -05:00
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
2017-12-20 18:50:58 -05:00
|
|
|
virtual int instancePresetsGet(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGPresets& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-25 05:14:52 -05:00
|
|
|
|
2017-11-25 10:08:18 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/preset (PATCH) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instancePresetPatch(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGPresetTransfer& query,
|
|
|
|
SWGSDRangel::SWGPresetIdentifier& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) query;
|
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-25 10:08:18 -05:00
|
|
|
|
2017-11-25 10:47:13 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/preset (PUT) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instancePresetPut(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGPresetTransfer& query,
|
|
|
|
SWGSDRangel::SWGPresetIdentifier& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) query;
|
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-25 10:47:13 -05:00
|
|
|
|
2017-11-25 12:32:37 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/preset (POST) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instancePresetPost(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGPresetTransfer& query,
|
|
|
|
SWGSDRangel::SWGPresetIdentifier& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) query;
|
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-25 12:32:37 -05:00
|
|
|
|
2017-11-25 13:42:56 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/preset (DELETE) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instancePresetDelete(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGPresetIdentifier& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-25 13:42:56 -05:00
|
|
|
|
2017-12-18 19:11:34 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/preset/file (PUT) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instancePresetFilePut(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGPresetImport& query,
|
|
|
|
SWGSDRangel::SWGPresetIdentifier& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) query;
|
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-12-18 19:11:34 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/preset/file (PUT) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instancePresetFilePost(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGPresetExport& query,
|
|
|
|
SWGSDRangel::SWGPresetIdentifier& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) query;
|
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-12-18 19:11:34 -05:00
|
|
|
|
2017-11-25 14:14:16 -05:00
|
|
|
/**
|
2017-11-25 16:52:24 -05:00
|
|
|
* Handler of /sdrangel/devicesets (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
2017-11-25 14:14:16 -05:00
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceDeviceSetsGet(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGDeviceSetList& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-25 14:14:16 -05:00
|
|
|
|
2017-11-25 16:52:24 -05:00
|
|
|
/**
|
2017-12-21 19:07:03 -05:00
|
|
|
* Handler of /sdrangel/deviceset (POST) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
2017-11-25 16:52:24 -05:00
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
2017-12-21 19:07:03 -05:00
|
|
|
virtual int instanceDeviceSetPost(
|
2019-05-08 19:12:40 -04:00
|
|
|
int direction,
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2019-05-08 19:12:40 -04:00
|
|
|
(void) direction;
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-25 16:52:24 -05:00
|
|
|
|
|
|
|
/**
|
2017-12-21 19:07:03 -05:00
|
|
|
* Handler of /sdrangel/deviceset (DELETE) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
2017-11-25 16:52:24 -05:00
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
2017-12-21 19:07:03 -05:00
|
|
|
virtual int instanceDeviceSetDelete(
|
2018-11-12 10:58:20 -05:00
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-25 16:52:24 -05:00
|
|
|
|
2017-11-26 04:37:39 -05:00
|
|
|
/**
|
2017-12-06 16:08:34 -05:00
|
|
|
* Handler of /sdrangel/deviceset/{devicesetIndex} (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
2017-11-26 04:37:39 -05:00
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int devicesetGet(
|
2018-11-12 10:58:20 -05:00
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGDeviceSet& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-26 04:37:39 -05:00
|
|
|
|
2018-01-05 21:46:53 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/deviceset/{devicesetIndex}/focus (PATCH) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int devicesetFocusPatch(
|
2018-11-12 10:58:20 -05:00
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
2018-01-05 21:46:53 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2018-01-05 21:46:53 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
2017-11-27 02:14:07 -05:00
|
|
|
/**
|
2017-12-04 12:22:25 -05:00
|
|
|
* Handler of /sdrangel/deviceset/{devicesetIndex}/device (PUT) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
2017-11-27 02:14:07 -05:00
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int devicesetDevicePut(
|
2018-11-12 10:58:20 -05:00
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGDeviceListItem& query,
|
|
|
|
SWGSDRangel::SWGDeviceListItem& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) query;
|
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-27 02:14:07 -05:00
|
|
|
|
2017-12-04 12:22:25 -05:00
|
|
|
/**
|
2017-12-06 16:08:34 -05:00
|
|
|
* Handler of /sdrangel/deviceset/{devicesetIndex}/device/settings (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
2017-12-04 12:22:25 -05:00
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
2017-12-06 16:08:34 -05:00
|
|
|
virtual int devicesetDeviceSettingsGet(
|
2018-11-12 10:58:20 -05:00
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGDeviceSettings& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-12-04 12:22:25 -05:00
|
|
|
|
2017-12-06 17:49:14 -05:00
|
|
|
/**
|
2017-12-07 07:55:42 -05:00
|
|
|
* Handler of /sdrangel/deviceset/{devicesetIndex}/device/settings (PUT, PATCH) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
2017-12-06 17:49:14 -05:00
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
2017-12-07 07:55:42 -05:00
|
|
|
virtual int devicesetDeviceSettingsPutPatch(
|
2018-11-12 10:58:20 -05:00
|
|
|
int deviceSetIndex,
|
|
|
|
bool force, //!< true to force settings = put else patch
|
|
|
|
const QStringList& channelSettingsKeys,
|
|
|
|
SWGSDRangel::SWGDeviceSettings& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) force;
|
|
|
|
(void) channelSettingsKeys;
|
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-12-06 17:49:14 -05:00
|
|
|
|
2017-12-09 04:49:20 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/deviceset/{devicesetIndex}/device/run (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int devicesetDeviceRunGet(
|
2018-11-12 10:58:20 -05:00
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGDeviceState& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-12-09 04:49:20 -05:00
|
|
|
|
2019-12-24 13:08:11 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/deviceset/{devicesetIndex}/subdevice/{subsystemIndex}/run (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int devicesetDeviceSubsystemRunGet(
|
|
|
|
int deviceSetIndex,
|
|
|
|
int subsystemIndex,
|
|
|
|
SWGSDRangel::SWGDeviceState& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) subsystemIndex;
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
2017-12-06 17:49:14 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/deviceset/{devicesetIndex}/device/run (POST) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int devicesetDeviceRunPost(
|
2018-11-12 10:58:20 -05:00
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGDeviceState& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) response;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-12-06 17:49:14 -05:00
|
|
|
|
2019-12-24 13:08:11 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/deviceset/{devicesetIndex}/subdevice/{subsystemIndex}/run (POST) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int devicesetDeviceSubsystemRunPost(
|
|
|
|
int deviceSetIndex,
|
|
|
|
int subsystemIndex,
|
|
|
|
SWGSDRangel::SWGDeviceState& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) subsystemIndex;
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
2017-12-06 17:49:14 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/deviceset/{devicesetIndex}/device/run (DELETE) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int devicesetDeviceRunDelete(
|
2018-11-12 10:58:20 -05:00
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGDeviceState& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-12-06 17:49:14 -05:00
|
|
|
|
2019-12-24 13:08:11 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/deviceset/{devicesetIndex}/subdevice/{subsystemIndex}/run (DELETE) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int devicesetDeviceSubsystemRunDelete(
|
|
|
|
int deviceSetIndex,
|
|
|
|
int subsystemIndex,
|
|
|
|
SWGSDRangel::SWGDeviceState& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) subsystemIndex;
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
2018-05-25 19:43:28 -04:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/deviceset/{devicesetIndex}/device/report (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int devicesetDeviceReportGet(
|
2018-11-12 10:58:20 -05:00
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGDeviceReport& response,
|
2018-05-25 19:43:28 -04:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) response;
|
2018-05-25 19:43:28 -04:00
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
2018-03-18 19:08:38 -04:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/deviceset/{devicesetIndex}/channels/report (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int devicesetChannelsReportGet(
|
2018-11-12 10:58:20 -05:00
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGChannelsDetail& response,
|
2018-03-18 19:08:38 -04:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) response;
|
2018-03-18 19:08:38 -04:00
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
2020-03-08 23:01:23 -04:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/deviceset/{deviceSetIndex}/device/actions (POST)
|
|
|
|
* post action(s) on device
|
|
|
|
*/
|
|
|
|
virtual int devicesetDeviceActionsPost(
|
|
|
|
int deviceSetIndex,
|
2020-03-09 14:56:09 -04:00
|
|
|
const QStringList& deviceActionsKeys,
|
2020-03-08 23:01:23 -04:00
|
|
|
SWGSDRangel::SWGDeviceActions& query,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error
|
|
|
|
)
|
|
|
|
{
|
|
|
|
(void) deviceSetIndex;
|
2020-03-09 14:56:09 -04:00
|
|
|
(void) deviceActionsKeys;
|
2020-03-08 23:01:23 -04:00
|
|
|
(void) query;
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
2017-12-10 19:18:10 -05:00
|
|
|
/**
|
2017-12-23 16:33:30 -05:00
|
|
|
* Handler of /sdrangel/deviceset/{deviceSetIndex}/channel (POST) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
2017-12-10 19:18:10 -05:00
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int devicesetChannelPost(
|
2018-11-12 10:58:20 -05:00
|
|
|
int deviceSetIndex,
|
|
|
|
SWGSDRangel::SWGChannelSettings& query,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) query;
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-12-10 19:18:10 -05:00
|
|
|
|
|
|
|
/**
|
2017-12-23 16:33:30 -05:00
|
|
|
* Handler of /sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex} (DELETE) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
2017-12-10 19:18:10 -05:00
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
2017-12-23 16:33:30 -05:00
|
|
|
virtual int devicesetChannelDelete(
|
2018-11-12 10:58:20 -05:00
|
|
|
int deviceSetIndex,
|
|
|
|
int channelIndex,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
2017-12-20 08:17:26 -05:00
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) channelIndex;
|
|
|
|
(void) response;
|
|
|
|
(void) error;
|
2018-02-13 16:43:10 -05:00
|
|
|
error.init();
|
2017-12-23 16:33:30 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
2017-12-20 08:17:26 -05:00
|
|
|
}
|
2017-12-10 19:18:10 -05:00
|
|
|
|
2017-12-10 14:27:08 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int devicesetChannelSettingsGet(
|
2018-11-12 10:58:20 -05:00
|
|
|
int deviceSetIndex,
|
|
|
|
int channelIndex,
|
|
|
|
SWGSDRangel::SWGChannelSettings& response,
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) channelIndex;
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-12-10 14:27:08 -05:00
|
|
|
|
2017-12-11 12:18:47 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings (PUT, PATCH) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int devicesetChannelSettingsPutPatch(
|
2018-11-12 10:58:20 -05:00
|
|
|
int deviceSetIndex,
|
|
|
|
int channelIndex,
|
|
|
|
bool force,
|
|
|
|
const QStringList& channelSettingsKeys,
|
|
|
|
SWGSDRangel::SWGChannelSettings& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) channelIndex;
|
|
|
|
(void) force;
|
|
|
|
(void) channelSettingsKeys;
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
2017-12-20 08:17:26 -05:00
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-12-11 12:18:47 -05:00
|
|
|
|
2018-03-18 15:17:11 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int devicesetChannelReportGet(
|
2018-11-12 10:58:20 -05:00
|
|
|
int deviceSetIndex,
|
|
|
|
int channelIndex,
|
|
|
|
SWGSDRangel::SWGChannelReport& response,
|
2018-03-18 15:17:11 -04:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
2018-11-12 10:58:20 -05:00
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) channelIndex;
|
|
|
|
(void) response;
|
2018-03-18 15:17:11 -04:00
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
2020-03-08 23:01:23 -04:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/actions (POST)
|
|
|
|
* posts an action on the channel (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int devicesetChannelActionsPost(
|
|
|
|
int deviceSetIndex,
|
|
|
|
int channelIndex,
|
2020-03-09 14:56:09 -04:00
|
|
|
const QStringList& channelActionsKeys,
|
2020-03-08 23:01:23 -04:00
|
|
|
SWGSDRangel::SWGChannelActions& query,
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response,
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
(void) deviceSetIndex;
|
|
|
|
(void) channelIndex;
|
2020-03-09 14:56:09 -04:00
|
|
|
(void) channelActionsKeys;
|
2020-03-08 23:01:23 -04:00
|
|
|
(void) query;
|
|
|
|
(void) response;
|
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
2017-11-18 13:34:47 -05:00
|
|
|
static QString instanceSummaryURL;
|
2019-07-31 20:16:56 -04:00
|
|
|
static QString instanceConfigURL;
|
2017-11-22 12:57:35 -05:00
|
|
|
static QString instanceDevicesURL;
|
2017-11-22 19:19:32 -05:00
|
|
|
static QString instanceChannelsURL;
|
2017-11-23 12:43:01 -05:00
|
|
|
static QString instanceLoggingURL;
|
2017-11-24 02:46:12 -05:00
|
|
|
static QString instanceAudioURL;
|
2018-03-28 19:43:31 -04:00
|
|
|
static QString instanceAudioInputParametersURL;
|
|
|
|
static QString instanceAudioOutputParametersURL;
|
|
|
|
static QString instanceAudioInputCleanupURL;
|
|
|
|
static QString instanceAudioOutputCleanupURL;
|
2017-11-24 22:02:11 -05:00
|
|
|
static QString instanceLocationURL;
|
2019-07-20 19:57:51 -04:00
|
|
|
static QString instanceAMBESerialURL;
|
|
|
|
static QString instanceAMBEDevicesURL;
|
2020-01-11 19:16:04 -05:00
|
|
|
static QString instanceLimeRFESerialURL;
|
|
|
|
static QString instanceLimeRFEConfigURL;
|
|
|
|
static QString instanceLimeRFERunURL;
|
2020-01-14 09:26:49 -05:00
|
|
|
static QString instanceLimeRFEPowerURL;
|
2017-12-20 18:50:58 -05:00
|
|
|
static QString instancePresetsURL;
|
2017-11-25 05:14:52 -05:00
|
|
|
static QString instancePresetURL;
|
2017-12-18 19:11:34 -05:00
|
|
|
static QString instancePresetFileURL;
|
2017-11-25 14:14:16 -05:00
|
|
|
static QString instanceDeviceSetsURL;
|
2017-12-21 19:07:03 -05:00
|
|
|
static QString instanceDeviceSetURL;
|
2017-11-25 18:26:56 -05:00
|
|
|
static std::regex devicesetURLRe;
|
2018-01-05 21:46:53 -05:00
|
|
|
static std::regex devicesetFocusURLRe;
|
2017-11-25 18:26:56 -05:00
|
|
|
static std::regex devicesetDeviceURLRe;
|
2017-12-06 16:08:34 -05:00
|
|
|
static std::regex devicesetDeviceSettingsURLRe;
|
2017-12-06 17:49:14 -05:00
|
|
|
static std::regex devicesetDeviceRunURLRe;
|
2019-12-24 13:08:11 -05:00
|
|
|
static std::regex devicesetDeviceSubsystemRunURLRe;
|
2018-05-25 19:43:28 -04:00
|
|
|
static std::regex devicesetDeviceReportURLRe;
|
2020-03-08 23:01:23 -04:00
|
|
|
static std::regex devicesetDeviceActionsURLRe;
|
2017-12-10 19:18:10 -05:00
|
|
|
static std::regex devicesetChannelURLRe;
|
|
|
|
static std::regex devicesetChannelIndexURLRe;
|
2017-12-10 14:27:08 -05:00
|
|
|
static std::regex devicesetChannelSettingsURLRe;
|
2018-03-18 15:17:11 -04:00
|
|
|
static std::regex devicesetChannelReportURLRe;
|
2020-03-08 23:01:23 -04:00
|
|
|
static std::regex devicesetChannelActionsURLRe;
|
2018-03-18 19:08:38 -04:00
|
|
|
static std::regex devicesetChannelsReportURLRe;
|
2017-11-16 21:17:15 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* SDRBASE_WEBAPI_WEBAPIADAPTERINTERFACE_H_ */
|