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"
|
|
|
|
|
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;
|
2017-11-24 11:12:53 -05:00
|
|
|
class SWGAudioDevicesSelect;
|
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;
|
2017-12-10 14:27:08 -05:00
|
|
|
class SWGChannelSettings;
|
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
|
|
|
|
|
|
|
class WebAPIAdapterInterface
|
|
|
|
{
|
|
|
|
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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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(
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGLoggingInfo& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-24 02:46:12 -05:00
|
|
|
|
2017-11-24 11:12:53 -05:00
|
|
|
/**
|
|
|
|
* Handler of /sdrangel/audio (PATCH) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
|
|
|
|
* returns the Http status code (default 501: not implemented)
|
|
|
|
*/
|
|
|
|
virtual int instanceAudioPatch(
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGAudioDevicesSelect& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-11-24 11:12:53 -05:00
|
|
|
|
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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)),
|
2017-12-01 23:45:30 -05:00
|
|
|
SWGSDRangel::SWGDeviceListItem& response __attribute__((unused)),
|
2017-12-20 08:17:26 -05:00
|
|
|
SWGSDRangel::SWGErrorResponse& error)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-12-06 17:49:14 -05:00
|
|
|
|
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)
|
|
|
|
{
|
|
|
|
*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
|
|
|
{
|
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)
|
|
|
|
{
|
|
|
|
*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)
|
|
|
|
{
|
|
|
|
*error.getMessage() = QString("Function not implemented");
|
|
|
|
return 501;
|
|
|
|
}
|
2017-12-11 12:18:47 -05:00
|
|
|
|
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;
|
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;
|
2017-11-16 21:17:15 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* SDRBASE_WEBAPI_WEBAPIADAPTERINTERFACE_H_ */
|