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.
SWGArgInfo.h
Go to the documentation of this file.
1 
13 /*
14  * SWGArgInfo.h
15  *
16  *
17  */
18 
19 #ifndef SWGArgInfo_H_
20 #define SWGArgInfo_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include "SWGRangeFloat.h"
26 #include <QList>
27 #include <QString>
28 
29 #include "SWGObject.h"
30 #include "export.h"
31 
32 namespace SWGSDRangel {
33 
34 class SWG_API SWGArgInfo: public SWGObject {
35 public:
36  SWGArgInfo();
37  SWGArgInfo(QString* json);
38  virtual ~SWGArgInfo();
39  void init();
40  void cleanup();
41 
42  virtual QString asJson () override;
43  virtual QJsonObject* asJsonObject() override;
44  virtual void fromJsonObject(QJsonObject &json) override;
45  virtual SWGArgInfo* fromJson(QString &jsonString) override;
46 
47  QString* getKey();
48  void setKey(QString* key);
49 
50  QString* getValueType();
51  void setValueType(QString* value_type);
52 
53  QString* getValueString();
54  void setValueString(QString* value_string);
55 
56  QString* getName();
57  void setName(QString* name);
58 
59  QString* getDescription();
60  void setDescription(QString* description);
61 
62  QString* getUnits();
63  void setUnits(QString* units);
64 
65  SWGRangeFloat* getRange();
66  void setRange(SWGRangeFloat* range);
67 
68  QList<QString*>* getValueOptions();
69  void setValueOptions(QList<QString*>* value_options);
70 
71  QList<QString*>* getOptionNames();
72  void setOptionNames(QList<QString*>* option_names);
73 
74 
75  virtual bool isSet() override;
76 
77 private:
78  QString* key;
80 
81  QString* value_type;
83 
84  QString* value_string;
86 
87  QString* name;
89 
90  QString* description;
92 
93  QString* units;
95 
98 
99  QList<QString*>* value_options;
101 
102  QList<QString*>* option_names;
104 
105 };
106 
107 }
108 
109 #endif /* SWGArgInfo_H_ */
QList< QString * > * value_options
Definition: SWGArgInfo.h:99
SWGRangeFloat * range
Definition: SWGArgInfo.h:96
#define SWG_API
Definition: export.h:124
QList< QString * > * option_names
Definition: SWGArgInfo.h:102