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 <wfmdemodsettings.h>
Public Member Functions | |
WFMDemodSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
qint64 | m_inputFrequencyOffset |
Real | m_rfBandwidth |
Real | m_afBandwidth |
Real | m_volume |
Real | m_squelch |
bool | m_audioMute |
quint32 | m_rgbColor |
QString | m_title |
QString | m_audioDeviceName |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
uint16_t | m_reverseAPIChannelIndex |
Serializable * | m_channelMarker |
Static Public Attributes | |
static const int | m_rfBWMin = 10000 |
static const int | m_rfBWMax = 300000 |
static const int | m_rfBWDigits = 6 |
Definition at line 26 of file wfmdemodsettings.h.
WFMDemodSettings::WFMDemodSettings | ( | ) |
Definition at line 31 of file wfmdemodsettings.cpp.
References resetToDefaults().
bool WFMDemodSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 80 of file wfmdemodsettings.cpp.
References Serializable::deserialize(), SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_afBandwidth, m_audioDeviceName, m_channelMarker, AudioDeviceManager::m_defaultDeviceName, m_inputFrequencyOffset, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rfBWMax, m_rgbColor, m_squelch, m_title, m_useReverseAPI, m_volume, SimpleDeserializer::readBlob(), SimpleDeserializer::readBool(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by WFMDemodGUI::deserialize(), WFMDemod::deserialize(), and setChannelMarker().
void WFMDemodSettings::resetToDefaults | ( | ) |
Definition at line 37 of file wfmdemodsettings.cpp.
References m_afBandwidth, m_audioDeviceName, m_audioMute, AudioDeviceManager::m_defaultDeviceName, m_inputFrequencyOffset, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_squelch, m_title, m_useReverseAPI, and m_volume.
Referenced by deserialize(), WFMDemod::deserialize(), WFMDemodGUI::resetToDefaults(), and WFMDemodSettings().
QByteArray WFMDemodSettings::serialize | ( | ) | const |
Definition at line 55 of file wfmdemodsettings.cpp.
References SimpleSerializer::final(), m_afBandwidth, m_audioDeviceName, m_channelMarker, m_inputFrequencyOffset, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_squelch, m_title, m_useReverseAPI, m_volume, Serializable::serialize(), SimpleSerializer::writeBlob(), SimpleSerializer::writeBool(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by WFMDemodGUI::serialize(), WFMDemod::serialize(), and setChannelMarker().
|
inline |
Definition at line 51 of file wfmdemodsettings.h.
References deserialize(), and serialize().
Referenced by WFMDemodGUI::WFMDemodGUI().
Real WFMDemodSettings::m_afBandwidth |
Definition at line 30 of file wfmdemodsettings.h.
Referenced by WFMDemod::applyAudioSampleRate(), WFMDemod::applyChannelSettings(), WFMDemod::applySettings(), deserialize(), WFMDemodGUI::displaySettings(), WFMDemodGUI::on_afBW_valueChanged(), resetToDefaults(), serialize(), WFMDemod::webapiFormatChannelSettings(), WFMDemod::webapiReverseSendSettings(), and WFMDemod::webapiSettingsPutPatch().
QString WFMDemodSettings::m_audioDeviceName |
Definition at line 36 of file wfmdemodsettings.h.
Referenced by WFMDemod::applySettings(), WFMDemodGUI::audioSelect(), deserialize(), resetToDefaults(), serialize(), WFMDemod::webapiFormatChannelSettings(), WFMDemod::webapiReverseSendSettings(), and WFMDemod::webapiSettingsPutPatch().
bool WFMDemodSettings::m_audioMute |
Definition at line 33 of file wfmdemodsettings.h.
Referenced by WFMDemod::applySettings(), WFMDemodGUI::displaySettings(), WFMDemod::feed(), WFMDemodGUI::on_audioMute_toggled(), resetToDefaults(), WFMDemod::webapiFormatChannelSettings(), WFMDemod::webapiReverseSendSettings(), and WFMDemod::webapiSettingsPutPatch().
Serializable* WFMDemodSettings::m_channelMarker |
Definition at line 43 of file wfmdemodsettings.h.
Referenced by deserialize(), and serialize().
qint64 WFMDemodSettings::m_inputFrequencyOffset |
Definition at line 28 of file wfmdemodsettings.h.
Referenced by WFMDemod::applySettings(), WFMDemodGUI::channelMarkerChangedByCursor(), deserialize(), WFMDemodGUI::displaySettings(), WFMDemod::getCenterFrequency(), WFMDemod::getStreamCenterFrequency(), WFMDemodGUI::on_deltaFrequency_changed(), WFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), WFMDemod::webapiFormatChannelSettings(), WFMDemod::webapiReverseSendSettings(), and WFMDemod::webapiSettingsPutPatch().
QString WFMDemodSettings::m_reverseAPIAddress |
Definition at line 38 of file wfmdemodsettings.h.
Referenced by WFMDemod::applySettings(), deserialize(), WFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), WFMDemod::webapiFormatChannelSettings(), WFMDemod::webapiReverseSendSettings(), and WFMDemod::webapiSettingsPutPatch().
uint16_t WFMDemodSettings::m_reverseAPIChannelIndex |
Definition at line 41 of file wfmdemodsettings.h.
Referenced by WFMDemod::applySettings(), deserialize(), WFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), WFMDemod::webapiFormatChannelSettings(), WFMDemod::webapiReverseSendSettings(), and WFMDemod::webapiSettingsPutPatch().
uint16_t WFMDemodSettings::m_reverseAPIDeviceIndex |
Definition at line 40 of file wfmdemodsettings.h.
Referenced by WFMDemod::applySettings(), deserialize(), WFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), WFMDemod::webapiFormatChannelSettings(), WFMDemod::webapiReverseSendSettings(), and WFMDemod::webapiSettingsPutPatch().
uint16_t WFMDemodSettings::m_reverseAPIPort |
Definition at line 39 of file wfmdemodsettings.h.
Referenced by WFMDemod::applySettings(), deserialize(), WFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), WFMDemod::webapiFormatChannelSettings(), WFMDemod::webapiReverseSendSettings(), and WFMDemod::webapiSettingsPutPatch().
Real WFMDemodSettings::m_rfBandwidth |
Definition at line 29 of file wfmdemodsettings.h.
Referenced by WFMDemod::applyChannelSettings(), WFMDemodGUI::applySettings(), WFMDemod::applySettings(), deserialize(), WFMDemodGUI::displaySettings(), WFMDemod::feed(), WFMDemodGUI::on_rfBW_changed(), resetToDefaults(), serialize(), WFMDemod::webapiFormatChannelSettings(), WFMDemod::webapiReverseSendSettings(), WFMDemod::webapiSettingsPutPatch(), and WFMDemodGUI::WFMDemodGUI().
|
static |
Definition at line 47 of file wfmdemodsettings.h.
Referenced by WFMDemodGUI::WFMDemodGUI().
|
static |
Definition at line 46 of file wfmdemodsettings.h.
Referenced by deserialize(), and WFMDemodGUI::WFMDemodGUI().
|
static |
Definition at line 45 of file wfmdemodsettings.h.
Referenced by WFMDemodGUI::WFMDemodGUI().
quint32 WFMDemodSettings::m_rgbColor |
Definition at line 34 of file wfmdemodsettings.h.
Referenced by WFMDemod::applySettings(), deserialize(), WFMDemodGUI::displaySettings(), WFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), WFMDemod::webapiFormatChannelSettings(), WFMDemod::webapiReverseSendSettings(), WFMDemod::webapiSettingsPutPatch(), and WFMDemodGUI::WFMDemodGUI().
Real WFMDemodSettings::m_squelch |
Definition at line 32 of file wfmdemodsettings.h.
Referenced by WFMDemod::applySettings(), deserialize(), WFMDemodGUI::displaySettings(), WFMDemodGUI::on_squelch_valueChanged(), resetToDefaults(), serialize(), WFMDemod::webapiFormatChannelSettings(), WFMDemod::webapiReverseSendSettings(), and WFMDemod::webapiSettingsPutPatch().
QString WFMDemodSettings::m_title |
Definition at line 35 of file wfmdemodsettings.h.
Referenced by WFMDemod::applySettings(), deserialize(), WFMDemodGUI::displaySettings(), WFMDemod::getTitle(), WFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), WFMDemod::webapiFormatChannelSettings(), WFMDemod::webapiReverseSendSettings(), and WFMDemod::webapiSettingsPutPatch().
bool WFMDemodSettings::m_useReverseAPI |
Definition at line 37 of file wfmdemodsettings.h.
Referenced by WFMDemod::applySettings(), deserialize(), WFMDemodGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), WFMDemod::webapiFormatChannelSettings(), and WFMDemod::webapiSettingsPutPatch().
Real WFMDemodSettings::m_volume |
Definition at line 31 of file wfmdemodsettings.h.
Referenced by WFMDemod::applySettings(), deserialize(), WFMDemodGUI::displaySettings(), WFMDemod::feed(), WFMDemodGUI::on_volume_valueChanged(), resetToDefaults(), serialize(), WFMDemod::webapiFormatChannelSettings(), WFMDemod::webapiReverseSendSettings(), and WFMDemod::webapiSettingsPutPatch().