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 //
|
|
|
|
// //
|
|
|
|
// 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>
|
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;
|
2017-11-22 12:57:35 -05:00
|
|
|
class SWGInstanceDevicesResponse;
|
2017-11-22 19:19:32 -05:00
|
|
|
class SWGInstanceChannelsResponse;
|
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;
|
2017-11-24 22:43:22 -05:00
|
|
|
class SWGDVSeralDevices;
|
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-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;
|
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:
|
|
|
|
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(
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGInstanceSummaryResponse& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
2017-12-21 12:10:43 -05:00
|
|
|
SWGSDRangel::SWGSuccessResponse& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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
|
|
|
|
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(
|
|
|
|
bool tx __attribute__((unused)),
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGInstanceDevicesResponse& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
|
|
|
bool tx __attribute__((unused)),
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGInstanceChannelsResponse& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGLoggingInfo& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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-02-13 19:42:35 -05:00
|
|
|
SWGSDRangel::SWGLoggingInfo& query __attribute__((unused)),
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGLoggingInfo& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGAudioDevices& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
|
|
|
SWGSDRangel::SWGAudioInputDevice& response __attribute__((unused)),
|
|
|
|
const QStringList& audioInputKeys __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
|
|
|
SWGSDRangel::SWGAudioOutputDevice& response __attribute__((unused)),
|
|
|
|
const QStringList& audioOutputKeys __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
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(
|
|
|
|
SWGSDRangel::SWGAudioInputDevice& response __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
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(
|
|
|
|
SWGSDRangel::SWGAudioOutputDevice& response __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
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(
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
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(
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
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(
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGLocationInformation& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGLocationInformation& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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
|
|
|
|
2017-11-24 22:43:22 -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 instanceDVSerialPatch(
|
|
|
|
bool dvserial __attribute__((unused)),
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGDVSeralDevices& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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:43:22 -05:00
|
|
|
|
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(
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGPresets& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGPresetTransfer& query __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGPresetIdentifier& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGPresetTransfer& query __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGPresetIdentifier& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGPresetTransfer& query __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGPresetIdentifier& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGPresetIdentifier& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
|
|
|
SWGSDRangel::SWGPresetImport& query __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGPresetIdentifier& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
|
|
|
SWGSDRangel::SWGPresetExport& query __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGPresetIdentifier& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGDeviceSetList& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
2017-11-25 16:52:24 -05:00
|
|
|
bool tx __attribute__((unused)),
|
2017-12-19 11:55:05 -05:00
|
|
|
SWGSDRangel::SWGSuccessResponse& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
2017-12-19 11:55:05 -05:00
|
|
|
SWGSDRangel::SWGSuccessResponse& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
|
|
|
int deviceSetIndex __attribute__((unused)),
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGDeviceSet& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
|
|
|
int deviceSetIndex __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
|
|
|
int deviceSetIndex __attribute__((unused)),
|
2018-02-14 07:40:34 -05:00
|
|
|
SWGSDRangel::SWGDeviceListItem& query __attribute__((unused)),
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGDeviceListItem& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
2017-12-04 12:22:25 -05:00
|
|
|
int deviceSetIndex __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGDeviceSettings& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
2017-12-06 17:49:14 -05:00
|
|
|
int deviceSetIndex __attribute__((unused)),
|
2017-12-07 07:55:42 -05:00
|
|
|
bool force __attribute__((unused)), //!< true to force settings = put else patch
|
2017-12-26 19:46:33 -05:00
|
|
|
const QStringList& channelSettingsKeys __attribute__((unused)),
|
2017-12-06 17:49:14 -05:00
|
|
|
SWGSDRangel::SWGDeviceSettings& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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(
|
|
|
|
int deviceSetIndex __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGDeviceState& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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
|
|
|
|
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(
|
|
|
|
int deviceSetIndex __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGDeviceState& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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
|
|
|
|
|
|
|
/**
|
|
|
|
* 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(
|
|
|
|
int deviceSetIndex __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGDeviceState& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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
|
|
|
|
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(
|
|
|
|
int deviceSetIndex __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGChannelsDetail& response __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
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(
|
|
|
|
int deviceSetIndex __attribute__((unused)),
|
2017-12-19 11:55:05 -05:00
|
|
|
SWGSDRangel::SWGChannelSettings& query __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGSuccessResponse& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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-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(
|
2017-12-10 19:18:10 -05:00
|
|
|
int deviceSetIndex __attribute__((unused)),
|
|
|
|
int channelIndex __attribute__((unused)),
|
2017-12-23 16:33:30 -05:00
|
|
|
SWGSDRangel::SWGSuccessResponse& response __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGErrorResponse& error __attribute__((unused)))
|
2017-12-20 08:17:26 -05:00
|
|
|
{
|
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(
|
|
|
|
int deviceSetIndex __attribute__((unused)),
|
|
|
|
int channelIndex __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGChannelSettings& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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-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(
|
|
|
|
int deviceSetIndex __attribute__((unused)),
|
|
|
|
int channelIndex __attribute__((unused)),
|
|
|
|
bool force __attribute__((unused)),
|
2017-12-23 21:27:07 -05:00
|
|
|
const QStringList& channelSettingsKeys __attribute__((unused)),
|
2017-12-11 12:18:47 -05:00
|
|
|
SWGSDRangel::SWGChannelSettings& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
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-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(
|
|
|
|
int deviceSetIndex __attribute__((unused)),
|
|
|
|
int channelIndex __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGChannelReport& response __attribute__((unused)),
|
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
error.init();
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
|
|
|
|
2017-11-18 13:34:47 -05:00
|
|
|
static QString instanceSummaryURL;
|
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;
|
2017-11-24 22:43:22 -05:00
|
|
|
static QString instanceDVSerialURL;
|
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;
|
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;
|
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_ */
|