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 <filesinkgui.h>
Public Member Functions | |
FileSinkGui (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~FileSinkGui () |
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_centerFrequency_changed (quint64 value) |
void | on_sampleRate_changed (quint64 value) |
void | on_startStop_toggled (bool checked) |
void | on_showFileDialog_clicked (bool checked) |
void | on_interp_currentIndexChanged (int index) |
void | updateHardware () |
void | updateStatus () |
void | tick () |
Private Member Functions | |
void | blockApplySettings (bool block) |
void | displaySettings () |
void | displayTime () |
void | sendSettings () |
void | configureFileName () |
void | updateWithGeneration () |
void | updateWithStreamTime () |
void | updateSampleRateAndFrequency () |
Private Attributes | |
Ui::FileSinkGui * | ui |
DeviceUISet * | m_deviceUISet |
bool | m_doApplySettings |
bool | m_forceSettings |
FileSinkSettings | m_settings |
QString | m_fileName |
QTimer | m_updateTimer |
QTimer | m_statusTimer |
DeviceSampleSink * | m_deviceSampleSink |
int | m_sampleRate |
quint64 | m_deviceCenterFrequency |
Center frequency in device. More... | |
bool | m_generation |
std::time_t | m_startingTimeStamp |
int | m_samplesCount |
std::size_t | m_tickCount |
int | m_lastEngineState |
MessageQueue | m_inputMessageQueue |
Definition at line 38 of file filesinkgui.h.
|
explicit |
Definition at line 39 of file filesinkgui.cpp.
References displaySettings(), DeviceAPI::getMasterTimer(), DeviceAPI::getSampleSink(), ColorMapper::GrayGold, ColorMapper::GrayGreenYellow, handleInputMessages(), DeviceUISet::m_deviceAPI, m_deviceSampleSink, m_deviceUISet, m_fileName, m_inputMessageQueue, m_statusTimer, m_updateTimer, tick(), ui, updateHardware(), and updateStatus().
|
virtual |
Definition at line 76 of file filesinkgui.cpp.
References ui.
|
inlineprivate |
Definition at line 77 of file filesinkgui.h.
Referenced by handleMessage().
|
private |
Definition at line 304 of file filesinkgui.cpp.
References FileSinkOutput::MsgConfigureFileSinkName::create(), DeviceSampleSink::getInputMessageQueue(), m_deviceSampleSink, m_fileName, and MessageQueue::push().
Referenced by on_showFileDialog_clicked().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 120 of file filesinkgui.cpp.
References FileSinkSettings::deserialize(), displaySettings(), m_forceSettings, m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 81 of file filesinkgui.cpp.
|
private |
Definition at line 207 of file filesinkgui.cpp.
References FileSinkSettings::m_centerFrequency, FileSinkSettings::m_sampleRate, m_settings, and ui.
Referenced by deserialize(), FileSinkGui(), handleMessage(), resetToDefaults(), and setCenterFrequency().
|
private |
|
virtual |
Implements PluginInstanceGUI.
Definition at line 103 of file filesinkgui.cpp.
References FileSinkSettings::m_centerFrequency, and m_settings.
|
inlinevirtual |
|
virtual |
Implements PluginInstanceGUI.
Definition at line 91 of file filesinkgui.cpp.
|
privateslot |
Definition at line 173 of file filesinkgui.cpp.
References DSPSignalNotification::getCenterFrequency(), DSPSignalNotification::getSampleRate(), handleMessage(), m_deviceCenterFrequency, m_inputMessageQueue, m_sampleRate, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by FileSinkGui().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 133 of file filesinkgui.cpp.
References blockApplySettings(), displaySettings(), FileSinkOutput::MsgConfigureFileSink::getSettings(), FileSinkOutput::MsgStartStop::getStartStop(), m_generation, m_samplesCount, m_settings, Message::match(), ui, updateWithGeneration(), and updateWithStreamTime().
Referenced by handleInputMessages().
|
privateslot |
Definition at line 258 of file filesinkgui.cpp.
References FileSinkSettings::m_centerFrequency, m_settings, and sendSettings().
|
privateslot |
Definition at line 270 of file filesinkgui.cpp.
References FileSinkSettings::m_log2Interp, m_settings, sendSettings(), and updateSampleRateAndFrequency().
|
privateslot |
Definition at line 264 of file filesinkgui.cpp.
References FileSinkSettings::m_sampleRate, m_settings, and sendSettings().
|
privateslot |
Definition at line 290 of file filesinkgui.cpp.
References configureFileName(), m_fileName, and ui.
|
privateslot |
Definition at line 281 of file filesinkgui.cpp.
References FileSinkOutput::MsgStartStop::create(), DeviceSampleSink::getInputMessageQueue(), m_deviceSampleSink, m_doApplySettings, and MessageQueue::push().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 96 of file filesinkgui.cpp.
References displaySettings(), m_settings, FileSinkSettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 213 of file filesinkgui.cpp.
References m_updateTimer.
Referenced by deserialize(), on_centerFrequency_changed(), on_interp_currentIndexChanged(), on_sampleRate_changed(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 115 of file filesinkgui.cpp.
References m_settings, and FileSinkSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 108 of file filesinkgui.cpp.
References displaySettings(), FileSinkSettings::m_centerFrequency, m_settings, and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 86 of file filesinkgui.cpp.
|
privateslot |
Definition at line 333 of file filesinkgui.cpp.
References FileSinkOutput::MsgConfigureFileSinkStreamTiming::create(), DeviceSampleSink::getInputMessageQueue(), m_deviceSampleSink, m_tickCount, and MessageQueue::push().
Referenced by FileSinkGui().
|
privateslot |
Definition at line 220 of file filesinkgui.cpp.
References FileSinkOutput::MsgConfigureFileSink::create(), DeviceSampleSink::getInputMessageQueue(), m_deviceSampleSink, m_forceSettings, m_settings, m_updateTimer, and MessageQueue::push().
Referenced by FileSinkGui().
|
private |
Definition at line 200 of file filesinkgui.cpp.
References arg(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceUISet, FileSinkSettings::m_log2Interp, m_sampleRate, m_settings, GLSpectrum::setCenterFrequency(), GLSpectrum::setSampleRate(), and ui.
Referenced by handleInputMessages(), and on_interp_currentIndexChanged().
|
privateslot |
Definition at line 229 of file filesinkgui.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 FileSinkGui().
|
private |
Definition at line 311 of file filesinkgui.cpp.
References m_generation, and ui.
Referenced by handleMessage().
|
private |
Definition at line 316 of file filesinkgui.cpp.
References FileSinkSettings::m_sampleRate, m_samplesCount, m_settings, and ui.
Referenced by handleMessage().
|
private |
Center frequency in device.
Definition at line 69 of file filesinkgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 67 of file filesinkgui.h.
Referenced by configureFileName(), FileSinkGui(), on_startStop_toggled(), tick(), and updateHardware().
|
private |
Definition at line 60 of file filesinkgui.h.
Referenced by FileSinkGui(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 61 of file filesinkgui.h.
Referenced by on_startStop_toggled().
|
private |
Definition at line 64 of file filesinkgui.h.
Referenced by configureFileName(), FileSinkGui(), and on_showFileDialog_clicked().
|
private |
Definition at line 62 of file filesinkgui.h.
Referenced by deserialize(), and updateHardware().
|
private |
Definition at line 70 of file filesinkgui.h.
Referenced by handleMessage(), and updateWithGeneration().
|
private |
Definition at line 75 of file filesinkgui.h.
Referenced by FileSinkGui(), and handleInputMessages().
|
private |
Definition at line 74 of file filesinkgui.h.
Referenced by updateStatus().
|
private |
Definition at line 68 of file filesinkgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 72 of file filesinkgui.h.
Referenced by handleMessage(), and updateWithStreamTime().
|
private |
Definition at line 63 of file filesinkgui.h.
Referenced by deserialize(), displaySettings(), getCenterFrequency(), handleMessage(), on_centerFrequency_changed(), on_interp_currentIndexChanged(), on_sampleRate_changed(), resetToDefaults(), serialize(), setCenterFrequency(), updateHardware(), updateSampleRateAndFrequency(), and updateWithStreamTime().
|
private |
Definition at line 71 of file filesinkgui.h.
|
private |
Definition at line 66 of file filesinkgui.h.
Referenced by FileSinkGui().
|
private |
Definition at line 73 of file filesinkgui.h.
Referenced by tick().
|
private |
Definition at line 65 of file filesinkgui.h.
Referenced by FileSinkGui(), sendSettings(), and updateHardware().
|
private |
Definition at line 58 of file filesinkgui.h.
Referenced by displaySettings(), FileSinkGui(), handleMessage(), on_showFileDialog_clicked(), updateSampleRateAndFrequency(), updateStatus(), updateWithGeneration(), updateWithStreamTime(), and ~FileSinkGui().