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.
SWGRemoteSourceSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGRemoteSourceSettings.h
15  *
16  * Remote channel source settings
17  */
18 
19 #ifndef SWGRemoteSourceSettings_H_
20 #define SWGRemoteSourceSettings_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  SWGRemoteSourceSettings(QString* json);
36  virtual ~SWGRemoteSourceSettings();
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 SWGRemoteSourceSettings* fromJson(QString &jsonString) override;
44 
45  QString* getDataAddress();
46  void setDataAddress(QString* data_address);
47 
48  qint32 getDataPort();
49  void setDataPort(qint32 data_port);
50 
51  qint32 getRgbColor();
52  void setRgbColor(qint32 rgb_color);
53 
54  QString* getTitle();
55  void setTitle(QString* title);
56 
57  qint32 getUseReverseApi();
58  void setUseReverseApi(qint32 use_reverse_api);
59 
60  QString* getReverseApiAddress();
61  void setReverseApiAddress(QString* reverse_api_address);
62 
63  qint32 getReverseApiPort();
64  void setReverseApiPort(qint32 reverse_api_port);
65 
66  qint32 getReverseApiDeviceIndex();
67  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
68 
69  qint32 getReverseApiChannelIndex();
70  void setReverseApiChannelIndex(qint32 reverse_api_channel_index);
71 
72 
73  virtual bool isSet() override;
74 
75 private:
76  QString* data_address;
78 
79  qint32 data_port;
81 
82  qint32 rgb_color;
84 
85  QString* title;
87 
90 
93 
96 
99 
102 
103 };
104 
105 }
106 
107 #endif /* SWGRemoteSourceSettings_H_ */
#define SWG_API
Definition: export.h:124