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.
SWGLocalSinkSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGLocalSinkSettings.h
15  *
16  * Local channel sink settings
17  */
18 
19 #ifndef SWGLocalSinkSettings_H_
20 #define SWGLocalSinkSettings_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  SWGLocalSinkSettings(QString* json);
36  virtual ~SWGLocalSinkSettings();
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 SWGLocalSinkSettings* fromJson(QString &jsonString) override;
44 
45  qint32 getLocalDeviceIndex();
46  void setLocalDeviceIndex(qint32 local_device_index);
47 
48  qint32 getRgbColor();
49  void setRgbColor(qint32 rgb_color);
50 
51  QString* getTitle();
52  void setTitle(QString* title);
53 
54  qint32 getLog2Decim();
55  void setLog2Decim(qint32 log2_decim);
56 
57  qint32 getFilterChainHash();
58  void setFilterChainHash(qint32 filter_chain_hash);
59 
60  qint32 getUseReverseApi();
61  void setUseReverseApi(qint32 use_reverse_api);
62 
63  QString* getReverseApiAddress();
64  void setReverseApiAddress(QString* reverse_api_address);
65 
66  qint32 getReverseApiPort();
67  void setReverseApiPort(qint32 reverse_api_port);
68 
69  qint32 getReverseApiDeviceIndex();
70  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
71 
72  qint32 getReverseApiChannelIndex();
73  void setReverseApiChannelIndex(qint32 reverse_api_channel_index);
74 
75 
76  virtual bool isSet() override;
77 
78 private:
81 
82  qint32 rgb_color;
84 
85  QString* title;
87 
88  qint32 log2_decim;
90 
93 
96 
99 
102 
105 
108 
109 };
110 
111 }
112 
113 #endif /* SWGLocalSinkSettings_H_ */
#define SWG_API
Definition: export.h:124