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.
SWGLocalSourceSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGLocalSourceSettings.h
15  *
16  * Local channel source settings
17  */
18 
19 #ifndef SWGLocalSourceSettings_H_
20 #define SWGLocalSourceSettings_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  SWGLocalSourceSettings(QString* json);
36  virtual ~SWGLocalSourceSettings();
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 SWGLocalSourceSettings* 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 getLog2Interp();
55  void setLog2Interp(qint32 log2_interp);
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_interp;
90 
93 
96 
99 
102 
105 
108 
109 };
110 
111 }
112 
113 #endif /* SWGLocalSourceSettings_H_ */
#define SWG_API
Definition: export.h:124