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.
lorademodgui.h
Go to the documentation of this file.
1 #ifndef INCLUDE_LoRaDEMODGUI_H
2 #define INCLUDE_LoRaDEMODGUI_H
3 
5 #include "gui/rollupwidget.h"
6 #include "dsp/channelmarker.h"
7 #include "util/messagequeue.h"
8 
9 #include "lorademodsettings.h"
10 
11 class PluginAPI;
12 class DeviceUISet;
13 class LoRaDemod;
14 class SpectrumVis;
15 class BasebandSampleSink;
16 
17 namespace Ui {
18  class LoRaDemodGUI;
19 }
20 
22  Q_OBJECT
23 
24 public:
25  static LoRaDemodGUI* create(PluginAPI* pluginAPI, DeviceUISet *deviceAPI, BasebandSampleSink *rxChannel);
26  virtual void destroy();
27 
28  void setName(const QString& name);
29  QString getName() const;
30  virtual qint64 getCenterFrequency() const;
31  virtual void setCenterFrequency(qint64 centerFrequency);
32 
33  void resetToDefaults();
34  QByteArray serialize() const;
35  bool deserialize(const QByteArray& data);
36  virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
37  virtual bool handleMessage(const Message& message);
38 
39 private slots:
40  void viewChanged();
41  void on_BW_valueChanged(int value);
42  void on_Spread_valueChanged(int value);
43  void onWidgetRolled(QWidget* widget, bool rollDown);
44 
45 private:
46  Ui::LoRaDemodGUI* ui;
52 
56 
57  explicit LoRaDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget* parent = 0);
58  virtual ~LoRaDemodGUI();
59 
60  void blockApplySettings(bool block);
61  void applySettings(bool force = false);
62  void displaySettings();
63 };
64 
65 #endif // INCLUDE_LoRaDEMODGUI_H
virtual MessageQueue * getInputMessageQueue()
Definition: lorademodgui.h:36
DeviceUISet * m_deviceUISet
Definition: lorademodgui.h:48
LoRaDemod * m_LoRaDemod
Definition: lorademodgui.h:53
bool m_doApplySettings
Definition: lorademodgui.h:51
void * create(QString type)
LoRaDemodSettings m_settings
Definition: lorademodgui.h:50
ChannelMarker m_channelMarker
Definition: lorademodgui.h:49
Ui::LoRaDemodGUI * ui
Definition: lorademodgui.h:46
MessageQueue m_inputMessageQueue
Definition: lorademodgui.h:55
SpectrumVis * m_spectrumVis
Definition: lorademodgui.h:54
PluginAPI * m_pluginAPI
Definition: lorademodgui.h:47