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.
SWGCWKeyerSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGCWKeyerSettings.h
15  *
16  *
17  */
18 
19 #ifndef SWGCWKeyerSettings_H_
20 #define SWGCWKeyerSettings_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  SWGCWKeyerSettings(QString* json);
36  virtual ~SWGCWKeyerSettings();
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 SWGCWKeyerSettings* fromJson(QString &jsonString) override;
44 
45  qint32 getSampleRate();
46  void setSampleRate(qint32 sample_rate);
47 
48  qint32 getWpm();
49  void setWpm(qint32 wpm);
50 
51  qint32 getMode();
52  void setMode(qint32 mode);
53 
54  QString* getText();
55  void setText(QString* text);
56 
57  qint32 getLoop();
58  void setLoop(qint32 loop);
59 
60  qint32 getKeyboardIambic();
61  void setKeyboardIambic(qint32 keyboard_iambic);
62 
63  qint32 getDotKey();
64  void setDotKey(qint32 dot_key);
65 
66  qint32 getDotKeyModifiers();
67  void setDotKeyModifiers(qint32 dot_key_modifiers);
68 
69  qint32 getDashKey();
70  void setDashKey(qint32 dash_key);
71 
72  qint32 getDashKeyModifiers();
73  void setDashKeyModifiers(qint32 dash_key_modifiers);
74 
75 
76  virtual bool isSet() override;
77 
78 private:
79  qint32 sample_rate;
81 
82  qint32 wpm;
84 
85  qint32 mode;
87 
88  QString* text;
90 
91  qint32 loop;
93 
96 
97  qint32 dot_key;
99 
102 
103  qint32 dash_key;
105 
108 
109 };
110 
111 }
112 
113 #endif /* SWGCWKeyerSettings_H_ */
#define SWG_API
Definition: export.h:124