1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-03 06:24:48 -04:00

REST API: config: PUT (2): interface

This commit is contained in:
f4exb
2019-08-06 08:48:14 +02:00
parent f80d16451b
commit 659f94b4c6
9 changed files with 202 additions and 70 deletions
+22
View File
@@ -33,6 +33,7 @@ namespace SWGSDRangel
class SWGInstanceConfigResponse;
class SWGInstanceDevicesResponse;
class SWGInstanceChannelsResponse;
class SWGPreferences;
class SWGLoggingInfo;
class SWGAudioDevices;
class SWGAudioInputDevice;
@@ -104,6 +105,27 @@ public:
return 501;
}
/**
* Handler of /sdrangel/config (PUT) swagger/sdrangel/code/html2/index.html#api-Default-instanceSummary
* returns the Http status code (default 501: not implemented)
*/
virtual void instanceConfigInit()
{
}
virtual int instanceConfigPutPreferences(
SWGSDRangel::SWGPreferences& preferences,
const QStringList& preferenceKeys,
SWGSDRangel::SWGErrorResponse& error
)
{
(void) preferences;
(void) preferenceKeys;
error.init();
*error.getMessage() = QString("Function not implemented");
return 501;
}
/**
* Handler of /sdrangel/devices (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceDevices
* returns the Http status code (default 501: not implemented)