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.
SWGRemoteSinkSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGRemoteSinkSettings.h
15  *
16  * Remote channel sink settings
17  */
18 
19 #ifndef SWGRemoteSinkSettings_H_
20 #define SWGRemoteSinkSettings_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  SWGRemoteSinkSettings(QString* json);
36  virtual ~SWGRemoteSinkSettings();
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 SWGRemoteSinkSettings* fromJson(QString &jsonString) override;
44 
45  qint32 getNbFecBlocks();
46  void setNbFecBlocks(qint32 nb_fec_blocks);
47 
48  QString* getDataAddress();
49  void setDataAddress(QString* data_address);
50 
51  qint32 getDataPort();
52  void setDataPort(qint32 data_port);
53 
54  qint32 getTxDelay();
55  void setTxDelay(qint32 tx_delay);
56 
57  qint32 getRgbColor();
58  void setRgbColor(qint32 rgb_color);
59 
60  QString* getTitle();
61  void setTitle(QString* title);
62 
63  qint32 getLog2Decim();
64  void setLog2Decim(qint32 log2_decim);
65 
66  qint32 getFilterChainHash();
67  void setFilterChainHash(qint32 filter_chain_hash);
68 
69  qint32 getUseReverseApi();
70  void setUseReverseApi(qint32 use_reverse_api);
71 
72  QString* getReverseApiAddress();
73  void setReverseApiAddress(QString* reverse_api_address);
74 
75  qint32 getReverseApiPort();
76  void setReverseApiPort(qint32 reverse_api_port);
77 
78  qint32 getReverseApiDeviceIndex();
79  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
80 
81  qint32 getReverseApiChannelIndex();
82  void setReverseApiChannelIndex(qint32 reverse_api_channel_index);
83 
84 
85  virtual bool isSet() override;
86 
87 private:
88  qint32 nb_fec_blocks;
90 
91  QString* data_address;
93 
94  qint32 data_port;
96 
97  qint32 tx_delay;
99 
100  qint32 rgb_color;
102 
103  QString* title;
105 
106  qint32 log2_decim;
108 
111 
114 
117 
120 
123 
126 
127 };
128 
129 }
130 
131 #endif /* SWGRemoteSinkSettings_H_ */
#define SWG_API
Definition: export.h:124