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.
SWGFileSourceSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGFileSourceSettings.h
15  *
16  * FileSource
17  */
18 
19 #ifndef SWGFileSourceSettings_H_
20 #define SWGFileSourceSettings_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  SWGFileSourceSettings(QString* json);
36  virtual ~SWGFileSourceSettings();
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 SWGFileSourceSettings* fromJson(QString &jsonString) override;
44 
45  QString* getFileName();
46  void setFileName(QString* file_name);
47 
48  qint32 getLoop();
49  void setLoop(qint32 loop);
50 
51  qint32 getLog2Interp();
52  void setLog2Interp(qint32 log2_interp);
53 
54  qint32 getFilterChainHash();
55  void setFilterChainHash(qint32 filter_chain_hash);
56 
57  qint32 getGainDb();
58  void setGainDb(qint32 gain_db);
59 
60  qint32 getRgbColor();
61  void setRgbColor(qint32 rgb_color);
62 
63  QString* getTitle();
64  void setTitle(QString* title);
65 
66  qint32 getUseReverseApi();
67  void setUseReverseApi(qint32 use_reverse_api);
68 
69  QString* getReverseApiAddress();
70  void setReverseApiAddress(QString* reverse_api_address);
71 
72  qint32 getReverseApiPort();
73  void setReverseApiPort(qint32 reverse_api_port);
74 
75  qint32 getReverseApiDeviceIndex();
76  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
77 
78  qint32 getReverseApiChannelIndex();
79  void setReverseApiChannelIndex(qint32 reverse_api_channel_index);
80 
81 
82  virtual bool isSet() override;
83 
84 private:
85  QString* file_name;
87 
88  qint32 loop;
90 
91  qint32 log2_interp;
93 
96 
97  qint32 gain_db;
99 
100  qint32 rgb_color;
102 
103  QString* title;
105 
108 
111 
114 
117 
120 
121 };
122 
123 }
124 
125 #endif /* SWGFileSourceSettings_H_ */
#define SWG_API
Definition: export.h:124