SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
webapiadapterinterface.h
Go to the documentation of this file.
1 // Copyright (C) 2017 Edouard Griffiths, F4EXB. //
3 // //
4 // Swagger server adapter interface //
5 // //
6 // This program is free software; you can redistribute it and/or modify //
7 // it under the terms of the GNU General Public License as published by //
8 // the Free Software Foundation as version 3 of the License, or //
9 // (at your option) any later version. //
10 // //
11 // This program is distributed in the hope that it will be useful, //
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
14 // GNU General Public License V3 for more details. //
15 // //
16 // You should have received a copy of the GNU General Public License //
17 // along with this program. If not, see <http://www.gnu.org/licenses/>. //
19 
20 #ifndef SDRBASE_WEBAPI_WEBAPIADAPTERINTERFACE_H_
21 #define SDRBASE_WEBAPI_WEBAPIADAPTERINTERFACE_H_
22 
23 #include <QString>
24 #include <regex>
25 
26 #include "SWGErrorResponse.h"
27 
28 #include "export.h"
29 
30 namespace SWGSDRangel
31 {
32  class SWGInstanceSummaryResponse;
33  class SWGInstanceConfigResponse;
34  class SWGInstanceDevicesResponse;
35  class SWGInstanceChannelsResponse;
36  class SWGLoggingInfo;
37  class SWGAudioDevices;
38  class SWGAudioInputDevice;
39  class SWGAudioOutputDevice;
40  class SWGLocationInformation;
41  class SWGDVSerialDevices;
42  class SWGAMBEDevices;
43  class SWGPresets;
44  class SWGPresetTransfer;
45  class SWGPresetIdentifier;
46  class SWGPresetImport;
47  class SWGPresetExport;
48  class SWGDeviceSetList;
49  class SWGDeviceSet;
50  class SWGDeviceListItem;
51  class SWGDeviceSettings;
52  class SWGDeviceState;
53  class SWGDeviceReport;
54  class SWGChannelsDetail;
55  class SWGChannelSettings;
56  class SWGChannelReport;
57  class SWGSuccessResponse;
58 }
59 
61 {
62 public:
64 
69  virtual int instanceSummary(
72  {
73  (void) response;
74  error.init();
75  *error.getMessage() = QString("Function not implemented");
76  return 501;
77  }
78 
83  virtual int instanceDelete(
86  {
87  (void) response;
88  error.init();
89  *error.getMessage() = QString("Function not implemented");
90  return 501;
91  }
92 
97  virtual int instanceConfigGet(
100  {
101  (void) response;
102  error.init();
103  *error.getMessage() = QString("Function not implemented");
104  return 501;
105  }
106 
111  virtual int instanceDevices(
112  int direction,
115  {
116  (void) direction;
117  (void) response;
118  error.init();
119  *error.getMessage() = QString("Function not implemented");
120  return 501;
121  }
122 
127  virtual int instanceChannels(
128  int direction,
131  {
132  (void) direction;
133  (void) response;
134  error.init();
135  *error.getMessage() = QString("Function not implemented");
136  return 501;
137  }
138 
143  virtual int instanceLoggingGet(
144  SWGSDRangel::SWGLoggingInfo& response,
146  {
147  (void) response;
148  error.init();
149  *error.getMessage() = QString("Function not implemented");
150  return 501;
151  }
152 
157  virtual int instanceLoggingPut(
159  SWGSDRangel::SWGLoggingInfo& response,
161  {
162  (void) query;
163  (void) response;
164  error.init();
165  *error.getMessage() = QString("Function not implemented");
166  return 501;
167  }
168 
173  virtual int instanceAudioGet(
176  {
177  (void) response;
178  error.init();
179  *error.getMessage() = QString("Function not implemented");
180  return 501;
181  }
182 
189  const QStringList& audioInputKeys,
191  {
192  (void) response;
193  (void) audioInputKeys;
194  error.init();
195  *error.getMessage() = QString("Function not implemented");
196  return 501;
197  }
198 
205  const QStringList& audioOutputKeys,
207  {
208  (void) response;
209  (void) audioOutputKeys;
210  error.init();
211  *error.getMessage() = QString("Function not implemented");
212  return 501;
213  }
214 
222  {
223  (void) response;
224  error.init();
225  *error.getMessage() = QString("Function not implemented");
226  return 501;
227  }
228 
236  {
237  (void) response;
238  error.init();
239  *error.getMessage() = QString("Function not implemented");
240  return 501;
241  }
242 
250  {
251  (void) response;
252  error.init();
253  *error.getMessage() = QString("Function not implemented");
254  return 501;
255  }
256 
264  {
265  (void) response;
266  error.init();
267  *error.getMessage() = QString("Function not implemented");
268  return 501;
269  }
270 
275  virtual int instanceLocationGet(
278  {
279  (void) response;
280  error.init();
281  *error.getMessage() = QString("Function not implemented");
282  return 501;
283  }
284 
289  virtual int instanceLocationPut(
292  {
293  (void) response;
294  error.init();
295  *error.getMessage() = QString("Function not implemented");
296  return 501;
297  }
298 
306  {
307  (void) response;
308  error.init();
309  *error.getMessage() = QString("Function not implemented");
310  return 501;
311  }
312 
318  SWGSDRangel::SWGAMBEDevices& response,
320  {
321  (void) response;
322  error.init();
323  *error.getMessage() = QString("Function not implemented");
324  return 501;
325  }
326 
333  SWGSDRangel::SWGAMBEDevices& response,
335  {
336  (void) query;
337  (void) response;
338  error.init();
339  *error.getMessage() = QString("Function not implemented");
340  return 501;
341  }
342 
349  SWGSDRangel::SWGAMBEDevices& response,
351  {
352  (void) query;
353  (void) response;
354  error.init();
355  *error.getMessage() = QString("Function not implemented");
356  return 501;
357  }
358 
366  {
367  (void) response;
368  error.init();
369  *error.getMessage() = QString("Function not implemented");
370  return 501;
371  }
372 
377  virtual int instancePresetsGet(
378  SWGSDRangel::SWGPresets& response,
380  {
381  (void) response;
382  error.init();
383  *error.getMessage() = QString("Function not implemented");
384  return 501;
385  }
386 
391  virtual int instancePresetPatch(
395  {
396  (void) query;
397  (void) response;
398  error.init();
399  *error.getMessage() = QString("Function not implemented");
400  return 501;
401  }
402 
407  virtual int instancePresetPut(
411  {
412  (void) query;
413  (void) response;
414  error.init();
415  *error.getMessage() = QString("Function not implemented");
416  return 501;
417  }
418 
423  virtual int instancePresetPost(
427  {
428  (void) query;
429  (void) response;
430  error.init();
431  *error.getMessage() = QString("Function not implemented");
432  return 501;
433  }
434 
439  virtual int instancePresetDelete(
442  {
443  (void) response;
444  error.init();
445  *error.getMessage() = QString("Function not implemented");
446  return 501;
447  }
448 
457  {
458  (void) query;
459  (void) response;
460  error.init();
461  *error.getMessage() = QString("Function not implemented");
462  return 501;
463  }
464 
473  {
474  (void) query;
475  (void) response;
476  error.init();
477  *error.getMessage() = QString("Function not implemented");
478  return 501;
479  }
480 
488  {
489  (void) response;
490  error.init();
491  *error.getMessage() = QString("Function not implemented");
492  return 501;
493  }
494 
500  int direction,
503  {
504  (void) direction;
505  (void) response;
506  error.init();
507  *error.getMessage() = QString("Function not implemented");
508  return 501;
509  }
510 
518  {
519  (void) response;
520  error.init();
521  *error.getMessage() = QString("Function not implemented");
522  return 501;
523  }
524 
529  virtual int devicesetGet(
530  int deviceSetIndex,
531  SWGSDRangel::SWGDeviceSet& response,
533  {
534  (void) deviceSetIndex;
535  (void) response;
536  error.init();
537  *error.getMessage() = QString("Function not implemented");
538  return 501;
539  }
540 
545  virtual int devicesetFocusPatch(
546  int deviceSetIndex,
549  {
550  (void) deviceSetIndex;
551  (void) response;
552  error.init();
553  *error.getMessage() = QString("Function not implemented");
554  return 501;
555  }
556 
561  virtual int devicesetDevicePut(
562  int deviceSetIndex,
566  {
567  (void) deviceSetIndex;
568  (void) query;
569  (void) response;
570  error.init();
571  *error.getMessage() = QString("Function not implemented");
572  return 501;
573  }
574 
580  int deviceSetIndex,
583  {
584  (void) deviceSetIndex;
585  (void) response;
586  error.init();
587  *error.getMessage() = QString("Function not implemented");
588  return 501;
589  }
590 
596  int deviceSetIndex,
597  bool force,
598  const QStringList& channelSettingsKeys,
601  {
602  (void) deviceSetIndex;
603  (void) force;
604  (void) channelSettingsKeys;
605  (void) response;
606  error.init();
607  *error.getMessage() = QString("Function not implemented");
608  return 501;
609  }
610 
616  int deviceSetIndex,
617  SWGSDRangel::SWGDeviceState& response,
619  {
620  (void) deviceSetIndex;
621  (void) response;
622  error.init();
623  *error.getMessage() = QString("Function not implemented");
624  return 501;
625  }
626 
632  int deviceSetIndex,
633  SWGSDRangel::SWGDeviceState& response,
635  {
636  (void) deviceSetIndex;
637  (void) response;
638  error.init();
639  *error.getMessage() = QString("Function not implemented");
640  return 501;
641  }
642 
648  int deviceSetIndex,
649  SWGSDRangel::SWGDeviceState& response,
651  {
652  (void) deviceSetIndex;
653  (void) response;
654  error.init();
655  *error.getMessage() = QString("Function not implemented");
656  return 501;
657  }
658 
664  int deviceSetIndex,
667  {
668  (void) deviceSetIndex;
669  (void) response;
670  error.init();
671  *error.getMessage() = QString("Function not implemented");
672  return 501;
673  }
674 
680  int deviceSetIndex,
683  {
684  (void) deviceSetIndex;
685  (void) response;
686  error.init();
687  *error.getMessage() = QString("Function not implemented");
688  return 501;
689  }
690 
695  virtual int devicesetChannelPost(
696  int deviceSetIndex,
700  {
701  (void) deviceSetIndex;
702  (void) query;
703  (void) response;
704  error.init();
705  *error.getMessage() = QString("Function not implemented");
706  return 501;
707  }
708 
714  int deviceSetIndex,
715  int channelIndex,
718  {
719  (void) deviceSetIndex;
720  (void) channelIndex;
721  (void) response;
722  (void) error;
723  error.init();
724  *error.getMessage() = QString("Function not implemented");
725  return 501;
726  }
727 
733  int deviceSetIndex,
734  int channelIndex,
737  {
738  (void) deviceSetIndex;
739  (void) channelIndex;
740  (void) response;
741  error.init();
742  *error.getMessage() = QString("Function not implemented");
743  return 501;
744  }
745 
751  int deviceSetIndex,
752  int channelIndex,
753  bool force,
754  const QStringList& channelSettingsKeys,
757  {
758  (void) deviceSetIndex;
759  (void) channelIndex;
760  (void) force;
761  (void) channelSettingsKeys;
762  (void) response;
763  error.init();
764  *error.getMessage() = QString("Function not implemented");
765  return 501;
766  }
767 
768 
774  int deviceSetIndex,
775  int channelIndex,
778  {
779  (void) deviceSetIndex;
780  (void) channelIndex;
781  (void) response;
782  error.init();
783  *error.getMessage() = QString("Function not implemented");
784  return 501;
785  }
786 
787  static QString instanceSummaryURL;
788  static QString instanceConfigURL;
789  static QString instanceDevicesURL;
790  static QString instanceChannelsURL;
791  static QString instanceLoggingURL;
792  static QString instanceAudioURL;
797  static QString instanceLocationURL;
798  static QString instanceAMBESerialURL;
799  static QString instanceAMBEDevicesURL;
800  static QString instancePresetsURL;
801  static QString instancePresetURL;
802  static QString instancePresetFileURL;
803  static QString instanceDeviceSetsURL;
804  static QString instanceDeviceSetURL;
805  static std::regex devicesetURLRe;
806  static std::regex devicesetFocusURLRe;
807  static std::regex devicesetDeviceURLRe;
808  static std::regex devicesetDeviceSettingsURLRe;
809  static std::regex devicesetDeviceRunURLRe;
810  static std::regex devicesetDeviceReportURLRe;
811  static std::regex devicesetChannelURLRe;
812  static std::regex devicesetChannelIndexURLRe;
813  static std::regex devicesetChannelSettingsURLRe;
814  static std::regex devicesetChannelReportURLRe;
815  static std::regex devicesetChannelsReportURLRe;
816 };
817 
818 
819 
820 #endif /* SDRBASE_WEBAPI_WEBAPIADAPTERINTERFACE_H_ */
virtual int devicesetDeviceRunGet(int deviceSetIndex, SWGSDRangel::SWGDeviceState &response, SWGSDRangel::SWGErrorResponse &error)
virtual int devicesetFocusPatch(int deviceSetIndex, SWGSDRangel::SWGSuccessResponse &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceDeviceSetDelete(SWGSDRangel::SWGSuccessResponse &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceAMBEDevicesDelete(SWGSDRangel::SWGSuccessResponse &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instancePresetDelete(SWGSDRangel::SWGPresetIdentifier &response, SWGSDRangel::SWGErrorResponse &error)
virtual int devicesetChannelSettingsGet(int deviceSetIndex, int channelIndex, SWGSDRangel::SWGChannelSettings &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceSummary(SWGSDRangel::SWGInstanceSummaryResponse &response, SWGSDRangel::SWGErrorResponse &error)
static std::regex devicesetDeviceSettingsURLRe
static std::regex devicesetDeviceReportURLRe
virtual int instanceLocationGet(SWGSDRangel::SWGLocationInformation &response, SWGSDRangel::SWGErrorResponse &error)
static QString instanceAudioOutputParametersURL
virtual int devicesetChannelSettingsPutPatch(int deviceSetIndex, int channelIndex, bool force, const QStringList &channelSettingsKeys, SWGSDRangel::SWGChannelSettings &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceLoggingGet(SWGSDRangel::SWGLoggingInfo &response, SWGSDRangel::SWGErrorResponse &error)
virtual int devicesetDeviceReportGet(int deviceSetIndex, SWGSDRangel::SWGDeviceReport &response, SWGSDRangel::SWGErrorResponse &error)
static QString instanceAudioOutputCleanupURL
virtual int devicesetDeviceRunPost(int deviceSetIndex, SWGSDRangel::SWGDeviceState &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceAMBESerialGet(SWGSDRangel::SWGDVSerialDevices &response, SWGSDRangel::SWGErrorResponse &error)
virtual int devicesetDeviceRunDelete(int deviceSetIndex, SWGSDRangel::SWGDeviceState &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceAudioInputCleanupPatch(SWGSDRangel::SWGSuccessResponse &response, SWGSDRangel::SWGErrorResponse &error)
virtual int devicesetGet(int deviceSetIndex, SWGSDRangel::SWGDeviceSet &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instancePresetPut(SWGSDRangel::SWGPresetTransfer &query, SWGSDRangel::SWGPresetIdentifier &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceAudioOutputCleanupPatch(SWGSDRangel::SWGSuccessResponse &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceAMBEDevicesPatch(SWGSDRangel::SWGAMBEDevices &query, SWGSDRangel::SWGAMBEDevices &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instancePresetPost(SWGSDRangel::SWGPresetTransfer &query, SWGSDRangel::SWGPresetIdentifier &response, SWGSDRangel::SWGErrorResponse &error)
static std::regex devicesetURLRe
virtual int instancePresetsGet(SWGSDRangel::SWGPresets &response, SWGSDRangel::SWGErrorResponse &error)
virtual int devicesetDeviceSettingsGet(int deviceSetIndex, SWGSDRangel::SWGDeviceSettings &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceAudioInputPatch(SWGSDRangel::SWGAudioInputDevice &response, const QStringList &audioInputKeys, SWGSDRangel::SWGErrorResponse &error)
virtual int devicesetDevicePut(int deviceSetIndex, SWGSDRangel::SWGDeviceListItem &query, SWGSDRangel::SWGDeviceListItem &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceAudioOutputDelete(SWGSDRangel::SWGAudioOutputDevice &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceAMBEDevicesGet(SWGSDRangel::SWGAMBEDevices &response, SWGSDRangel::SWGErrorResponse &error)
static QString instanceAudioInputParametersURL
virtual int instanceChannels(int direction, SWGSDRangel::SWGInstanceChannelsResponse &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceAudioGet(SWGSDRangel::SWGAudioDevices &response, SWGSDRangel::SWGErrorResponse &error)
virtual int devicesetChannelsReportGet(int deviceSetIndex, SWGSDRangel::SWGChannelsDetail &response, SWGSDRangel::SWGErrorResponse &error)
static QString instanceAudioInputCleanupURL
virtual int instancePresetFilePost(SWGSDRangel::SWGPresetExport &query, SWGSDRangel::SWGPresetIdentifier &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceAudioOutputPatch(SWGSDRangel::SWGAudioOutputDevice &response, const QStringList &audioOutputKeys, SWGSDRangel::SWGErrorResponse &error)
static std::regex devicesetChannelsReportURLRe
virtual int devicesetChannelReportGet(int deviceSetIndex, int channelIndex, SWGSDRangel::SWGChannelReport &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceLoggingPut(SWGSDRangel::SWGLoggingInfo &query, SWGSDRangel::SWGLoggingInfo &response, SWGSDRangel::SWGErrorResponse &error)
static std::regex devicesetChannelReportURLRe
static std::regex devicesetFocusURLRe
static std::regex devicesetChannelSettingsURLRe
virtual int instancePresetFilePut(SWGSDRangel::SWGPresetImport &query, SWGSDRangel::SWGPresetIdentifier &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceConfigGet(SWGSDRangel::SWGInstanceConfigResponse &response, SWGSDRangel::SWGErrorResponse &error)
static std::regex devicesetDeviceURLRe
virtual int instanceDelete(SWGSDRangel::SWGSuccessResponse &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceAMBEDevicesPut(SWGSDRangel::SWGAMBEDevices &query, SWGSDRangel::SWGAMBEDevices &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceLocationPut(SWGSDRangel::SWGLocationInformation &response, SWGSDRangel::SWGErrorResponse &error)
static std::regex devicesetChannelURLRe
static std::regex devicesetDeviceRunURLRe
#define SDRBASE_API
Definition: export.h:40
virtual int devicesetChannelDelete(int deviceSetIndex, int channelIndex, SWGSDRangel::SWGSuccessResponse &response, SWGSDRangel::SWGErrorResponse &error)
virtual int devicesetDeviceSettingsPutPatch(int deviceSetIndex, bool force, const QStringList &channelSettingsKeys, SWGSDRangel::SWGDeviceSettings &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceDeviceSetPost(int direction, SWGSDRangel::SWGSuccessResponse &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instancePresetPatch(SWGSDRangel::SWGPresetTransfer &query, SWGSDRangel::SWGPresetIdentifier &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceDeviceSetsGet(SWGSDRangel::SWGDeviceSetList &response, SWGSDRangel::SWGErrorResponse &error)
virtual int instanceAudioInputDelete(SWGSDRangel::SWGAudioInputDevice &response, SWGSDRangel::SWGErrorResponse &error)
virtual int devicesetChannelPost(int deviceSetIndex, SWGSDRangel::SWGChannelSettings &query, SWGSDRangel::SWGSuccessResponse &response, SWGSDRangel::SWGErrorResponse &error)
static std::regex devicesetChannelIndexURLRe
virtual int instanceDevices(int direction, SWGSDRangel::SWGInstanceDevicesResponse &response, SWGSDRangel::SWGErrorResponse &error)