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.
SWGCommand.h
Go to the documentation of this file.
1 
13 /*
14  * SWGCommand.h
15  *
16  * Represents a Command object
17  */
18 
19 #ifndef SWGCommand_H_
20 #define SWGCommand_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include <QString>
26 
27 #include "SWGObject.h"
28 #include "export.h"
29 
30 namespace SWGSDRangel {
31 
32 class SWG_API SWGCommand: public SWGObject {
33 public:
34  SWGCommand();
35  SWGCommand(QString* json);
36  virtual ~SWGCommand();
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 SWGCommand* fromJson(QString &jsonString) override;
44 
45  QString* getGroup();
46  void setGroup(QString* group);
47 
48  QString* getDescription();
49  void setDescription(QString* description);
50 
51  QString* getCommand();
52  void setCommand(QString* command);
53 
54  QString* getArgString();
55  void setArgString(QString* arg_string);
56 
57  qint32 getKey();
58  void setKey(qint32 key);
59 
60  qint32 getKeyModifiers();
61  void setKeyModifiers(qint32 key_modifiers);
62 
63  qint32 getAssociateKey();
64  void setAssociateKey(qint32 associate_key);
65 
66  qint32 getRelease();
67  void setRelease(qint32 release);
68 
69 
70  virtual bool isSet() override;
71 
72 private:
73  QString* group;
75 
76  QString* description;
78 
79  QString* command;
81 
82  QString* arg_string;
84 
85  qint32 key;
87 
88  qint32 key_modifiers;
90 
91  qint32 associate_key;
93 
94  qint32 release;
96 
97 };
98 
99 }
100 
101 #endif /* SWGCommand_H_ */
#define SWG_API
Definition: export.h:124