1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 09:48:45 -05:00

Implemented GUI input message queue and interface

This commit is contained in:
f4exb 2017-09-16 22:23:31 +02:00
parent 9dd99a4530
commit 2b4f8a0f55
35 changed files with 163 additions and 56 deletions

View File

@ -17,10 +17,11 @@
#ifndef INCLUDE_CHANNELANALYZERGUI_H
#define INCLUDE_CHANNELANALYZERGUI_H
#include <plugin/plugininstanceui.h>
#include "gui/rollupwidget.h"
#include "dsp/channelmarker.h"
#include "dsp/movingaverage.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
class PluginAPI;
class DeviceSourceAPI;
@ -51,7 +52,7 @@ public:
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
static const QString m_channelID;
@ -86,6 +87,7 @@ private:
SpectrumScopeComboVis* m_spectrumScopeComboVis;
SpectrumVis* m_spectrumVis;
ScopeVis* m_scopeVis;
MessageQueue m_inputMessageQueue;
explicit ChannelAnalyzerGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = NULL);
virtual ~ChannelAnalyzerGUI();

View File

@ -17,10 +17,11 @@
#ifndef INCLUDE_CHANNELANALYZERNGGUI_H
#define INCLUDE_CHANNELANALYZERNGGUI_H
#include <plugin/plugininstanceui.h>
#include "gui/rollupwidget.h"
#include "dsp/channelmarker.h"
#include "dsp/movingaverage.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
class PluginAPI;
class DeviceSourceAPI;
@ -51,7 +52,7 @@ public:
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
static const QString m_channelID;
@ -87,6 +88,7 @@ private:
SpectrumScopeNGComboVis* m_spectrumScopeComboVis;
SpectrumVis* m_spectrumVis;
ScopeVisNG* m_scopeVis;
MessageQueue m_inputMessageQueue;
explicit ChannelAnalyzerNGGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = NULL);
virtual ~ChannelAnalyzerNGGUI();

View File

@ -1,10 +1,11 @@
#ifndef INCLUDE_AMDEMODGUI_H
#define INCLUDE_AMDEMODGUI_H
#include <plugin/plugininstanceui.h>
#include "gui/rollupwidget.h"
#include "dsp/channelmarker.h"
#include "dsp/movingaverage.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
class PluginAPI;
class DeviceSourceAPI;
@ -32,7 +33,7 @@ public:
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
static const QString m_channelID;
@ -62,6 +63,7 @@ private:
AMDemod* m_amDemod;
bool m_squelchOpen;
uint32_t m_tickCount;
MessageQueue m_inputMessageQueue;
explicit AMDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = NULL);
virtual ~AMDemodGUI();

View File

@ -18,10 +18,11 @@
#ifndef INCLUDE_ATVDEMODGUI_H
#define INCLUDE_ATVDEMODGUI_H
#include <plugin/plugininstanceui.h>
#include "gui/rollupwidget.h"
#include "dsp/channelmarker.h"
#include "dsp/movingaverage.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
class PluginAPI;
class DeviceSourceAPI;
@ -52,7 +53,7 @@ public:
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& arrData);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& objMessage);
static const QString m_strChannelID;
@ -106,6 +107,7 @@ private:
float m_fltLineTimeMultiplier;
float m_fltTopTimeMultiplier;
int m_rfSliderDivisor;
MessageQueue m_inputMessageQueue;
explicit ATVDemodGUI(PluginAPI* objPluginAPI, DeviceSourceAPI *objDeviceAPI, QWidget* objParent = NULL);
virtual ~ATVDemodGUI();

View File

@ -18,10 +18,11 @@
#ifndef INCLUDE_BFMDEMODGUI_H
#define INCLUDE_BFMDEMODGUI_H
#include <plugin/plugininstanceui.h>
#include "gui/rollupwidget.h"
#include "dsp/channelmarker.h"
#include "dsp/movingaverage.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "rdsparser.h"
@ -52,7 +53,7 @@ public:
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
static const QString m_channelID;
@ -96,6 +97,7 @@ private:
MovingAverage<double> m_channelPowerDbAvg;
int m_rate;
std::vector<unsigned int> m_g14ComboIndex;
MessageQueue m_inputMessageQueue;
static const int m_rfBW[];

View File

@ -18,13 +18,14 @@
#ifndef INCLUDE_DSDDEMODGUI_H
#define INCLUDE_DSDDEMODGUI_H
#include <plugin/plugininstanceui.h>
#include <QMenu>
#include "gui/rollupwidget.h"
#include "dsp/dsptypes.h"
#include "dsp/channelmarker.h"
#include "dsp/movingaverage.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
class PluginAPI;
class DeviceSourceAPI;
@ -53,7 +54,7 @@ public:
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
static const QString m_channelID;
@ -116,6 +117,8 @@ private:
float m_myLatitude;
float m_myLongitude;
MessageQueue m_inputMessageQueue;
explicit DSDDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = NULL);
virtual ~DSDDemodGUI();

View File

@ -1,9 +1,10 @@
#ifndef INCLUDE_LoRaDEMODGUI_H
#define INCLUDE_LoRaDEMODGUI_H
#include <plugin/plugininstanceui.h>
#include "gui/rollupwidget.h"
#include "dsp/channelmarker.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#define BANDWIDTHSTRING {7813,15625,20833,31250,62500}
@ -33,7 +34,7 @@ public:
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
static const QString m_channelID;
@ -57,6 +58,7 @@ private:
DownChannelizer* m_channelizer;
LoRaDemod* m_LoRaDemod;
SpectrumVis* m_spectrumVis;
MessageQueue m_inputMessageQueue;
explicit LoRaDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = NULL);
virtual ~LoRaDemodGUI();

View File

@ -1,11 +1,12 @@
#ifndef INCLUDE_NFMDEMODGUI_H
#define INCLUDE_NFMDEMODGUI_H
#include <plugin/plugininstanceui.h>
#include "gui/rollupwidget.h"
#include "dsp/dsptypes.h"
#include "dsp/channelmarker.h"
#include "dsp/movingaverage.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
class PluginAPI;
class DeviceSourceAPI;
@ -33,7 +34,7 @@ public:
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
void setCtcssFreq(Real ctcssFreq);
@ -71,6 +72,7 @@ private:
bool m_audioMute;
bool m_squelchOpen;
uint32_t m_tickCount;
MessageQueue m_inputMessageQueue;
static const int m_rfBW[];
static const int m_fmDev[];

View File

@ -1,10 +1,11 @@
#ifndef INCLUDE_SSBDEMODGUI_H
#define INCLUDE_SSBDEMODGUI_H
#include <plugin/plugininstanceui.h>
#include "gui/rollupwidget.h"
#include "dsp/channelmarker.h"
#include "dsp/movingaverage.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
class PluginAPI;
class DeviceSourceAPI;
@ -34,7 +35,7 @@ public:
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
static const QString m_channelID;
@ -79,6 +80,7 @@ private:
DownChannelizer* m_channelizer;
SSBDemod* m_ssbDemod;
SpectrumVis* m_spectrumVis;
MessageQueue m_inputMessageQueue;
explicit SSBDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI* deviceAPI, QWidget* parent = NULL);
virtual ~SSBDemodGUI();

View File

@ -1,10 +1,11 @@
#ifndef INCLUDE_WFMDEMODGUI_H
#define INCLUDE_WFMDEMODGUI_H
#include <plugin/plugininstanceui.h>
#include "gui/rollupwidget.h"
#include "dsp/channelmarker.h"
#include "dsp/movingaverage.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
class PluginAPI;
class DeviceSourceAPI;
@ -32,7 +33,7 @@ public:
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
static const QString m_channelID;
@ -63,6 +64,7 @@ private:
DownChannelizer* m_channelizer;
WFMDemod* m_wfmDemod;
MovingAverage<double> m_channelPowerDbAvg;
MessageQueue m_inputMessageQueue;
static const int m_rfBW[];
static const int m_nbRfBW;

View File

@ -1,13 +1,15 @@
#ifndef INCLUDE_TCPSRCGUI_H
#define INCLUDE_TCPSRCGUI_H
#include <plugin/plugininstanceui.h>
#include <QHostAddress>
#include "gui/rollupwidget.h"
#include "dsp/channelmarker.h"
#include "dsp/movingaverage.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "../../channelrx/tcpsrc/tcpsrc.h"
#include "tcpsrc.h"
class PluginAPI;
class DeviceSourceAPI;
@ -35,7 +37,7 @@ public:
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
static const QString m_channelID;
@ -74,6 +76,7 @@ private:
ThreadedBasebandSampleSink* m_threadedChannelizer;
DownChannelizer* m_channelizer;
SpectrumVis* m_spectrumVis;
MessageQueue m_inputMessageQueue;
explicit TCPSrcGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = 0);
virtual ~TCPSrcGUI();

View File

@ -18,11 +18,12 @@
#ifndef INCLUDE_UDPSRCGUI_H
#define INCLUDE_UDPSRCGUI_H
#include <plugin/plugininstanceui.h>
#include <QHostAddress>
#include "gui/rollupwidget.h"
#include "dsp/channelmarker.h"
#include "dsp/movingaverage.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "udpsrc.h"
@ -52,7 +53,7 @@ public:
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
static const QString m_channelID;
@ -99,6 +100,7 @@ private:
bool m_audioStereo;
int m_volume;
bool m_doApplySettings;
MessageQueue m_inputMessageQueue;
// RF path
ThreadedBasebandSampleSink* m_threadedChannelizer;

View File

@ -17,10 +17,12 @@
#ifndef PLUGINS_CHANNELTX_MODAM_AMMODGUI_H_
#define PLUGINS_CHANNELTX_MODAM_AMMODGUI_H_
#include <plugin/plugininstanceui.h>
#include "gui/rollupwidget.h"
#include "dsp/channelmarker.h"
#include "dsp/movingaverage.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "ammod.h"
class PluginAPI;
@ -49,7 +51,7 @@ public:
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
static const QString m_channelID;
@ -99,6 +101,7 @@ private:
std::size_t m_tickCount;
bool m_enableNavTime;
AMMod::AMModInputAF m_modAFInput;
MessageQueue m_inputMessageQueue;
explicit AMModGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* parent = NULL);
virtual ~AMModGUI();

View File

@ -17,10 +17,12 @@
#ifndef PLUGINS_CHANNELTX_MODTV_ATVMODGUI_H_
#define PLUGINS_CHANNELTX_MODTV_ATVMODGUI_H_
#include <plugin/plugininstanceui.h>
#include "gui/rollupwidget.h"
#include "dsp/channelmarker.h"
#include "dsp/movingaverage.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "atvmod.h"
class PluginAPI;
@ -50,7 +52,7 @@ public:
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
static const QString m_channelID;
@ -118,6 +120,7 @@ private:
bool m_enableNavTime;
QMessageBox *m_camBusyFPSMessageBox;
int m_rfSliderDivisor;
MessageQueue m_inputMessageQueue;
explicit ATVModGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* parent = NULL);
virtual ~ATVModGUI();

View File

@ -17,10 +17,11 @@
#ifndef PLUGINS_CHANNELTX_MODNFM_NFMMODGUI_H_
#define PLUGINS_CHANNELTX_MODNFM_NFMMODGUI_H_
#include <plugin/plugininstanceui.h>
#include "gui/rollupwidget.h"
#include "dsp/channelmarker.h"
#include "dsp/movingaverage.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "nfmmod.h"
@ -50,7 +51,7 @@ public:
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
static const QString m_channelID;
@ -104,6 +105,7 @@ private:
std::size_t m_tickCount;
bool m_enableNavTime;
NFMMod::NFMModInputAF m_modAFInput;
MessageQueue m_inputMessageQueue;
static const int m_rfBW[];
static const int m_nbRfBW;

View File

@ -17,10 +17,12 @@
#ifndef PLUGINS_CHANNELTX_MODSSB_SSBMODGUI_H_
#define PLUGINS_CHANNELTX_MODSSB_SSBMODGUI_H_
#include <plugin/plugininstanceui.h>
#include "gui/rollupwidget.h"
#include "dsp/channelmarker.h"
#include "dsp/movingaverage.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "ssbmod.h"
class PluginAPI;
@ -50,7 +52,7 @@ public:
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
static const QString m_channelID;
@ -113,6 +115,8 @@ private:
std::size_t m_tickCount;
bool m_enableNavTime;
SSBMod::SSBModInputAF m_modAFInput;
MessageQueue m_inputMessageQueue;
static const int m_agcTimeConstant[]; //!< time constant index to value in ms
explicit SSBModGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* parent = NULL);

View File

@ -17,10 +17,11 @@
#ifndef PLUGINS_CHANNELTX_MODWFM_WFMMODGUI_H_
#define PLUGINS_CHANNELTX_MODWFM_WFMMODGUI_H_
#include <plugin/plugininstanceui.h>
#include "gui/rollupwidget.h"
#include "dsp/channelmarker.h"
#include "dsp/movingaverage.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "wfmmod.h"
@ -50,7 +51,7 @@ public:
void resetToDefaults();
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
static const QString m_channelID;
@ -101,6 +102,7 @@ private:
std::size_t m_tickCount;
bool m_enableNavTime;
WFMMod::WFMModInputAF m_modAFInput;
MessageQueue m_inputMessageQueue;
static const int m_rfBW[];
static const int m_nbRfBW;

View File

@ -17,11 +17,12 @@
#ifndef PLUGINS_CHANNELTX_UDPSINK_UDPSINKGUI_H_
#define PLUGINS_CHANNELTX_UDPSINK_UDPSINKGUI_H_
#include <plugin/plugininstanceui.h>
#include <QObject>
#include "gui/rollupwidget.h"
#include "dsp/channelmarker.h"
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "udpsink.h"
@ -50,6 +51,7 @@ public:
virtual void resetToDefaults();
virtual QByteArray serialize() const;
virtual bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
static const QString m_channelID;
@ -97,6 +99,7 @@ private:
Real m_rfBandwidth;
int m_fmDeviation;
bool m_doApplySettings;
MessageQueue m_inputMessageQueue;
explicit UDPSinkGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* parent = NULL);
virtual ~UDPSinkGUI();

View File

@ -17,10 +17,12 @@
#ifndef INCLUDE_BLADERFOUTPUTGUI_H
#define INCLUDE_BLADERFOUTPUTGUI_H
#include <plugin/plugininstanceui.h>
#include <QTimer>
#include <QWidget>
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "bladerfoutput.h"
class DeviceSinkAPI;
@ -46,6 +48,7 @@ public:
virtual void setCenterFrequency(qint64 centerFrequency);
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
private:
@ -59,6 +62,7 @@ private:
int m_sampleRate;
quint64 m_deviceCenterFrequency; //!< Center frequency in device
int m_lastEngineState;
MessageQueue m_inputMessageQueue;
void displaySettings();
void sendSettings();

View File

@ -17,10 +17,12 @@
#ifndef INCLUDE_FILESINKGUI_H
#define INCLUDE_FILESINKGUI_H
#include <plugin/plugininstanceui.h>
#include <QTimer>
#include <QWidget>
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "filesinkoutput.h"
#include "filesinksettings.h"
@ -48,6 +50,7 @@ public:
virtual void setCenterFrequency(qint64 centerFrequency);
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
private:
@ -66,6 +69,7 @@ private:
int m_samplesCount;
std::size_t m_tickCount;
int m_lastEngineState;
MessageQueue m_inputMessageQueue;
void displaySettings();
void displayTime();

View File

@ -17,10 +17,12 @@
#ifndef INCLUDE_HACKRFOUTPUTGUI_H
#define INCLUDE_HACKRFOUTPUTGUI_H
#include <plugin/plugininstanceui.h>
#include <QTimer>
#include <QWidget>
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "hackrfoutput.h"
#define HACKRF_MAX_DEVICE (32)
@ -56,6 +58,7 @@ public:
virtual void setCenterFrequency(qint64 centerFrequency);
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
private:
@ -69,6 +72,7 @@ private:
int m_sampleRate;
quint64 m_deviceCenterFrequency; //!< Center frequency in device
int m_lastEngineState;
MessageQueue m_inputMessageQueue;
void displaySettings();
void displayBandwidths();

View File

@ -17,10 +17,12 @@
#ifndef PLUGINS_SAMPLESOURCE_LIMESDROUTPUT_LIMESDROUTPUTGUI_H_
#define PLUGINS_SAMPLESOURCE_LIMESDROUTPUT_LIMESDROUTPUTGUI_H_
#include <plugin/plugininstanceui.h>
#include <QTimer>
#include <QWidget>
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "limesdroutput.h"
class DeviceSinkAPI;
@ -46,6 +48,7 @@ public:
virtual void setCenterFrequency(qint64 centerFrequency);
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
private:
@ -63,6 +66,7 @@ private:
bool m_doApplySettings;
int m_statusCounter;
int m_deviceStatusCounter;
MessageQueue m_inputMessageQueue;
void displaySettings();
void setNCODisplay();

View File

@ -17,11 +17,13 @@
#ifndef INCLUDE_SDRDAEMONSINKGUI_H
#define INCLUDE_SDRDAEMONSINKGUI_H
#include <plugin/plugininstanceui.h>
#include <QTimer>
#include <QTime>
#include <QWidget>
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "sdrdaemonsinksettings.h"
#include "sdrdaemonsinkoutput.h"
@ -49,6 +51,7 @@ public:
virtual void setCenterFrequency(qint64 centerFrequency);
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
private:
@ -79,6 +82,8 @@ private:
QPalette m_paletteRedText;
QPalette m_paletteWhiteText;
MessageQueue m_inputMessageQueue;
void blockApplySettings(bool block);
void displaySettings();
void displayTime();

View File

@ -17,10 +17,11 @@
#ifndef INCLUDE_AIRSPYGUI_H
#define INCLUDE_AIRSPYGUI_H
#include <plugin/plugininstanceui.h>
#include <QTimer>
#include <QWidget>
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "airspyinput.h"
#define AIRSPY_MAX_DEVICE (32)
@ -48,6 +49,7 @@ public:
virtual void setCenterFrequency(qint64 centerFrequency);
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue* getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
uint32_t getDevSampleRate(unsigned int index);
int getDevSampleRateIndex(uint32_t sampleRate);
@ -64,6 +66,7 @@ private:
int m_sampleRate;
quint64 m_deviceCenterFrequency; //!< Center frequency in device
int m_lastEngineState;
MessageQueue m_inputMessageQueue;
void displaySettings();
void displaySampleRates();

View File

@ -17,10 +17,12 @@
#ifndef INCLUDE_BLADERFINPUTGUI_H
#define INCLUDE_BLADERFINPUTGUI_H
#include <plugin/plugininstanceui.h>
#include <QTimer>
#include <QWidget>
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "bladerfinput.h"
class DeviceSourceAPI;
@ -45,6 +47,7 @@ public:
virtual void setCenterFrequency(qint64 centerFrequency);
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
private:
@ -59,6 +62,7 @@ private:
int m_sampleRate;
quint64 m_deviceCenterFrequency; //!< Center frequency in device
int m_lastEngineState;
MessageQueue m_inputMessageQueue;
void displaySettings();
void sendSettings();

View File

@ -17,10 +17,12 @@
#ifndef INCLUDE_FCDPROGUI_H
#define INCLUDE_FCDPROGUI_H
#include <plugin/plugininstanceui.h>
#include <QTimer>
#include <QWidget>
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "fcdproinput.h"
class DeviceSourceAPI;
@ -46,7 +48,7 @@ public:
virtual void setCenterFrequency(qint64 centerFrequency);
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
private:
@ -61,6 +63,7 @@ private:
int m_sampleRate;
quint64 m_deviceCenterFrequency; //!< Center frequency in device
int m_lastEngineState;
MessageQueue m_inputMessageQueue;
void displaySettings();
void sendSettings();

View File

@ -17,10 +17,12 @@
#ifndef INCLUDE_FCDGUI_H
#define INCLUDE_FCDGUI_H
#include <plugin/plugininstanceui.h>
#include <QTimer>
#include <QWidget>
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "fcdproplusinput.h"
class DeviceSourceAPI;
@ -45,7 +47,7 @@ public:
virtual void setCenterFrequency(qint64 centerFrequency);
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
private:
@ -60,6 +62,7 @@ private:
int m_sampleRate;
quint64 m_deviceCenterFrequency; //!< Center frequency in device
int m_lastEngineState;
MessageQueue m_inputMessageQueue;
void displaySettings();
void sendSettings();

View File

@ -17,10 +17,12 @@
#ifndef INCLUDE_FILESOURCEGUI_H
#define INCLUDE_FILESOURCEGUI_H
#include <plugin/plugininstanceui.h>
#include <QTimer>
#include <QWidget>
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "filesourceinput.h"
class DeviceSourceAPI;
@ -45,6 +47,7 @@ public:
virtual void setCenterFrequency(qint64 centerFrequency);
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
private:
@ -67,6 +70,7 @@ private:
int m_deviceSampleRate;
quint64 m_deviceCenterFrequency; //!< Center frequency in device
int m_lastEngineState;
MessageQueue m_inputMessageQueue;
void displaySettings();
void displayTime();

View File

@ -17,10 +17,12 @@
#ifndef INCLUDE_HACKRFINPUTGUI_H
#define INCLUDE_HACKRFINPUTGUI_H
#include <plugin/plugininstanceui.h>
#include <QTimer>
#include <QWidget>
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "hackrfinput.h"
#define HACKRF_MAX_DEVICE (32)
@ -55,6 +57,7 @@ public:
virtual void setCenterFrequency(qint64 centerFrequency);
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
private:
@ -69,6 +72,7 @@ private:
int m_sampleRate;
quint64 m_deviceCenterFrequency; //!< Center frequency in device
int m_lastEngineState;
MessageQueue m_inputMessageQueue;
void displaySettings();
void displayBandwidths();

View File

@ -17,10 +17,12 @@
#ifndef PLUGINS_SAMPLESOURCE_LIMESDRINPUT_LIMESDRINPUTGUI_H_
#define PLUGINS_SAMPLESOURCE_LIMESDRINPUT_LIMESDRINPUTGUI_H_
#include <plugin/plugininstanceui.h>
#include <QTimer>
#include <QWidget>
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "limesdrinput.h"
class DeviceSourceAPI;
@ -45,6 +47,7 @@ public:
virtual void setCenterFrequency(qint64 centerFrequency);
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
private:
@ -62,6 +65,7 @@ private:
bool m_doApplySettings;
int m_statusCounter;
int m_deviceStatusCounter;
MessageQueue m_inputMessageQueue;
void displaySettings();
void setNCODisplay();

View File

@ -21,7 +21,8 @@
#include <QWidget>
#include <QTimer>
#include <plugin/plugininstanceui.h>
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "plutosdrinputsettings.h"
@ -47,6 +48,7 @@ public:
virtual void setCenterFrequency(qint64 centerFrequency);
virtual QByteArray serialize() const;
virtual bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
private:
@ -62,6 +64,7 @@ private:
int m_lastEngineState;
bool m_doApplySettings;
uint32_t m_statusCounter;
MessageQueue m_inputMessageQueue;
void displaySettings();
void sendSettings(bool forceSettings = false);

View File

@ -17,10 +17,12 @@
#ifndef INCLUDE_RTLSDRGUI_H
#define INCLUDE_RTLSDRGUI_H
#include <plugin/plugininstanceui.h>
#include <QTimer>
#include <QWidget>
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "rtlsdrinput.h"
class DeviceSourceAPI;
@ -46,6 +48,7 @@ public:
virtual void setCenterFrequency(qint64 centerFrequency);
QByteArray serialize() const;
bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
private:
@ -60,6 +63,7 @@ private:
int m_sampleRate;
quint64 m_deviceCenterFrequency; //!< Center frequency in device
int m_lastEngineState;
MessageQueue m_inputMessageQueue;
void queryDeviceReport();
void displayGains();

View File

@ -17,11 +17,13 @@
#ifndef INCLUDE_SDRDAEMONSOURCEGUI_H
#define INCLUDE_SDRDAEMONSOURCEGUI_H
#include <plugin/plugininstanceui.h>
#include <QTimer>
#include <QWidget>
#include <sys/time.h>
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "sdrdaemonsourceinput.h"
class DeviceSourceAPI;
@ -46,6 +48,7 @@ public:
bool deserialize(const QByteArray& data);
virtual qint64 getCenterFrequency() const;
virtual void setCenterFrequency(qint64 centerFrequency);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
private:
@ -61,6 +64,7 @@ private:
int m_deviceSampleRate;
quint64 m_deviceCenterFrequency; //!< Center frequency in device
int m_lastEngineState;
MessageQueue m_inputMessageQueue;
int m_sampleRate;
quint64 m_centerFrequency;

View File

@ -17,11 +17,13 @@
#ifndef PLUGINS_SAMPLESOURCE_SDRPLAY_SDRPLAYGUI_H_
#define PLUGINS_SAMPLESOURCE_SDRPLAY_SDRPLAYGUI_H_
#include <plugin/plugininstanceui.h>
#include <QTimer>
#include <QWidget>
#include <vector>
#include "plugin/plugininstanceui.h"
#include "util/messagequeue.h"
#include "sdrplayinput.h"
#include "sdrplaysettings.h"
@ -48,6 +50,7 @@ public:
virtual void setCenterFrequency(qint64 centerFrequency);
virtual QByteArray serialize() const;
virtual bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message);
private:
@ -61,6 +64,7 @@ private:
int m_sampleRate;
quint64 m_deviceCenterFrequency; //!< Center frequency in device
int m_lastEngineState;
MessageQueue m_inputMessageQueue;
void displaySettings();
void sendSettings();

View File

@ -8,6 +8,7 @@
#include "util/export.h"
class Message;
class MessageQueue;
class SDRANGEL_API PluginInstanceUI {
public:
@ -27,6 +28,8 @@ public:
virtual QByteArray serialize() const = 0;
virtual bool deserialize(const QByteArray& data) = 0;
virtual MessageQueue* getInputMessageQueue() = 0;
virtual bool handleMessage(const Message& message) = 0;
};