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.
SWGPreset.h
Go to the documentation of this file.
1 
13 /*
14  * SWGPreset.h
15  *
16  * Represents a Preset object
17  */
18 
19 #ifndef SWGPreset_H_
20 #define SWGPreset_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include "SWGChannelConfig.h"
26 #include "SWGDeviceConfig.h"
27 #include "SWGGLSpectrum.h"
28 #include <QList>
29 #include <QString>
30 
31 #include "SWGObject.h"
32 #include "export.h"
33 
34 namespace SWGSDRangel {
35 
36 class SWG_API SWGPreset: public SWGObject {
37 public:
38  SWGPreset();
39  SWGPreset(QString* json);
40  virtual ~SWGPreset();
41  void init();
42  void cleanup();
43 
44  virtual QString asJson () override;
45  virtual QJsonObject* asJsonObject() override;
46  virtual void fromJsonObject(QJsonObject &json) override;
47  virtual SWGPreset* fromJson(QString &jsonString) override;
48 
49  qint32 getSourcePreset();
50  void setSourcePreset(qint32 source_preset);
51 
52  QString* getGroup();
53  void setGroup(QString* group);
54 
55  QString* getDescription();
56  void setDescription(QString* description);
57 
58  qint64 getCenterFrequency();
59  void setCenterFrequency(qint64 center_frequency);
60 
61  SWGGLSpectrum* getMSpectrumConfig();
62  void setMSpectrumConfig(SWGGLSpectrum* m_spectrum_config);
63 
64  qint32 getDcOffsetCorrection();
65  void setDcOffsetCorrection(qint32 dc_offset_correction);
66 
67  qint32 getIqImbalanceCorrection();
68  void setIqImbalanceCorrection(qint32 iq_imbalance_correction);
69 
70  QList<SWGChannelConfig*>* getChannelConfigs();
71  void setChannelConfigs(QList<SWGChannelConfig*>* channel_configs);
72 
73  QList<SWGDeviceConfig*>* getDeviceConfigs();
74  void setDeviceConfigs(QList<SWGDeviceConfig*>* device_configs);
75 
76  QString* getLayout();
77  void setLayout(QString* layout);
78 
79 
80  virtual bool isSet() override;
81 
82 private:
83  qint32 source_preset;
85 
86  QString* group;
88 
89  QString* description;
91 
94 
97 
100 
103 
104  QList<SWGChannelConfig*>* channel_configs;
106 
107  QList<SWGDeviceConfig*>* device_configs;
109 
110  QString* layout;
112 
113 };
114 
115 }
116 
117 #endif /* SWGPreset_H_ */
QList< SWGDeviceConfig * > * device_configs
Definition: SWGPreset.h:107
SWGGLSpectrum * m_spectrum_config
Definition: SWGPreset.h:95
bool m_iq_imbalance_correction_isSet
Definition: SWGPreset.h:102
bool m_dc_offset_correction_isSet
Definition: SWGPreset.h:99
#define SWG_API
Definition: export.h:124
bool m_m_spectrum_config_isSet
Definition: SWGPreset.h:96
QString * description
Definition: SWGPreset.h:89
qint32 iq_imbalance_correction
Definition: SWGPreset.h:101
qint32 dc_offset_correction
Definition: SWGPreset.h:98
QList< SWGChannelConfig * > * channel_configs
Definition: SWGPreset.h:104