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