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.
SWGFileInputReport.h
Go to the documentation of this file.
1 
13 /*
14  * SWGFileInputReport.h
15  *
16  * FileInput
17  */
18 
19 #ifndef SWGFileInputReport_H_
20 #define SWGFileInputReport_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  SWGFileInputReport(QString* json);
36  virtual ~SWGFileInputReport();
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 SWGFileInputReport* fromJson(QString &jsonString) override;
44 
45  QString* getFileName();
46  void setFileName(QString* file_name);
47 
48  qint32 getSampleRate();
49  void setSampleRate(qint32 sample_rate);
50 
51  qint32 getSampleSize();
52  void setSampleSize(qint32 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 
64  virtual bool isSet() override;
65 
66 private:
67  QString* file_name;
69 
70  qint32 sample_rate;
72 
73  qint32 sample_size;
75 
76  QString* absolute_time;
78 
79  QString* elapsed_time;
81 
82  QString* duration_time;
84 
85 };
86 
87 }
88 
89 #endif /* SWGFileInputReport_H_ */
#define SWG_API
Definition: export.h:124