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.
SWGRemoteOutputSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGRemoteOutputSettings.h
15  *
16  * RemoteOutput
17  */
18 
19 #ifndef SWGRemoteOutputSettings_H_
20 #define SWGRemoteOutputSettings_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include <QString>
26 
27 #include "SWGObject.h"
28 #include "export.h"
29 
30 namespace SWGSDRangel {
31 
33 public:
35  SWGRemoteOutputSettings(QString* json);
36  virtual ~SWGRemoteOutputSettings();
37  void init();
38  void cleanup();
39 
40  virtual QString asJson () override;
41  virtual QJsonObject* asJsonObject() override;
42  virtual void fromJsonObject(QJsonObject &json) override;
43  virtual SWGRemoteOutputSettings* fromJson(QString &jsonString) override;
44 
45  qint32 getCenterFrequency();
46  void setCenterFrequency(qint32 center_frequency);
47 
48  qint32 getSampleRate();
49  void setSampleRate(qint32 sample_rate);
50 
51  float getTxDelay();
52  void setTxDelay(float tx_delay);
53 
54  qint32 getNbFecBlocks();
55  void setNbFecBlocks(qint32 nb_fec_blocks);
56 
57  QString* getApiAddress();
58  void setApiAddress(QString* api_address);
59 
60  qint32 getApiPort();
61  void setApiPort(qint32 api_port);
62 
63  QString* getDataAddress();
64  void setDataAddress(QString* data_address);
65 
66  qint32 getDataPort();
67  void setDataPort(qint32 data_port);
68 
69  qint32 getDeviceIndex();
70  void setDeviceIndex(qint32 device_index);
71 
72  qint32 getChannelIndex();
73  void setChannelIndex(qint32 channel_index);
74 
75  qint32 getUseReverseApi();
76  void setUseReverseApi(qint32 use_reverse_api);
77 
78  QString* getReverseApiAddress();
79  void setReverseApiAddress(QString* reverse_api_address);
80 
81  qint32 getReverseApiPort();
82  void setReverseApiPort(qint32 reverse_api_port);
83 
84  qint32 getReverseApiDeviceIndex();
85  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
86 
87 
88  virtual bool isSet() override;
89 
90 private:
93 
94  qint32 sample_rate;
96 
97  float tx_delay;
99 
102 
103  QString* api_address;
105 
106  qint32 api_port;
108 
109  QString* data_address;
111 
112  qint32 data_port;
114 
115  qint32 device_index;
117 
120 
123 
126 
129 
132 
133 };
134 
135 }
136 
137 #endif /* SWGRemoteOutputSettings_H_ */
#define SWG_API
Definition: export.h:124