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.
SWGFileSourceReport.h
Go to the documentation of this file.
1 
13 /*
14  * SWGFileSourceReport.h
15  *
16  * FileSource
17  */
18 
19 #ifndef SWGFileSourceReport_H_
20 #define SWGFileSourceReport_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  SWGFileSourceReport(QString* json);
36  virtual ~SWGFileSourceReport();
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 SWGFileSourceReport* fromJson(QString &jsonString) override;
44 
45  QString* getFileName();
46  void setFileName(QString* file_name);
47 
48  qint32 getFileSampleRate();
49  void setFileSampleRate(qint32 file_sample_rate);
50 
51  qint32 getFileSampleSize();
52  void setFileSampleSize(qint32 file_sample_size);
53 
54  QString* getAbsoluteTime();
55  void setAbsoluteTime(QString* absolute_time);
56 
57  QString* getElapsedTime();
58  void setElapsedTime(QString* elapsed_time);
59 
60  QString* getDurationTime();
61  void setDurationTime(QString* duration_time);
62 
63  qint32 getSampleRate();
64  void setSampleRate(qint32 sample_rate);
65 
66  float getChannelPowerDb();
67  void setChannelPowerDb(float channel_power_db);
68 
69 
70  virtual bool isSet() override;
71 
72 private:
73  QString* file_name;
75 
78 
81 
82  QString* absolute_time;
84 
85  QString* elapsed_time;
87 
88  QString* duration_time;
90 
91  qint32 sample_rate;
93 
96 
97 };
98 
99 }
100 
101 #endif /* SWGFileSourceReport_H_ */
#define SWG_API
Definition: export.h:124