18 #include <QJsonDocument> 34 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}");
36 QString device_set_indexPathParam(
"{"); device_set_indexPathParam.append(
"deviceSetIndex").append(
"}");
37 fullPath.replace(device_set_indexPathParam,
stringValue(device_set_index));
38 QString channel_indexPathParam(
"{"); channel_indexPathParam.append(
"channelIndex").append(
"}");
39 fullPath.replace(channel_indexPathParam,
stringValue(channel_index));
65 QNetworkReply::NetworkError error_type = worker->
error_type;
67 if (worker->
error_type == QNetworkReply::NoError) {
68 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
77 worker->deleteLater();
79 if (worker->
error_type == QNetworkReply::NoError) {
90 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset/{deviceSetIndex}/channel");
92 QString device_set_indexPathParam(
"{"); device_set_indexPathParam.append(
"deviceSetIndex").append(
"}");
93 fullPath.replace(device_set_indexPathParam,
stringValue(device_set_index));
101 QString output = body.
asJson();
122 QNetworkReply::NetworkError error_type = worker->
error_type;
124 if (worker->
error_type == QNetworkReply::NoError) {
125 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
134 worker->deleteLater();
136 if (worker->
error_type == QNetworkReply::NoError) {
147 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/report");
149 QString device_set_indexPathParam(
"{"); device_set_indexPathParam.append(
"deviceSetIndex").append(
"}");
150 fullPath.replace(device_set_indexPathParam,
stringValue(device_set_index));
151 QString channel_indexPathParam(
"{"); channel_indexPathParam.append(
"channelIndex").append(
"}");
152 fullPath.replace(channel_indexPathParam,
stringValue(channel_index));
178 QNetworkReply::NetworkError error_type = worker->
error_type;
180 if (worker->
error_type == QNetworkReply::NoError) {
181 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
190 worker->deleteLater();
192 if (worker->
error_type == QNetworkReply::NoError) {
203 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings");
205 QString device_set_indexPathParam(
"{"); device_set_indexPathParam.append(
"deviceSetIndex").append(
"}");
206 fullPath.replace(device_set_indexPathParam,
stringValue(device_set_index));
207 QString channel_indexPathParam(
"{"); channel_indexPathParam.append(
"channelIndex").append(
"}");
208 fullPath.replace(channel_indexPathParam,
stringValue(channel_index));
234 QNetworkReply::NetworkError error_type = worker->
error_type;
236 if (worker->
error_type == QNetworkReply::NoError) {
237 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
246 worker->deleteLater();
248 if (worker->
error_type == QNetworkReply::NoError) {
259 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings");
261 QString device_set_indexPathParam(
"{"); device_set_indexPathParam.append(
"deviceSetIndex").append(
"}");
262 fullPath.replace(device_set_indexPathParam,
stringValue(device_set_index));
263 QString channel_indexPathParam(
"{"); channel_indexPathParam.append(
"channelIndex").append(
"}");
264 fullPath.replace(channel_indexPathParam,
stringValue(channel_index));
272 QString output = body.
asJson();
293 QNetworkReply::NetworkError error_type = worker->
error_type;
295 if (worker->
error_type == QNetworkReply::NoError) {
296 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
305 worker->deleteLater();
307 if (worker->
error_type == QNetworkReply::NoError) {
318 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings");
320 QString device_set_indexPathParam(
"{"); device_set_indexPathParam.append(
"deviceSetIndex").append(
"}");
321 fullPath.replace(device_set_indexPathParam,
stringValue(device_set_index));
322 QString channel_indexPathParam(
"{"); channel_indexPathParam.append(
"channelIndex").append(
"}");
323 fullPath.replace(channel_indexPathParam,
stringValue(channel_index));
331 QString output = body.
asJson();
352 QNetworkReply::NetworkError error_type = worker->
error_type;
354 if (worker->
error_type == QNetworkReply::NoError) {
355 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
364 worker->deleteLater();
366 if (worker->
error_type == QNetworkReply::NoError) {
377 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset/{deviceSetIndex}/channels/report");
379 QString device_set_indexPathParam(
"{"); device_set_indexPathParam.append(
"deviceSetIndex").append(
"}");
380 fullPath.replace(device_set_indexPathParam,
stringValue(device_set_index));
406 QNetworkReply::NetworkError error_type = worker->
error_type;
408 if (worker->
error_type == QNetworkReply::NoError) {
409 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
418 worker->deleteLater();
420 if (worker->
error_type == QNetworkReply::NoError) {
431 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset/{deviceSetIndex}/device");
433 QString device_set_indexPathParam(
"{"); device_set_indexPathParam.append(
"deviceSetIndex").append(
"}");
434 fullPath.replace(device_set_indexPathParam,
stringValue(device_set_index));
442 QString output = body.
asJson();
463 QNetworkReply::NetworkError error_type = worker->
error_type;
465 if (worker->
error_type == QNetworkReply::NoError) {
466 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
475 worker->deleteLater();
477 if (worker->
error_type == QNetworkReply::NoError) {
488 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset/{deviceSetIndex}/device/report");
490 QString device_set_indexPathParam(
"{"); device_set_indexPathParam.append(
"deviceSetIndex").append(
"}");
491 fullPath.replace(device_set_indexPathParam,
stringValue(device_set_index));
517 QNetworkReply::NetworkError error_type = worker->
error_type;
519 if (worker->
error_type == QNetworkReply::NoError) {
520 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
529 worker->deleteLater();
531 if (worker->
error_type == QNetworkReply::NoError) {
542 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset/{deviceSetIndex}/device/run");
544 QString device_set_indexPathParam(
"{"); device_set_indexPathParam.append(
"deviceSetIndex").append(
"}");
545 fullPath.replace(device_set_indexPathParam,
stringValue(device_set_index));
553 QString output = body.
asJson();
574 QNetworkReply::NetworkError error_type = worker->
error_type;
576 if (worker->
error_type == QNetworkReply::NoError) {
577 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
586 worker->deleteLater();
588 if (worker->
error_type == QNetworkReply::NoError) {
599 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset/{deviceSetIndex}/device/run");
601 QString device_set_indexPathParam(
"{"); device_set_indexPathParam.append(
"deviceSetIndex").append(
"}");
602 fullPath.replace(device_set_indexPathParam,
stringValue(device_set_index));
628 QNetworkReply::NetworkError error_type = worker->
error_type;
630 if (worker->
error_type == QNetworkReply::NoError) {
631 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
640 worker->deleteLater();
642 if (worker->
error_type == QNetworkReply::NoError) {
653 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset/{deviceSetIndex}/device/run");
655 QString device_set_indexPathParam(
"{"); device_set_indexPathParam.append(
"deviceSetIndex").append(
"}");
656 fullPath.replace(device_set_indexPathParam,
stringValue(device_set_index));
664 QString output = body.
asJson();
685 QNetworkReply::NetworkError error_type = worker->
error_type;
687 if (worker->
error_type == QNetworkReply::NoError) {
688 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
697 worker->deleteLater();
699 if (worker->
error_type == QNetworkReply::NoError) {
710 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset/{deviceSetIndex}/device/settings");
712 QString device_set_indexPathParam(
"{"); device_set_indexPathParam.append(
"deviceSetIndex").append(
"}");
713 fullPath.replace(device_set_indexPathParam,
stringValue(device_set_index));
739 QNetworkReply::NetworkError error_type = worker->
error_type;
741 if (worker->
error_type == QNetworkReply::NoError) {
742 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
751 worker->deleteLater();
753 if (worker->
error_type == QNetworkReply::NoError) {
764 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset/{deviceSetIndex}/device/settings");
766 QString device_set_indexPathParam(
"{"); device_set_indexPathParam.append(
"deviceSetIndex").append(
"}");
767 fullPath.replace(device_set_indexPathParam,
stringValue(device_set_index));
775 QString output = body.
asJson();
796 QNetworkReply::NetworkError error_type = worker->
error_type;
798 if (worker->
error_type == QNetworkReply::NoError) {
799 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
808 worker->deleteLater();
810 if (worker->
error_type == QNetworkReply::NoError) {
821 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset/{deviceSetIndex}/device/settings");
823 QString device_set_indexPathParam(
"{"); device_set_indexPathParam.append(
"deviceSetIndex").append(
"}");
824 fullPath.replace(device_set_indexPathParam,
stringValue(device_set_index));
832 QString output = body.
asJson();
853 QNetworkReply::NetworkError error_type = worker->
error_type;
855 if (worker->
error_type == QNetworkReply::NoError) {
856 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
865 worker->deleteLater();
867 if (worker->
error_type == QNetworkReply::NoError) {
878 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset/{deviceSetIndex}/focus");
880 QString device_set_indexPathParam(
"{"); device_set_indexPathParam.append(
"deviceSetIndex").append(
"}");
881 fullPath.replace(device_set_indexPathParam,
stringValue(device_set_index));
907 QNetworkReply::NetworkError error_type = worker->
error_type;
909 if (worker->
error_type == QNetworkReply::NoError) {
910 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
919 worker->deleteLater();
921 if (worker->
error_type == QNetworkReply::NoError) {
932 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset/{deviceSetIndex}");
934 QString device_set_indexPathParam(
"{"); device_set_indexPathParam.append(
"deviceSetIndex").append(
"}");
935 fullPath.replace(device_set_indexPathParam,
stringValue(device_set_index));
961 QNetworkReply::NetworkError error_type = worker->
error_type;
963 if (worker->
error_type == QNetworkReply::NoError) {
964 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
973 worker->deleteLater();
975 if (worker->
error_type == QNetworkReply::NoError) {
986 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset");
1013 QNetworkReply::NetworkError error_type = worker->
error_type;
1015 if (worker->
error_type == QNetworkReply::NoError) {
1016 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
1025 worker->deleteLater();
1027 if (worker->
error_type == QNetworkReply::NoError) {
1038 fullPath.append(this->
host).append(this->
basePath).append(
"/sdrangel/deviceset");
1041 if (fullPath.indexOf(
"?") > 0)
1042 fullPath.append(
"&");
1044 fullPath.append(
"?");
1045 fullPath.append(QUrl::toPercentEncoding(
"direction"))
1047 .append(QUrl::toPercentEncoding(
stringValue(direction)));
1073 QNetworkReply::NetworkError error_type = worker->
error_type;
1075 if (worker->
error_type == QNetworkReply::NoError) {
1076 msg = QString(
"Success! %1 bytes").arg(worker->
response.length());
1085 worker->deleteLater();
1087 if (worker->
error_type == QNetworkReply::NoError) {
void devicesetDeviceSettingsPutSignal(SWGDeviceSettings *summary)
void devicesetDevicePutSignal(SWGDeviceListItem *summary)
void devicesetChannelReportGetSignal(SWGChannelReport *summary)
void devicesetChannelDeleteCallback(SWGHttpRequestWorker *worker)
void instanceDeviceSetPostSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetDeviceRunGet(qint32 device_set_index)
void devicesetGetCallback(SWGHttpRequestWorker *worker)
void instanceDeviceSetPostSignal(SWGSuccessResponse *summary)
void execute(SWGHttpRequestInput *input)
void devicesetChannelSettingsPutSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetDeviceSettingsGetSignalE(SWGDeviceSettings *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetDeviceReportGetCallback(SWGHttpRequestWorker *worker)
void devicesetDeviceRunPostSignalE(SWGDeviceState *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetChannelSettingsPatchSignal(SWGChannelSettings *summary)
void devicesetDeviceSettingsGetSignal(SWGDeviceSettings *summary)
void devicesetFocusPatchSignalE(SWGSuccessResponse *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetDeviceRunPost(qint32 device_set_index, SWGDeviceSettings &body)
void devicesetGetSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
virtual QString asJson() override
void devicesetChannelSettingsPatchCallback(SWGHttpRequestWorker *worker)
void devicesetChannelDeleteSignalE(SWGChannelSettings *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void on_execution_finished(SWGHttpRequestWorker *worker)
void devicesetChannelSettingsPatchSignalE(SWGChannelSettings *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetDeviceRunGetCallback(SWGHttpRequestWorker *worker)
void devicesetChannelSettingsGetSignal(SWGChannelSettings *summary)
void devicesetFocusPatchSignal(SWGSuccessResponse *summary)
void devicesetChannelSettingsGetSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetChannelSettingsPutSignal(SWGChannelSettings *summary)
void devicesetDeviceReportGetSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetChannelSettingsGetSignalE(SWGChannelSettings *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetChannelReportGetCallback(SWGHttpRequestWorker *worker)
QMap< QString, QString > defaultHeaders
void devicesetDeviceReportGet(qint32 device_set_index)
void devicesetDeviceSettingsGet(qint32 device_set_index)
void devicesetDevicePut(qint32 device_set_index, SWGDeviceListItem &body)
void devicesetDeviceRunPostSignal(SWGDeviceState *summary)
void devicesetChannelsReportGetSignalE(SWGChannelsDetail *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetChannelSettingsPatchSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetFocusPatchCallback(SWGHttpRequestWorker *worker)
void devicesetChannelReportGet(qint32 device_set_index, qint32 channel_index)
void devicesetGet(qint32 device_set_index)
void devicesetChannelDeleteSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetDeviceRunDeleteSignal(SWGDeviceState *summary)
void devicesetChannelSettingsPut(qint32 device_set_index, qint32 channel_index, SWGChannelSettings &body)
void devicesetChannelSettingsPutSignalE(SWGChannelSettings *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetGetSignal(SWGDeviceSet *summary)
void devicesetDeviceSettingsPutCallback(SWGHttpRequestWorker *worker)
void devicesetDevicePutCallback(SWGHttpRequestWorker *worker)
void instanceDeviceSetDeleteSignalE(SWGSuccessResponse *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetDeviceRunGetSignal(SWGDeviceState *summary)
void * create(QString type)
void devicesetGetSignalE(SWGDeviceSet *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetChannelSettingsGetCallback(SWGHttpRequestWorker *worker)
void devicesetChannelPostSignal(SWGSuccessResponse *summary)
void devicesetDeviceSettingsPutSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetChannelsReportGet(qint32 device_set_index)
void devicesetDeviceRunPostSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetDeviceSettingsPatchSignalE(SWGDeviceSettings *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void instanceDeviceSetPostCallback(SWGHttpRequestWorker *worker)
void devicesetChannelDeleteSignal(SWGChannelSettings *summary)
void instanceDeviceSetPostSignalE(SWGSuccessResponse *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetDeviceRunPostCallback(SWGHttpRequestWorker *worker)
void devicesetDeviceRunDeleteSignalE(SWGDeviceState *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetDevicePutSignalE(SWGDeviceListItem *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetChannelPostSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetDeviceReportGetSignalE(SWGDeviceReport *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void instanceDeviceSetDeleteSignal(SWGSuccessResponse *summary)
virtual QString asJson() override
void devicesetChannelReportGetSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetChannelPost(qint32 device_set_index, SWGChannelSettings &body)
void devicesetDeviceSettingsPatchCallback(SWGHttpRequestWorker *worker)
void devicesetChannelDelete(qint32 device_set_index, qint32 channel_index)
void devicesetDeviceSettingsGetCallback(SWGHttpRequestWorker *worker)
void devicesetDeviceRunGetSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetChannelSettingsPatch(qint32 device_set_index, qint32 channel_index, SWGChannelSettings &body)
virtual QString asJson() override
void devicesetDeviceSettingsPatchSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetFocusPatchSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetChannelPostSignalE(SWGSuccessResponse *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetDevicePutSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetChannelSettingsGet(qint32 device_set_index, qint32 channel_index)
void devicesetChannelsReportGetCallback(SWGHttpRequestWorker *worker)
void devicesetDeviceReportGetSignal(SWGDeviceReport *summary)
void devicesetFocusPatch(qint32 device_set_index)
void devicesetDeviceRunDeleteSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void instanceDeviceSetPost(qint32 direction)
void instanceDeviceSetDelete()
void devicesetDeviceRunDeleteCallback(SWGHttpRequestWorker *worker)
void devicesetChannelSettingsPutCallback(SWGHttpRequestWorker *worker)
void devicesetDeviceRunDelete(qint32 device_set_index, SWGDeviceSettings &body)
void instanceDeviceSetDeleteSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetChannelPostCallback(SWGHttpRequestWorker *worker)
void devicesetDeviceSettingsGetSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetDeviceSettingsPut(qint32 device_set_index, SWGDeviceSettings &body)
void devicesetChannelReportGetSignalE(SWGChannelReport *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void instanceDeviceSetDeleteCallback(SWGHttpRequestWorker *worker)
void devicesetDeviceSettingsPutSignalE(SWGDeviceSettings *summary, QNetworkReply::NetworkError error_type, QString &error_str)
QNetworkReply::NetworkError error_type
void devicesetChannelsReportGetSignalEFull(SWGHttpRequestWorker *worker, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetDeviceSettingsPatch(qint32 device_set_index, SWGDeviceSettings &body)
void devicesetChannelsReportGetSignal(SWGChannelsDetail *summary)
QString stringValue(QString *value)
void devicesetDeviceRunGetSignalE(SWGDeviceState *summary, QNetworkReply::NetworkError error_type, QString &error_str)
void devicesetDeviceSettingsPatchSignal(SWGDeviceSettings *summary)