mirror of https://github.com/f4exb/sdrangel.git
Implemented GUI input message queue and interface
This commit is contained in:
parent
9dd99a4530
commit
2b4f8a0f55
|
@ -17,10 +17,11 @@
|
||||||
#ifndef INCLUDE_CHANNELANALYZERGUI_H
|
#ifndef INCLUDE_CHANNELANALYZERGUI_H
|
||||||
#define INCLUDE_CHANNELANALYZERGUI_H
|
#define INCLUDE_CHANNELANALYZERGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
#include "dsp/movingaverage.h"
|
#include "dsp/movingaverage.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
class PluginAPI;
|
class PluginAPI;
|
||||||
class DeviceSourceAPI;
|
class DeviceSourceAPI;
|
||||||
|
@ -51,7 +52,7 @@ public:
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
static const QString m_channelID;
|
static const QString m_channelID;
|
||||||
|
@ -86,6 +87,7 @@ private:
|
||||||
SpectrumScopeComboVis* m_spectrumScopeComboVis;
|
SpectrumScopeComboVis* m_spectrumScopeComboVis;
|
||||||
SpectrumVis* m_spectrumVis;
|
SpectrumVis* m_spectrumVis;
|
||||||
ScopeVis* m_scopeVis;
|
ScopeVis* m_scopeVis;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
explicit ChannelAnalyzerGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = NULL);
|
explicit ChannelAnalyzerGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = NULL);
|
||||||
virtual ~ChannelAnalyzerGUI();
|
virtual ~ChannelAnalyzerGUI();
|
||||||
|
|
|
@ -17,10 +17,11 @@
|
||||||
#ifndef INCLUDE_CHANNELANALYZERNGGUI_H
|
#ifndef INCLUDE_CHANNELANALYZERNGGUI_H
|
||||||
#define INCLUDE_CHANNELANALYZERNGGUI_H
|
#define INCLUDE_CHANNELANALYZERNGGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
#include "dsp/movingaverage.h"
|
#include "dsp/movingaverage.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
class PluginAPI;
|
class PluginAPI;
|
||||||
class DeviceSourceAPI;
|
class DeviceSourceAPI;
|
||||||
|
@ -51,7 +52,7 @@ public:
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
static const QString m_channelID;
|
static const QString m_channelID;
|
||||||
|
@ -87,6 +88,7 @@ private:
|
||||||
SpectrumScopeNGComboVis* m_spectrumScopeComboVis;
|
SpectrumScopeNGComboVis* m_spectrumScopeComboVis;
|
||||||
SpectrumVis* m_spectrumVis;
|
SpectrumVis* m_spectrumVis;
|
||||||
ScopeVisNG* m_scopeVis;
|
ScopeVisNG* m_scopeVis;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
explicit ChannelAnalyzerNGGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = NULL);
|
explicit ChannelAnalyzerNGGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = NULL);
|
||||||
virtual ~ChannelAnalyzerNGGUI();
|
virtual ~ChannelAnalyzerNGGUI();
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
#ifndef INCLUDE_AMDEMODGUI_H
|
#ifndef INCLUDE_AMDEMODGUI_H
|
||||||
#define INCLUDE_AMDEMODGUI_H
|
#define INCLUDE_AMDEMODGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
#include "dsp/movingaverage.h"
|
#include "dsp/movingaverage.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
class PluginAPI;
|
class PluginAPI;
|
||||||
class DeviceSourceAPI;
|
class DeviceSourceAPI;
|
||||||
|
@ -32,7 +33,7 @@ public:
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
static const QString m_channelID;
|
static const QString m_channelID;
|
||||||
|
@ -62,6 +63,7 @@ private:
|
||||||
AMDemod* m_amDemod;
|
AMDemod* m_amDemod;
|
||||||
bool m_squelchOpen;
|
bool m_squelchOpen;
|
||||||
uint32_t m_tickCount;
|
uint32_t m_tickCount;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
explicit AMDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = NULL);
|
explicit AMDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = NULL);
|
||||||
virtual ~AMDemodGUI();
|
virtual ~AMDemodGUI();
|
||||||
|
|
|
@ -18,10 +18,11 @@
|
||||||
#ifndef INCLUDE_ATVDEMODGUI_H
|
#ifndef INCLUDE_ATVDEMODGUI_H
|
||||||
#define INCLUDE_ATVDEMODGUI_H
|
#define INCLUDE_ATVDEMODGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
#include "dsp/movingaverage.h"
|
#include "dsp/movingaverage.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
class PluginAPI;
|
class PluginAPI;
|
||||||
class DeviceSourceAPI;
|
class DeviceSourceAPI;
|
||||||
|
@ -52,7 +53,7 @@ public:
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& arrData);
|
bool deserialize(const QByteArray& arrData);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& objMessage);
|
virtual bool handleMessage(const Message& objMessage);
|
||||||
|
|
||||||
static const QString m_strChannelID;
|
static const QString m_strChannelID;
|
||||||
|
@ -106,6 +107,7 @@ private:
|
||||||
float m_fltLineTimeMultiplier;
|
float m_fltLineTimeMultiplier;
|
||||||
float m_fltTopTimeMultiplier;
|
float m_fltTopTimeMultiplier;
|
||||||
int m_rfSliderDivisor;
|
int m_rfSliderDivisor;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
explicit ATVDemodGUI(PluginAPI* objPluginAPI, DeviceSourceAPI *objDeviceAPI, QWidget* objParent = NULL);
|
explicit ATVDemodGUI(PluginAPI* objPluginAPI, DeviceSourceAPI *objDeviceAPI, QWidget* objParent = NULL);
|
||||||
virtual ~ATVDemodGUI();
|
virtual ~ATVDemodGUI();
|
||||||
|
|
|
@ -18,10 +18,11 @@
|
||||||
#ifndef INCLUDE_BFMDEMODGUI_H
|
#ifndef INCLUDE_BFMDEMODGUI_H
|
||||||
#define INCLUDE_BFMDEMODGUI_H
|
#define INCLUDE_BFMDEMODGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
#include "dsp/movingaverage.h"
|
#include "dsp/movingaverage.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "rdsparser.h"
|
#include "rdsparser.h"
|
||||||
|
|
||||||
|
@ -52,7 +53,7 @@ public:
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
static const QString m_channelID;
|
static const QString m_channelID;
|
||||||
|
@ -96,6 +97,7 @@ private:
|
||||||
MovingAverage<double> m_channelPowerDbAvg;
|
MovingAverage<double> m_channelPowerDbAvg;
|
||||||
int m_rate;
|
int m_rate;
|
||||||
std::vector<unsigned int> m_g14ComboIndex;
|
std::vector<unsigned int> m_g14ComboIndex;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
static const int m_rfBW[];
|
static const int m_rfBW[];
|
||||||
|
|
||||||
|
|
|
@ -18,13 +18,14 @@
|
||||||
#ifndef INCLUDE_DSDDEMODGUI_H
|
#ifndef INCLUDE_DSDDEMODGUI_H
|
||||||
#define INCLUDE_DSDDEMODGUI_H
|
#define INCLUDE_DSDDEMODGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/dsptypes.h"
|
#include "dsp/dsptypes.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
#include "dsp/movingaverage.h"
|
#include "dsp/movingaverage.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
class PluginAPI;
|
class PluginAPI;
|
||||||
class DeviceSourceAPI;
|
class DeviceSourceAPI;
|
||||||
|
@ -53,7 +54,7 @@ public:
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
static const QString m_channelID;
|
static const QString m_channelID;
|
||||||
|
@ -116,6 +117,8 @@ private:
|
||||||
float m_myLatitude;
|
float m_myLatitude;
|
||||||
float m_myLongitude;
|
float m_myLongitude;
|
||||||
|
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
explicit DSDDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = NULL);
|
explicit DSDDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = NULL);
|
||||||
virtual ~DSDDemodGUI();
|
virtual ~DSDDemodGUI();
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
#ifndef INCLUDE_LoRaDEMODGUI_H
|
#ifndef INCLUDE_LoRaDEMODGUI_H
|
||||||
#define INCLUDE_LoRaDEMODGUI_H
|
#define INCLUDE_LoRaDEMODGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#define BANDWIDTHSTRING {7813,15625,20833,31250,62500}
|
#define BANDWIDTHSTRING {7813,15625,20833,31250,62500}
|
||||||
|
|
||||||
|
@ -33,7 +34,7 @@ public:
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
static const QString m_channelID;
|
static const QString m_channelID;
|
||||||
|
@ -57,6 +58,7 @@ private:
|
||||||
DownChannelizer* m_channelizer;
|
DownChannelizer* m_channelizer;
|
||||||
LoRaDemod* m_LoRaDemod;
|
LoRaDemod* m_LoRaDemod;
|
||||||
SpectrumVis* m_spectrumVis;
|
SpectrumVis* m_spectrumVis;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
explicit LoRaDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = NULL);
|
explicit LoRaDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = NULL);
|
||||||
virtual ~LoRaDemodGUI();
|
virtual ~LoRaDemodGUI();
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
#ifndef INCLUDE_NFMDEMODGUI_H
|
#ifndef INCLUDE_NFMDEMODGUI_H
|
||||||
#define INCLUDE_NFMDEMODGUI_H
|
#define INCLUDE_NFMDEMODGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/dsptypes.h"
|
#include "dsp/dsptypes.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
#include "dsp/movingaverage.h"
|
#include "dsp/movingaverage.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
class PluginAPI;
|
class PluginAPI;
|
||||||
class DeviceSourceAPI;
|
class DeviceSourceAPI;
|
||||||
|
@ -33,7 +34,7 @@ public:
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
void setCtcssFreq(Real ctcssFreq);
|
void setCtcssFreq(Real ctcssFreq);
|
||||||
|
|
||||||
|
@ -71,6 +72,7 @@ private:
|
||||||
bool m_audioMute;
|
bool m_audioMute;
|
||||||
bool m_squelchOpen;
|
bool m_squelchOpen;
|
||||||
uint32_t m_tickCount;
|
uint32_t m_tickCount;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
static const int m_rfBW[];
|
static const int m_rfBW[];
|
||||||
static const int m_fmDev[];
|
static const int m_fmDev[];
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
#ifndef INCLUDE_SSBDEMODGUI_H
|
#ifndef INCLUDE_SSBDEMODGUI_H
|
||||||
#define INCLUDE_SSBDEMODGUI_H
|
#define INCLUDE_SSBDEMODGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
#include "dsp/movingaverage.h"
|
#include "dsp/movingaverage.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
class PluginAPI;
|
class PluginAPI;
|
||||||
class DeviceSourceAPI;
|
class DeviceSourceAPI;
|
||||||
|
@ -34,7 +35,7 @@ public:
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
static const QString m_channelID;
|
static const QString m_channelID;
|
||||||
|
@ -79,6 +80,7 @@ private:
|
||||||
DownChannelizer* m_channelizer;
|
DownChannelizer* m_channelizer;
|
||||||
SSBDemod* m_ssbDemod;
|
SSBDemod* m_ssbDemod;
|
||||||
SpectrumVis* m_spectrumVis;
|
SpectrumVis* m_spectrumVis;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
explicit SSBDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI* deviceAPI, QWidget* parent = NULL);
|
explicit SSBDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI* deviceAPI, QWidget* parent = NULL);
|
||||||
virtual ~SSBDemodGUI();
|
virtual ~SSBDemodGUI();
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
#ifndef INCLUDE_WFMDEMODGUI_H
|
#ifndef INCLUDE_WFMDEMODGUI_H
|
||||||
#define INCLUDE_WFMDEMODGUI_H
|
#define INCLUDE_WFMDEMODGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
#include "dsp/movingaverage.h"
|
#include "dsp/movingaverage.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
class PluginAPI;
|
class PluginAPI;
|
||||||
class DeviceSourceAPI;
|
class DeviceSourceAPI;
|
||||||
|
@ -32,7 +33,7 @@ public:
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
static const QString m_channelID;
|
static const QString m_channelID;
|
||||||
|
@ -63,6 +64,7 @@ private:
|
||||||
DownChannelizer* m_channelizer;
|
DownChannelizer* m_channelizer;
|
||||||
WFMDemod* m_wfmDemod;
|
WFMDemod* m_wfmDemod;
|
||||||
MovingAverage<double> m_channelPowerDbAvg;
|
MovingAverage<double> m_channelPowerDbAvg;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
static const int m_rfBW[];
|
static const int m_rfBW[];
|
||||||
static const int m_nbRfBW;
|
static const int m_nbRfBW;
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
#ifndef INCLUDE_TCPSRCGUI_H
|
#ifndef INCLUDE_TCPSRCGUI_H
|
||||||
#define INCLUDE_TCPSRCGUI_H
|
#define INCLUDE_TCPSRCGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QHostAddress>
|
#include <QHostAddress>
|
||||||
|
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
#include "dsp/movingaverage.h"
|
#include "dsp/movingaverage.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "../../channelrx/tcpsrc/tcpsrc.h"
|
#include "tcpsrc.h"
|
||||||
|
|
||||||
class PluginAPI;
|
class PluginAPI;
|
||||||
class DeviceSourceAPI;
|
class DeviceSourceAPI;
|
||||||
|
@ -35,7 +37,7 @@ public:
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
static const QString m_channelID;
|
static const QString m_channelID;
|
||||||
|
@ -74,6 +76,7 @@ private:
|
||||||
ThreadedBasebandSampleSink* m_threadedChannelizer;
|
ThreadedBasebandSampleSink* m_threadedChannelizer;
|
||||||
DownChannelizer* m_channelizer;
|
DownChannelizer* m_channelizer;
|
||||||
SpectrumVis* m_spectrumVis;
|
SpectrumVis* m_spectrumVis;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
explicit TCPSrcGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = 0);
|
explicit TCPSrcGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = 0);
|
||||||
virtual ~TCPSrcGUI();
|
virtual ~TCPSrcGUI();
|
||||||
|
|
|
@ -18,11 +18,12 @@
|
||||||
#ifndef INCLUDE_UDPSRCGUI_H
|
#ifndef INCLUDE_UDPSRCGUI_H
|
||||||
#define INCLUDE_UDPSRCGUI_H
|
#define INCLUDE_UDPSRCGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QHostAddress>
|
#include <QHostAddress>
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
#include "dsp/movingaverage.h"
|
#include "dsp/movingaverage.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "udpsrc.h"
|
#include "udpsrc.h"
|
||||||
|
|
||||||
|
@ -52,7 +53,7 @@ public:
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
static const QString m_channelID;
|
static const QString m_channelID;
|
||||||
|
@ -99,6 +100,7 @@ private:
|
||||||
bool m_audioStereo;
|
bool m_audioStereo;
|
||||||
int m_volume;
|
int m_volume;
|
||||||
bool m_doApplySettings;
|
bool m_doApplySettings;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
// RF path
|
// RF path
|
||||||
ThreadedBasebandSampleSink* m_threadedChannelizer;
|
ThreadedBasebandSampleSink* m_threadedChannelizer;
|
||||||
|
|
|
@ -17,10 +17,12 @@
|
||||||
#ifndef PLUGINS_CHANNELTX_MODAM_AMMODGUI_H_
|
#ifndef PLUGINS_CHANNELTX_MODAM_AMMODGUI_H_
|
||||||
#define PLUGINS_CHANNELTX_MODAM_AMMODGUI_H_
|
#define PLUGINS_CHANNELTX_MODAM_AMMODGUI_H_
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
#include "dsp/movingaverage.h"
|
#include "dsp/movingaverage.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "ammod.h"
|
#include "ammod.h"
|
||||||
|
|
||||||
class PluginAPI;
|
class PluginAPI;
|
||||||
|
@ -49,7 +51,7 @@ public:
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
static const QString m_channelID;
|
static const QString m_channelID;
|
||||||
|
@ -99,6 +101,7 @@ private:
|
||||||
std::size_t m_tickCount;
|
std::size_t m_tickCount;
|
||||||
bool m_enableNavTime;
|
bool m_enableNavTime;
|
||||||
AMMod::AMModInputAF m_modAFInput;
|
AMMod::AMModInputAF m_modAFInput;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
explicit AMModGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* parent = NULL);
|
explicit AMModGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* parent = NULL);
|
||||||
virtual ~AMModGUI();
|
virtual ~AMModGUI();
|
||||||
|
|
|
@ -17,10 +17,12 @@
|
||||||
#ifndef PLUGINS_CHANNELTX_MODTV_ATVMODGUI_H_
|
#ifndef PLUGINS_CHANNELTX_MODTV_ATVMODGUI_H_
|
||||||
#define PLUGINS_CHANNELTX_MODTV_ATVMODGUI_H_
|
#define PLUGINS_CHANNELTX_MODTV_ATVMODGUI_H_
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
#include "dsp/movingaverage.h"
|
#include "dsp/movingaverage.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "atvmod.h"
|
#include "atvmod.h"
|
||||||
|
|
||||||
class PluginAPI;
|
class PluginAPI;
|
||||||
|
@ -50,7 +52,7 @@ public:
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
static const QString m_channelID;
|
static const QString m_channelID;
|
||||||
|
@ -118,6 +120,7 @@ private:
|
||||||
bool m_enableNavTime;
|
bool m_enableNavTime;
|
||||||
QMessageBox *m_camBusyFPSMessageBox;
|
QMessageBox *m_camBusyFPSMessageBox;
|
||||||
int m_rfSliderDivisor;
|
int m_rfSliderDivisor;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
explicit ATVModGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* parent = NULL);
|
explicit ATVModGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* parent = NULL);
|
||||||
virtual ~ATVModGUI();
|
virtual ~ATVModGUI();
|
||||||
|
|
|
@ -17,10 +17,11 @@
|
||||||
#ifndef PLUGINS_CHANNELTX_MODNFM_NFMMODGUI_H_
|
#ifndef PLUGINS_CHANNELTX_MODNFM_NFMMODGUI_H_
|
||||||
#define PLUGINS_CHANNELTX_MODNFM_NFMMODGUI_H_
|
#define PLUGINS_CHANNELTX_MODNFM_NFMMODGUI_H_
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
#include "dsp/movingaverage.h"
|
#include "dsp/movingaverage.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "nfmmod.h"
|
#include "nfmmod.h"
|
||||||
|
|
||||||
|
@ -50,7 +51,7 @@ public:
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
static const QString m_channelID;
|
static const QString m_channelID;
|
||||||
|
@ -104,6 +105,7 @@ private:
|
||||||
std::size_t m_tickCount;
|
std::size_t m_tickCount;
|
||||||
bool m_enableNavTime;
|
bool m_enableNavTime;
|
||||||
NFMMod::NFMModInputAF m_modAFInput;
|
NFMMod::NFMModInputAF m_modAFInput;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
static const int m_rfBW[];
|
static const int m_rfBW[];
|
||||||
static const int m_nbRfBW;
|
static const int m_nbRfBW;
|
||||||
|
|
|
@ -17,10 +17,12 @@
|
||||||
#ifndef PLUGINS_CHANNELTX_MODSSB_SSBMODGUI_H_
|
#ifndef PLUGINS_CHANNELTX_MODSSB_SSBMODGUI_H_
|
||||||
#define PLUGINS_CHANNELTX_MODSSB_SSBMODGUI_H_
|
#define PLUGINS_CHANNELTX_MODSSB_SSBMODGUI_H_
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
#include "dsp/movingaverage.h"
|
#include "dsp/movingaverage.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "ssbmod.h"
|
#include "ssbmod.h"
|
||||||
|
|
||||||
class PluginAPI;
|
class PluginAPI;
|
||||||
|
@ -50,7 +52,7 @@ public:
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
static const QString m_channelID;
|
static const QString m_channelID;
|
||||||
|
@ -113,6 +115,8 @@ private:
|
||||||
std::size_t m_tickCount;
|
std::size_t m_tickCount;
|
||||||
bool m_enableNavTime;
|
bool m_enableNavTime;
|
||||||
SSBMod::SSBModInputAF m_modAFInput;
|
SSBMod::SSBModInputAF m_modAFInput;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
static const int m_agcTimeConstant[]; //!< time constant index to value in ms
|
static const int m_agcTimeConstant[]; //!< time constant index to value in ms
|
||||||
|
|
||||||
explicit SSBModGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* parent = NULL);
|
explicit SSBModGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* parent = NULL);
|
||||||
|
|
|
@ -17,10 +17,11 @@
|
||||||
#ifndef PLUGINS_CHANNELTX_MODWFM_WFMMODGUI_H_
|
#ifndef PLUGINS_CHANNELTX_MODWFM_WFMMODGUI_H_
|
||||||
#define PLUGINS_CHANNELTX_MODWFM_WFMMODGUI_H_
|
#define PLUGINS_CHANNELTX_MODWFM_WFMMODGUI_H_
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
#include "dsp/movingaverage.h"
|
#include "dsp/movingaverage.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "wfmmod.h"
|
#include "wfmmod.h"
|
||||||
|
|
||||||
|
@ -50,7 +51,7 @@ public:
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
static const QString m_channelID;
|
static const QString m_channelID;
|
||||||
|
@ -101,6 +102,7 @@ private:
|
||||||
std::size_t m_tickCount;
|
std::size_t m_tickCount;
|
||||||
bool m_enableNavTime;
|
bool m_enableNavTime;
|
||||||
WFMMod::WFMModInputAF m_modAFInput;
|
WFMMod::WFMModInputAF m_modAFInput;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
static const int m_rfBW[];
|
static const int m_rfBW[];
|
||||||
static const int m_nbRfBW;
|
static const int m_nbRfBW;
|
||||||
|
|
|
@ -17,11 +17,12 @@
|
||||||
#ifndef PLUGINS_CHANNELTX_UDPSINK_UDPSINKGUI_H_
|
#ifndef PLUGINS_CHANNELTX_UDPSINK_UDPSINKGUI_H_
|
||||||
#define PLUGINS_CHANNELTX_UDPSINK_UDPSINKGUI_H_
|
#define PLUGINS_CHANNELTX_UDPSINK_UDPSINKGUI_H_
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
|
||||||
#include "gui/rollupwidget.h"
|
#include "gui/rollupwidget.h"
|
||||||
#include "dsp/channelmarker.h"
|
#include "dsp/channelmarker.h"
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "udpsink.h"
|
#include "udpsink.h"
|
||||||
|
|
||||||
|
@ -50,6 +51,7 @@ public:
|
||||||
virtual void resetToDefaults();
|
virtual void resetToDefaults();
|
||||||
virtual QByteArray serialize() const;
|
virtual QByteArray serialize() const;
|
||||||
virtual bool deserialize(const QByteArray& data);
|
virtual bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
static const QString m_channelID;
|
static const QString m_channelID;
|
||||||
|
@ -97,6 +99,7 @@ private:
|
||||||
Real m_rfBandwidth;
|
Real m_rfBandwidth;
|
||||||
int m_fmDeviation;
|
int m_fmDeviation;
|
||||||
bool m_doApplySettings;
|
bool m_doApplySettings;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
explicit UDPSinkGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* parent = NULL);
|
explicit UDPSinkGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* parent = NULL);
|
||||||
virtual ~UDPSinkGUI();
|
virtual ~UDPSinkGUI();
|
||||||
|
|
|
@ -17,10 +17,12 @@
|
||||||
#ifndef INCLUDE_BLADERFOUTPUTGUI_H
|
#ifndef INCLUDE_BLADERFOUTPUTGUI_H
|
||||||
#define INCLUDE_BLADERFOUTPUTGUI_H
|
#define INCLUDE_BLADERFOUTPUTGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "bladerfoutput.h"
|
#include "bladerfoutput.h"
|
||||||
|
|
||||||
class DeviceSinkAPI;
|
class DeviceSinkAPI;
|
||||||
|
@ -46,6 +48,7 @@ public:
|
||||||
virtual void setCenterFrequency(qint64 centerFrequency);
|
virtual void setCenterFrequency(qint64 centerFrequency);
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -59,6 +62,7 @@ private:
|
||||||
int m_sampleRate;
|
int m_sampleRate;
|
||||||
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
||||||
int m_lastEngineState;
|
int m_lastEngineState;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
void displaySettings();
|
void displaySettings();
|
||||||
void sendSettings();
|
void sendSettings();
|
||||||
|
|
|
@ -17,10 +17,12 @@
|
||||||
#ifndef INCLUDE_FILESINKGUI_H
|
#ifndef INCLUDE_FILESINKGUI_H
|
||||||
#define INCLUDE_FILESINKGUI_H
|
#define INCLUDE_FILESINKGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "filesinkoutput.h"
|
#include "filesinkoutput.h"
|
||||||
#include "filesinksettings.h"
|
#include "filesinksettings.h"
|
||||||
|
|
||||||
|
@ -48,6 +50,7 @@ public:
|
||||||
virtual void setCenterFrequency(qint64 centerFrequency);
|
virtual void setCenterFrequency(qint64 centerFrequency);
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -66,6 +69,7 @@ private:
|
||||||
int m_samplesCount;
|
int m_samplesCount;
|
||||||
std::size_t m_tickCount;
|
std::size_t m_tickCount;
|
||||||
int m_lastEngineState;
|
int m_lastEngineState;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
void displaySettings();
|
void displaySettings();
|
||||||
void displayTime();
|
void displayTime();
|
||||||
|
|
|
@ -17,10 +17,12 @@
|
||||||
#ifndef INCLUDE_HACKRFOUTPUTGUI_H
|
#ifndef INCLUDE_HACKRFOUTPUTGUI_H
|
||||||
#define INCLUDE_HACKRFOUTPUTGUI_H
|
#define INCLUDE_HACKRFOUTPUTGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "hackrfoutput.h"
|
#include "hackrfoutput.h"
|
||||||
|
|
||||||
#define HACKRF_MAX_DEVICE (32)
|
#define HACKRF_MAX_DEVICE (32)
|
||||||
|
@ -56,6 +58,7 @@ public:
|
||||||
virtual void setCenterFrequency(qint64 centerFrequency);
|
virtual void setCenterFrequency(qint64 centerFrequency);
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -69,6 +72,7 @@ private:
|
||||||
int m_sampleRate;
|
int m_sampleRate;
|
||||||
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
||||||
int m_lastEngineState;
|
int m_lastEngineState;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
void displaySettings();
|
void displaySettings();
|
||||||
void displayBandwidths();
|
void displayBandwidths();
|
||||||
|
|
|
@ -17,10 +17,12 @@
|
||||||
#ifndef PLUGINS_SAMPLESOURCE_LIMESDROUTPUT_LIMESDROUTPUTGUI_H_
|
#ifndef PLUGINS_SAMPLESOURCE_LIMESDROUTPUT_LIMESDROUTPUTGUI_H_
|
||||||
#define PLUGINS_SAMPLESOURCE_LIMESDROUTPUT_LIMESDROUTPUTGUI_H_
|
#define PLUGINS_SAMPLESOURCE_LIMESDROUTPUT_LIMESDROUTPUTGUI_H_
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "limesdroutput.h"
|
#include "limesdroutput.h"
|
||||||
|
|
||||||
class DeviceSinkAPI;
|
class DeviceSinkAPI;
|
||||||
|
@ -46,6 +48,7 @@ public:
|
||||||
virtual void setCenterFrequency(qint64 centerFrequency);
|
virtual void setCenterFrequency(qint64 centerFrequency);
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -63,6 +66,7 @@ private:
|
||||||
bool m_doApplySettings;
|
bool m_doApplySettings;
|
||||||
int m_statusCounter;
|
int m_statusCounter;
|
||||||
int m_deviceStatusCounter;
|
int m_deviceStatusCounter;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
void displaySettings();
|
void displaySettings();
|
||||||
void setNCODisplay();
|
void setNCODisplay();
|
||||||
|
|
|
@ -17,11 +17,13 @@
|
||||||
#ifndef INCLUDE_SDRDAEMONSINKGUI_H
|
#ifndef INCLUDE_SDRDAEMONSINKGUI_H
|
||||||
#define INCLUDE_SDRDAEMONSINKGUI_H
|
#define INCLUDE_SDRDAEMONSINKGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QTime>
|
#include <QTime>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "sdrdaemonsinksettings.h"
|
#include "sdrdaemonsinksettings.h"
|
||||||
#include "sdrdaemonsinkoutput.h"
|
#include "sdrdaemonsinkoutput.h"
|
||||||
|
|
||||||
|
@ -49,6 +51,7 @@ public:
|
||||||
virtual void setCenterFrequency(qint64 centerFrequency);
|
virtual void setCenterFrequency(qint64 centerFrequency);
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -79,6 +82,8 @@ private:
|
||||||
QPalette m_paletteRedText;
|
QPalette m_paletteRedText;
|
||||||
QPalette m_paletteWhiteText;
|
QPalette m_paletteWhiteText;
|
||||||
|
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
void blockApplySettings(bool block);
|
void blockApplySettings(bool block);
|
||||||
void displaySettings();
|
void displaySettings();
|
||||||
void displayTime();
|
void displayTime();
|
||||||
|
|
|
@ -17,10 +17,11 @@
|
||||||
#ifndef INCLUDE_AIRSPYGUI_H
|
#ifndef INCLUDE_AIRSPYGUI_H
|
||||||
#define INCLUDE_AIRSPYGUI_H
|
#define INCLUDE_AIRSPYGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
#include "airspyinput.h"
|
#include "airspyinput.h"
|
||||||
|
|
||||||
#define AIRSPY_MAX_DEVICE (32)
|
#define AIRSPY_MAX_DEVICE (32)
|
||||||
|
@ -48,6 +49,7 @@ public:
|
||||||
virtual void setCenterFrequency(qint64 centerFrequency);
|
virtual void setCenterFrequency(qint64 centerFrequency);
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue* getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
uint32_t getDevSampleRate(unsigned int index);
|
uint32_t getDevSampleRate(unsigned int index);
|
||||||
int getDevSampleRateIndex(uint32_t sampleRate);
|
int getDevSampleRateIndex(uint32_t sampleRate);
|
||||||
|
@ -64,6 +66,7 @@ private:
|
||||||
int m_sampleRate;
|
int m_sampleRate;
|
||||||
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
||||||
int m_lastEngineState;
|
int m_lastEngineState;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
void displaySettings();
|
void displaySettings();
|
||||||
void displaySampleRates();
|
void displaySampleRates();
|
||||||
|
|
|
@ -17,10 +17,12 @@
|
||||||
#ifndef INCLUDE_BLADERFINPUTGUI_H
|
#ifndef INCLUDE_BLADERFINPUTGUI_H
|
||||||
#define INCLUDE_BLADERFINPUTGUI_H
|
#define INCLUDE_BLADERFINPUTGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "bladerfinput.h"
|
#include "bladerfinput.h"
|
||||||
|
|
||||||
class DeviceSourceAPI;
|
class DeviceSourceAPI;
|
||||||
|
@ -45,6 +47,7 @@ public:
|
||||||
virtual void setCenterFrequency(qint64 centerFrequency);
|
virtual void setCenterFrequency(qint64 centerFrequency);
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -59,6 +62,7 @@ private:
|
||||||
int m_sampleRate;
|
int m_sampleRate;
|
||||||
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
||||||
int m_lastEngineState;
|
int m_lastEngineState;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
void displaySettings();
|
void displaySettings();
|
||||||
void sendSettings();
|
void sendSettings();
|
||||||
|
|
|
@ -17,10 +17,12 @@
|
||||||
#ifndef INCLUDE_FCDPROGUI_H
|
#ifndef INCLUDE_FCDPROGUI_H
|
||||||
#define INCLUDE_FCDPROGUI_H
|
#define INCLUDE_FCDPROGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "fcdproinput.h"
|
#include "fcdproinput.h"
|
||||||
|
|
||||||
class DeviceSourceAPI;
|
class DeviceSourceAPI;
|
||||||
|
@ -46,7 +48,7 @@ public:
|
||||||
virtual void setCenterFrequency(qint64 centerFrequency);
|
virtual void setCenterFrequency(qint64 centerFrequency);
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -61,6 +63,7 @@ private:
|
||||||
int m_sampleRate;
|
int m_sampleRate;
|
||||||
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
||||||
int m_lastEngineState;
|
int m_lastEngineState;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
void displaySettings();
|
void displaySettings();
|
||||||
void sendSettings();
|
void sendSettings();
|
||||||
|
|
|
@ -17,10 +17,12 @@
|
||||||
#ifndef INCLUDE_FCDGUI_H
|
#ifndef INCLUDE_FCDGUI_H
|
||||||
#define INCLUDE_FCDGUI_H
|
#define INCLUDE_FCDGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "fcdproplusinput.h"
|
#include "fcdproplusinput.h"
|
||||||
|
|
||||||
class DeviceSourceAPI;
|
class DeviceSourceAPI;
|
||||||
|
@ -45,7 +47,7 @@ public:
|
||||||
virtual void setCenterFrequency(qint64 centerFrequency);
|
virtual void setCenterFrequency(qint64 centerFrequency);
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -60,6 +62,7 @@ private:
|
||||||
int m_sampleRate;
|
int m_sampleRate;
|
||||||
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
||||||
int m_lastEngineState;
|
int m_lastEngineState;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
void displaySettings();
|
void displaySettings();
|
||||||
void sendSettings();
|
void sendSettings();
|
||||||
|
|
|
@ -17,10 +17,12 @@
|
||||||
#ifndef INCLUDE_FILESOURCEGUI_H
|
#ifndef INCLUDE_FILESOURCEGUI_H
|
||||||
#define INCLUDE_FILESOURCEGUI_H
|
#define INCLUDE_FILESOURCEGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "filesourceinput.h"
|
#include "filesourceinput.h"
|
||||||
|
|
||||||
class DeviceSourceAPI;
|
class DeviceSourceAPI;
|
||||||
|
@ -45,6 +47,7 @@ public:
|
||||||
virtual void setCenterFrequency(qint64 centerFrequency);
|
virtual void setCenterFrequency(qint64 centerFrequency);
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -67,6 +70,7 @@ private:
|
||||||
int m_deviceSampleRate;
|
int m_deviceSampleRate;
|
||||||
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
||||||
int m_lastEngineState;
|
int m_lastEngineState;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
void displaySettings();
|
void displaySettings();
|
||||||
void displayTime();
|
void displayTime();
|
||||||
|
|
|
@ -17,10 +17,12 @@
|
||||||
#ifndef INCLUDE_HACKRFINPUTGUI_H
|
#ifndef INCLUDE_HACKRFINPUTGUI_H
|
||||||
#define INCLUDE_HACKRFINPUTGUI_H
|
#define INCLUDE_HACKRFINPUTGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "hackrfinput.h"
|
#include "hackrfinput.h"
|
||||||
|
|
||||||
#define HACKRF_MAX_DEVICE (32)
|
#define HACKRF_MAX_DEVICE (32)
|
||||||
|
@ -55,6 +57,7 @@ public:
|
||||||
virtual void setCenterFrequency(qint64 centerFrequency);
|
virtual void setCenterFrequency(qint64 centerFrequency);
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -69,6 +72,7 @@ private:
|
||||||
int m_sampleRate;
|
int m_sampleRate;
|
||||||
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
||||||
int m_lastEngineState;
|
int m_lastEngineState;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
void displaySettings();
|
void displaySettings();
|
||||||
void displayBandwidths();
|
void displayBandwidths();
|
||||||
|
|
|
@ -17,10 +17,12 @@
|
||||||
#ifndef PLUGINS_SAMPLESOURCE_LIMESDRINPUT_LIMESDRINPUTGUI_H_
|
#ifndef PLUGINS_SAMPLESOURCE_LIMESDRINPUT_LIMESDRINPUTGUI_H_
|
||||||
#define PLUGINS_SAMPLESOURCE_LIMESDRINPUT_LIMESDRINPUTGUI_H_
|
#define PLUGINS_SAMPLESOURCE_LIMESDRINPUT_LIMESDRINPUTGUI_H_
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "limesdrinput.h"
|
#include "limesdrinput.h"
|
||||||
|
|
||||||
class DeviceSourceAPI;
|
class DeviceSourceAPI;
|
||||||
|
@ -45,6 +47,7 @@ public:
|
||||||
virtual void setCenterFrequency(qint64 centerFrequency);
|
virtual void setCenterFrequency(qint64 centerFrequency);
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -62,6 +65,7 @@ private:
|
||||||
bool m_doApplySettings;
|
bool m_doApplySettings;
|
||||||
int m_statusCounter;
|
int m_statusCounter;
|
||||||
int m_deviceStatusCounter;
|
int m_deviceStatusCounter;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
void displaySettings();
|
void displaySettings();
|
||||||
void setNCODisplay();
|
void setNCODisplay();
|
||||||
|
|
|
@ -21,7 +21,8 @@
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "plutosdrinputsettings.h"
|
#include "plutosdrinputsettings.h"
|
||||||
|
|
||||||
|
@ -47,6 +48,7 @@ public:
|
||||||
virtual void setCenterFrequency(qint64 centerFrequency);
|
virtual void setCenterFrequency(qint64 centerFrequency);
|
||||||
virtual QByteArray serialize() const;
|
virtual QByteArray serialize() const;
|
||||||
virtual bool deserialize(const QByteArray& data);
|
virtual bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -62,6 +64,7 @@ private:
|
||||||
int m_lastEngineState;
|
int m_lastEngineState;
|
||||||
bool m_doApplySettings;
|
bool m_doApplySettings;
|
||||||
uint32_t m_statusCounter;
|
uint32_t m_statusCounter;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
void displaySettings();
|
void displaySettings();
|
||||||
void sendSettings(bool forceSettings = false);
|
void sendSettings(bool forceSettings = false);
|
||||||
|
|
|
@ -17,10 +17,12 @@
|
||||||
#ifndef INCLUDE_RTLSDRGUI_H
|
#ifndef INCLUDE_RTLSDRGUI_H
|
||||||
#define INCLUDE_RTLSDRGUI_H
|
#define INCLUDE_RTLSDRGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "rtlsdrinput.h"
|
#include "rtlsdrinput.h"
|
||||||
|
|
||||||
class DeviceSourceAPI;
|
class DeviceSourceAPI;
|
||||||
|
@ -46,6 +48,7 @@ public:
|
||||||
virtual void setCenterFrequency(qint64 centerFrequency);
|
virtual void setCenterFrequency(qint64 centerFrequency);
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -60,6 +63,7 @@ private:
|
||||||
int m_sampleRate;
|
int m_sampleRate;
|
||||||
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
||||||
int m_lastEngineState;
|
int m_lastEngineState;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
void queryDeviceReport();
|
void queryDeviceReport();
|
||||||
void displayGains();
|
void displayGains();
|
||||||
|
|
|
@ -17,11 +17,13 @@
|
||||||
#ifndef INCLUDE_SDRDAEMONSOURCEGUI_H
|
#ifndef INCLUDE_SDRDAEMONSOURCEGUI_H
|
||||||
#define INCLUDE_SDRDAEMONSOURCEGUI_H
|
#define INCLUDE_SDRDAEMONSOURCEGUI_H
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "sdrdaemonsourceinput.h"
|
#include "sdrdaemonsourceinput.h"
|
||||||
|
|
||||||
class DeviceSourceAPI;
|
class DeviceSourceAPI;
|
||||||
|
@ -46,6 +48,7 @@ public:
|
||||||
bool deserialize(const QByteArray& data);
|
bool deserialize(const QByteArray& data);
|
||||||
virtual qint64 getCenterFrequency() const;
|
virtual qint64 getCenterFrequency() const;
|
||||||
virtual void setCenterFrequency(qint64 centerFrequency);
|
virtual void setCenterFrequency(qint64 centerFrequency);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -61,6 +64,7 @@ private:
|
||||||
int m_deviceSampleRate;
|
int m_deviceSampleRate;
|
||||||
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
||||||
int m_lastEngineState;
|
int m_lastEngineState;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
int m_sampleRate;
|
int m_sampleRate;
|
||||||
quint64 m_centerFrequency;
|
quint64 m_centerFrequency;
|
||||||
|
|
|
@ -17,11 +17,13 @@
|
||||||
#ifndef PLUGINS_SAMPLESOURCE_SDRPLAY_SDRPLAYGUI_H_
|
#ifndef PLUGINS_SAMPLESOURCE_SDRPLAY_SDRPLAYGUI_H_
|
||||||
#define PLUGINS_SAMPLESOURCE_SDRPLAY_SDRPLAYGUI_H_
|
#define PLUGINS_SAMPLESOURCE_SDRPLAY_SDRPLAYGUI_H_
|
||||||
|
|
||||||
#include <plugin/plugininstanceui.h>
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "plugin/plugininstanceui.h"
|
||||||
|
#include "util/messagequeue.h"
|
||||||
|
|
||||||
#include "sdrplayinput.h"
|
#include "sdrplayinput.h"
|
||||||
#include "sdrplaysettings.h"
|
#include "sdrplaysettings.h"
|
||||||
|
|
||||||
|
@ -48,6 +50,7 @@ public:
|
||||||
virtual void setCenterFrequency(qint64 centerFrequency);
|
virtual void setCenterFrequency(qint64 centerFrequency);
|
||||||
virtual QByteArray serialize() const;
|
virtual QByteArray serialize() const;
|
||||||
virtual bool deserialize(const QByteArray& data);
|
virtual bool deserialize(const QByteArray& data);
|
||||||
|
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||||
virtual bool handleMessage(const Message& message);
|
virtual bool handleMessage(const Message& message);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -61,6 +64,7 @@ private:
|
||||||
int m_sampleRate;
|
int m_sampleRate;
|
||||||
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
quint64 m_deviceCenterFrequency; //!< Center frequency in device
|
||||||
int m_lastEngineState;
|
int m_lastEngineState;
|
||||||
|
MessageQueue m_inputMessageQueue;
|
||||||
|
|
||||||
void displaySettings();
|
void displaySettings();
|
||||||
void sendSettings();
|
void sendSettings();
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include "util/export.h"
|
#include "util/export.h"
|
||||||
|
|
||||||
class Message;
|
class Message;
|
||||||
|
class MessageQueue;
|
||||||
|
|
||||||
class SDRANGEL_API PluginInstanceUI {
|
class SDRANGEL_API PluginInstanceUI {
|
||||||
public:
|
public:
|
||||||
|
@ -27,6 +28,8 @@ public:
|
||||||
virtual QByteArray serialize() const = 0;
|
virtual QByteArray serialize() const = 0;
|
||||||
virtual bool deserialize(const QByteArray& data) = 0;
|
virtual bool deserialize(const QByteArray& data) = 0;
|
||||||
|
|
||||||
|
virtual MessageQueue* getInputMessageQueue() = 0;
|
||||||
|
|
||||||
virtual bool handleMessage(const Message& message) = 0;
|
virtual bool handleMessage(const Message& message) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue