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.
SWGSoapySDRGainSetting.h
Go to the documentation of this file.
1 
13 /*
14  * SWGSoapySDRGainSetting.h
15  *
16  * A named gain setting specified by its range
17  */
18 
19 #ifndef SWGSoapySDRGainSetting_H_
20 #define SWGSoapySDRGainSetting_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include "SWGRangeFloat.h"
26 #include <QString>
27 
28 #include "SWGObject.h"
29 #include "export.h"
30 
31 namespace SWGSDRangel {
32 
34 public:
36  SWGSoapySDRGainSetting(QString* json);
37  virtual ~SWGSoapySDRGainSetting();
38  void init();
39  void cleanup();
40 
41  virtual QString asJson () override;
42  virtual QJsonObject* asJsonObject() override;
43  virtual void fromJsonObject(QJsonObject &json) override;
44  virtual SWGSoapySDRGainSetting* fromJson(QString &jsonString) override;
45 
46  QString* getName();
47  void setName(QString* name);
48 
49  SWGRangeFloat* getRange();
50  void setRange(SWGRangeFloat* range);
51 
52 
53  virtual bool isSet() override;
54 
55 private:
56  QString* name;
58 
61 
62 };
63 
64 }
65 
66 #endif /* SWGSoapySDRGainSetting_H_ */
#define SWG_API
Definition: export.h:124