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.
SWGRemoteInputReport.h
Go to the documentation of this file.
1 
13 /*
14  * SWGRemoteInputReport.h
15  *
16  * RemoteInput
17  */
18 
19 #ifndef SWGRemoteInputReport_H_
20 #define SWGRemoteInputReport_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  SWGRemoteInputReport(QString* json);
36  virtual ~SWGRemoteInputReport();
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 SWGRemoteInputReport* fromJson(QString &jsonString) override;
44 
45  qint32 getCenterFrequency();
46  void setCenterFrequency(qint32 center_frequency);
47 
48  qint32 getSampleRate();
49  void setSampleRate(qint32 sample_rate);
50 
51  qint32 getBufferRwBalance();
52  void setBufferRwBalance(qint32 buffer_rw_balance);
53 
54  QString* getRemoteTimestamp();
55  void setRemoteTimestamp(QString* remote_timestamp);
56 
57  qint32 getMinNbBlocks();
58  void setMinNbBlocks(qint32 min_nb_blocks);
59 
60  qint32 getMaxNbRecovery();
61  void setMaxNbRecovery(qint32 max_nb_recovery);
62 
63 
64  virtual bool isSet() override;
65 
66 private:
69 
70  qint32 sample_rate;
72 
75 
76  QString* remote_timestamp;
78 
79  qint32 min_nb_blocks;
81 
84 
85 };
86 
87 }
88 
89 #endif /* SWGRemoteInputReport_H_ */
#define SWG_API
Definition: export.h:124