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.
|
#include <remoteoutputgui.h>
Public Member Functions | |
RemoteOutputSinkGui (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~RemoteOutputSinkGui () |
virtual void | destroy () |
void | setName (const QString &name) |
QString | getName () const |
void | resetToDefaults () |
virtual qint64 | getCenterFrequency () const |
virtual void | setCenterFrequency (qint64 centerFrequency) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
virtual MessageQueue * | getInputMessageQueue () |
virtual bool | handleMessage (const Message &message) |
Public Member Functions inherited from PluginInstanceGUI | |
PluginInstanceGUI () | |
virtual | ~PluginInstanceGUI () |
Private Slots | |
void | handleInputMessages () |
void | on_sampleRate_changed (quint64 value) |
void | on_txDelay_valueChanged (int value) |
void | on_nbFECBlocks_valueChanged (int value) |
void | on_deviceIndex_returnPressed () |
void | on_channelIndex_returnPressed () |
void | on_apiAddress_returnPressed () |
void | on_apiPort_returnPressed () |
void | on_dataAddress_returnPressed () |
void | on_dataPort_returnPressed () |
void | on_apiApplyButton_clicked (bool checked) |
void | on_dataApplyButton_clicked (bool checked) |
void | on_startStop_toggled (bool checked) |
void | on_eventCountsReset_clicked (bool checked) |
void | updateHardware () |
void | updateStatus () |
void | tick () |
void | networkManagerFinished (QNetworkReply *reply) |
void | openDeviceSettingsDialog (const QPoint &p) |
Private Member Functions | |
void | blockApplySettings (bool block) |
void | displaySettings () |
void | displayTime () |
void | sendControl (bool force=false) |
void | sendSettings () |
void | updateSampleRate () |
void | updateTxDelayTooltip () |
void | displayEventCounts () |
void | displayEventStatus (int recoverableCount, int unrecoverableCount) |
void | displayEventTimer () |
void | analyzeApiReply (const QJsonObject &jsonObject) |
Private Attributes | |
Ui::RemoteOutputGui * | ui |
DeviceUISet * | m_deviceUISet |
RemoteOutputSettings | m_settings |
current settings More... | |
RemoteOutputSettings | m_controlSettings |
settings last sent to device via control port More... | |
QTimer | m_updateTimer |
QTimer | m_statusTimer |
DeviceSampleSink * | m_deviceSampleSink |
int | m_sampleRate |
quint64 | m_deviceCenterFrequency |
Center frequency in device. More... | |
int | m_samplesCount |
uint32_t | m_tickCount |
std::size_t | m_nbSinceLastFlowCheck |
int | m_lastEngineState |
bool | m_doApplySettings |
bool | m_forceSettings |
uint32_t | m_countUnrecoverable |
uint32_t | m_countRecovered |
uint32_t | m_lastCountUnrecoverable |
uint32_t | m_lastCountRecovered |
uint32_t | m_lastSampleCount |
uint64_t | m_lastTimestampUs |
bool | m_resetCounts |
QTime | m_time |
QPalette | m_paletteGreenText |
QPalette | m_paletteRedText |
QPalette | m_paletteWhiteText |
MessageQueue | m_inputMessageQueue |
QNetworkAccessManager * | m_networkManager |
QNetworkRequest | m_networkRequest |
Definition at line 72 of file remoteoutputgui.h.
|
explicit |
Definition at line 49 of file remoteoutputgui.cpp.
References displayEventCounts(), displayEventTimer(), displaySettings(), DeviceAPI::getMasterTimer(), DeviceAPI::getSampleSink(), DeviceUISet::getSpectrum(), ColorMapper::GrayGold, ColorMapper::GrayGreenYellow, handleInputMessages(), m_countRecovered, m_countUnrecoverable, DeviceUISet::m_deviceAPI, m_deviceCenterFrequency, m_deviceSampleSink, m_deviceUISet, m_inputMessageQueue, m_lastCountRecovered, m_lastCountUnrecoverable, m_lastSampleCount, m_networkManager, m_paletteGreenText, m_paletteRedText, m_paletteWhiteText, m_resetCounts, m_statusTimer, m_time, m_updateTimer, networkManagerFinished(), openDeviceSettingsDialog(), sendSettings(), GLSpectrum::setCenterFrequency(), tick(), ui, updateHardware(), and updateStatus().
|
virtual |
Definition at line 109 of file remoteoutputgui.cpp.
References m_networkManager, networkManagerFinished(), and ui.
|
private |
Definition at line 550 of file remoteoutputgui.cpp.
References arg(), displayEventCounts(), displayEventStatus(), DeviceUISet::getSpectrum(), m_countRecovered, m_countUnrecoverable, m_deviceCenterFrequency, m_deviceUISet, m_lastCountRecovered, m_lastCountUnrecoverable, m_lastSampleCount, m_lastTimestampUs, m_resetCounts, GLSpectrum::setCenterFrequency(), and ui.
Referenced by networkManagerFinished().
|
private |
Definition at line 116 of file remoteoutputgui.cpp.
References m_doApplySettings.
Referenced by deserialize(), displaySettings(), handleMessage(), and resetToDefaults().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 150 of file remoteoutputgui.cpp.
References blockApplySettings(), RemoteOutputSettings::deserialize(), displaySettings(), m_forceSettings, m_settings, and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 121 of file remoteoutputgui.cpp.
|
private |
Definition at line 456 of file remoteoutputgui.cpp.
References m_countRecovered, m_countUnrecoverable, and ui.
Referenced by analyzeApiReply(), on_eventCountsReset_clicked(), and RemoteOutputSinkGui().
|
private |
Definition at line 464 of file remoteoutputgui.cpp.
References ui.
Referenced by analyzeApiReply().
|
private |
Definition at line 481 of file remoteoutputgui.cpp.
Referenced by on_eventCountsReset_clicked(), RemoteOutputSinkGui(), and tick().
|
private |
Definition at line 231 of file remoteoutputgui.cpp.
References arg(), blockApplySettings(), RemoteOutputSettings::m_apiAddress, RemoteOutputSettings::m_apiPort, RemoteOutputSettings::m_channelIndex, RemoteOutputSettings::m_dataAddress, RemoteOutputSettings::m_dataPort, m_deviceCenterFrequency, RemoteOutputSettings::m_deviceIndex, RemoteOutputSettings::m_nbFECBlocks, RemoteOutputSettings::m_sampleRate, m_settings, RemoteOutputSettings::m_txDelay, and ui.
Referenced by deserialize(), handleMessage(), RemoteOutputSinkGui(), and resetToDefaults().
|
private |
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 84 of file remoteoutputgui.h.
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 88 of file remoteoutputgui.h.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 131 of file remoteoutputgui.cpp.
|
privateslot |
Definition at line 194 of file remoteoutputgui.cpp.
References DSPSignalNotification::getCenterFrequency(), DSPSignalNotification::getSampleRate(), handleMessage(), m_inputMessageQueue, m_sampleRate, Message::match(), MessageQueue::pop(), and updateSampleRate().
Referenced by RemoteOutputSinkGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 169 of file remoteoutputgui.cpp.
References blockApplySettings(), displaySettings(), RemoteOutput::MsgConfigureRemoteOutput::getSettings(), RemoteOutput::MsgStartStop::getStartStop(), m_settings, Message::match(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 510 of file remoteoutputgui.cpp.
References analyzeApiReply(), and ui.
Referenced by RemoteOutputSinkGui(), and ~RemoteOutputSinkGui().
|
privateslot |
Definition at line 353 of file remoteoutputgui.cpp.
References RemoteOutputSettings::m_apiAddress, RemoteOutputSettings::m_apiPort, m_networkManager, m_networkRequest, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 401 of file remoteoutputgui.cpp.
References RemoteOutputSettings::m_apiAddress, RemoteOutputSettings::m_apiPort, m_networkManager, m_networkRequest, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 363 of file remoteoutputgui.cpp.
References RemoteOutputSettings::m_apiAddress, RemoteOutputSettings::m_apiPort, m_networkManager, m_networkRequest, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 339 of file remoteoutputgui.cpp.
References RemoteOutputSettings::m_channelIndex, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 381 of file remoteoutputgui.cpp.
References RemoteOutputSettings::m_dataAddress, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 421 of file remoteoutputgui.cpp.
References RemoteOutputSettings::m_dataAddress, RemoteOutputSettings::m_dataPort, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 387 of file remoteoutputgui.cpp.
References RemoteOutputSettings::m_dataPort, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 325 of file remoteoutputgui.cpp.
References RemoteOutputSettings::m_deviceIndex, m_settings, sendSettings(), and ui.
|
privateslot |
Definition at line 446 of file remoteoutputgui.cpp.
References displayEventCounts(), displayEventTimer(), m_countRecovered, m_countUnrecoverable, and m_time.
|
privateslot |
Definition at line 313 of file remoteoutputgui.cpp.
References arg(), RemoteOutputSettings::m_nbFECBlocks, m_settings, sendSettings(), ui, and updateTxDelayTooltip().
|
privateslot |
Definition at line 298 of file remoteoutputgui.cpp.
References RemoteOutputSettings::m_sampleRate, m_settings, sendSettings(), and updateTxDelayTooltip().
|
privateslot |
Definition at line 437 of file remoteoutputgui.cpp.
References RemoteOutput::MsgStartStop::create(), DeviceSampleSink::getInputMessageQueue(), m_deviceSampleSink, m_doApplySettings, and MessageQueue::push().
|
privateslot |
Definition at line 305 of file remoteoutputgui.cpp.
References arg(), m_settings, RemoteOutputSettings::m_txDelay, sendSettings(), ui, and updateTxDelayTooltip().
|
privateslot |
Definition at line 635 of file remoteoutputgui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), RemoteOutputSettings::m_reverseAPIAddress, RemoteOutputSettings::m_reverseAPIDeviceIndex, RemoteOutputSettings::m_reverseAPIPort, m_settings, RemoteOutputSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by RemoteOutputSinkGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 136 of file remoteoutputgui.cpp.
References blockApplySettings(), displaySettings(), m_settings, RemoteOutputSettings::resetToDefaults(), and sendSettings().
|
private |
|
private |
Definition at line 253 of file remoteoutputgui.cpp.
References m_updateTimer.
Referenced by deserialize(), on_apiAddress_returnPressed(), on_apiApplyButton_clicked(), on_apiPort_returnPressed(), on_channelIndex_returnPressed(), on_dataAddress_returnPressed(), on_dataApplyButton_clicked(), on_dataPort_returnPressed(), on_deviceIndex_returnPressed(), on_nbFECBlocks_valueChanged(), on_sampleRate_changed(), on_txDelay_valueChanged(), openDeviceSettingsDialog(), RemoteOutputSinkGui(), and resetToDefaults().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 145 of file remoteoutputgui.cpp.
References m_settings, and RemoteOutputSettings::serialize().
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 85 of file remoteoutputgui.h.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 126 of file remoteoutputgui.cpp.
|
privateslot |
Definition at line 490 of file remoteoutputgui.cpp.
References displayEventTimer(), RemoteOutputSettings::m_apiAddress, RemoteOutputSettings::m_apiPort, RemoteOutputSettings::m_channelIndex, RemoteOutputSettings::m_deviceIndex, m_networkManager, m_networkRequest, m_settings, and m_tickCount.
Referenced by RemoteOutputSinkGui().
|
privateslot |
Definition at line 260 of file remoteoutputgui.cpp.
References RemoteOutput::MsgConfigureRemoteOutput::create(), DeviceSampleSink::getInputMessageQueue(), m_deviceSampleSink, m_forceSettings, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by RemoteOutputSinkGui().
|
private |
Definition at line 218 of file remoteoutputgui.cpp.
References arg(), DeviceUISet::getSpectrum(), m_deviceUISet, m_sampleRate, GLSpectrum::setSampleRate(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 269 of file remoteoutputgui.cpp.
References DeviceAPI::errorMessage(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_lastEngineState, DeviceAPI::state(), DeviceAPI::StError, DeviceAPI::StIdle, DeviceAPI::StNotStarted, DeviceAPI::StRunning, and ui.
Referenced by RemoteOutputSinkGui().
|
private |
Definition at line 224 of file remoteoutputgui.cpp.
Referenced by on_nbFECBlocks_valueChanged(), on_sampleRate_changed(), and on_txDelay_valueChanged().
|
private |
settings last sent to device via control port
Definition at line 96 of file remoteoutputgui.h.
|
private |
Definition at line 110 of file remoteoutputgui.h.
Referenced by analyzeApiReply(), displayEventCounts(), on_eventCountsReset_clicked(), and RemoteOutputSinkGui().
|
private |
Definition at line 109 of file remoteoutputgui.h.
Referenced by analyzeApiReply(), displayEventCounts(), on_eventCountsReset_clicked(), and RemoteOutputSinkGui().
|
private |
Center frequency in device.
Definition at line 101 of file remoteoutputgui.h.
Referenced by analyzeApiReply(), displaySettings(), and RemoteOutputSinkGui().
|
private |
Definition at line 99 of file remoteoutputgui.h.
Referenced by on_startStop_toggled(), RemoteOutputSinkGui(), and updateHardware().
|
private |
Definition at line 94 of file remoteoutputgui.h.
Referenced by analyzeApiReply(), RemoteOutputSinkGui(), updateSampleRate(), and updateStatus().
|
private |
Definition at line 106 of file remoteoutputgui.h.
Referenced by blockApplySettings(), and on_startStop_toggled().
|
private |
Definition at line 107 of file remoteoutputgui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 122 of file remoteoutputgui.h.
Referenced by handleInputMessages(), and RemoteOutputSinkGui().
|
private |
Definition at line 112 of file remoteoutputgui.h.
Referenced by analyzeApiReply(), and RemoteOutputSinkGui().
|
private |
Definition at line 111 of file remoteoutputgui.h.
Referenced by analyzeApiReply(), and RemoteOutputSinkGui().
|
private |
Definition at line 105 of file remoteoutputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 113 of file remoteoutputgui.h.
Referenced by analyzeApiReply(), and RemoteOutputSinkGui().
|
private |
Definition at line 114 of file remoteoutputgui.h.
Referenced by analyzeApiReply().
|
private |
Definition at line 104 of file remoteoutputgui.h.
|
private |
Definition at line 124 of file remoteoutputgui.h.
Referenced by on_apiAddress_returnPressed(), on_apiApplyButton_clicked(), on_apiPort_returnPressed(), RemoteOutputSinkGui(), tick(), and ~RemoteOutputSinkGui().
|
private |
Definition at line 125 of file remoteoutputgui.h.
Referenced by on_apiAddress_returnPressed(), on_apiApplyButton_clicked(), on_apiPort_returnPressed(), and tick().
|
private |
Definition at line 118 of file remoteoutputgui.h.
Referenced by RemoteOutputSinkGui().
|
private |
Definition at line 119 of file remoteoutputgui.h.
Referenced by RemoteOutputSinkGui().
|
private |
Definition at line 120 of file remoteoutputgui.h.
Referenced by RemoteOutputSinkGui().
|
private |
Definition at line 115 of file remoteoutputgui.h.
Referenced by analyzeApiReply(), and RemoteOutputSinkGui().
|
private |
Definition at line 100 of file remoteoutputgui.h.
Referenced by handleInputMessages(), and updateSampleRate().
|
private |
Definition at line 102 of file remoteoutputgui.h.
|
private |
current settings
Definition at line 95 of file remoteoutputgui.h.
Referenced by deserialize(), displaySettings(), handleMessage(), on_apiAddress_returnPressed(), on_apiApplyButton_clicked(), on_apiPort_returnPressed(), on_channelIndex_returnPressed(), on_dataAddress_returnPressed(), on_dataApplyButton_clicked(), on_dataPort_returnPressed(), on_deviceIndex_returnPressed(), on_nbFECBlocks_valueChanged(), on_sampleRate_changed(), on_txDelay_valueChanged(), openDeviceSettingsDialog(), resetToDefaults(), serialize(), tick(), and updateHardware().
|
private |
Definition at line 98 of file remoteoutputgui.h.
Referenced by RemoteOutputSinkGui().
|
private |
Definition at line 103 of file remoteoutputgui.h.
Referenced by tick().
|
private |
Definition at line 116 of file remoteoutputgui.h.
Referenced by displayEventTimer(), on_eventCountsReset_clicked(), and RemoteOutputSinkGui().
|
private |
Definition at line 97 of file remoteoutputgui.h.
Referenced by RemoteOutputSinkGui(), sendSettings(), and updateHardware().
|
private |
Definition at line 92 of file remoteoutputgui.h.
Referenced by analyzeApiReply(), displayEventCounts(), displayEventStatus(), displayEventTimer(), displaySettings(), handleMessage(), networkManagerFinished(), on_apiAddress_returnPressed(), on_apiApplyButton_clicked(), on_apiPort_returnPressed(), on_channelIndex_returnPressed(), on_dataAddress_returnPressed(), on_dataApplyButton_clicked(), on_dataPort_returnPressed(), on_deviceIndex_returnPressed(), on_nbFECBlocks_valueChanged(), on_txDelay_valueChanged(), RemoteOutputSinkGui(), updateSampleRate(), updateStatus(), and ~RemoteOutputSinkGui().