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.
SWGDeviceConfig.h
Go to the documentation of this file.
1 
13 /*
14  * SWGDeviceConfig.h
15  *
16  * Represents a Preset::DeviceConfig object
17  */
18 
19 #ifndef SWGDeviceConfig_H_
20 #define SWGDeviceConfig_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include "SWGDeviceSettings.h"
26 #include <QString>
27 
28 #include "SWGObject.h"
29 #include "export.h"
30 
31 namespace SWGSDRangel {
32 
34 public:
36  SWGDeviceConfig(QString* json);
37  virtual ~SWGDeviceConfig();
38  void init();
39  void cleanup();
40 
41  virtual QString asJson () override;
42  virtual QJsonObject* asJsonObject() override;
43  virtual void fromJsonObject(QJsonObject &json) override;
44  virtual SWGDeviceConfig* fromJson(QString &jsonString) override;
45 
46  QString* getDeviceId();
47  void setDeviceId(QString* device_id);
48 
49  QString* getDeviceSerial();
50  void setDeviceSerial(QString* device_serial);
51 
52  qint32 getDeviceSequence();
53  void setDeviceSequence(qint32 device_sequence);
54 
55  SWGDeviceSettings* getConfig();
56  void setConfig(SWGDeviceSettings* config);
57 
58 
59  virtual bool isSet() override;
60 
61 private:
62  QString* device_id;
64 
65  QString* device_serial;
67 
70 
73 
74 };
75 
76 }
77 
78 #endif /* SWGDeviceConfig_H_ */
SWGDeviceSettings * config
#define SWG_API
Definition: export.h:124