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 <wfmmodsettings.h>
Public Types | |
enum | WFMModInputAF { WFMModInputNone, WFMModInputTone, WFMModInputFile, WFMModInputAudio, WFMModInputCWTone } |
Public Member Functions | |
WFMModSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
void | setCWKeyerGUI (Serializable *cwKeyerGUI) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Static Public Member Functions | |
static int | getRFBW (int index) |
static int | getRFBWIndex (int rfbw) |
Public Attributes | |
qint64 | m_inputFrequencyOffset |
Real | m_rfBandwidth |
Real | m_afBandwidth |
float | m_fmDeviation |
float | m_toneFrequency |
float | m_volumeFactor |
bool | m_channelMute |
bool | m_playLoop |
quint32 | m_rgbColor |
QString | m_title |
WFMModInputAF | m_modAFInput |
QString | m_audioDeviceName |
This is the audio device you get the audio samples from. More... | |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
uint16_t | m_reverseAPIChannelIndex |
Serializable * | m_channelMarker |
Serializable * | m_cwKeyerGUI |
Static Public Attributes | |
static const int | m_nbRfBW = 14 |
static const int | m_rfBW [] |
Definition at line 25 of file wfmmodsettings.h.
Enumerator | |
---|---|
WFMModInputNone | |
WFMModInputTone | |
WFMModInputFile | |
WFMModInputAudio | |
WFMModInputCWTone |
Definition at line 27 of file wfmmodsettings.h.
WFMModSettings::WFMModSettings | ( | ) |
Definition at line 32 of file wfmmodsettings.cpp.
References resetToDefaults().
bool WFMModSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 92 of file wfmmodsettings.cpp.
References Serializable::deserialize(), SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_afBandwidth, m_audioDeviceName, m_channelMarker, m_cwKeyerGUI, AudioDeviceManager::m_defaultDeviceName, m_fmDeviation, m_inputFrequencyOffset, m_modAFInput, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_title, m_toneFrequency, m_useReverseAPI, m_volumeFactor, SimpleDeserializer::readBlob(), SimpleDeserializer::readBool(), SimpleDeserializer::readReal(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), resetToDefaults(), and WFMModInputNone.
Referenced by WFMModGUI::deserialize(), WFMMod::deserialize(), and setCWKeyerGUI().
|
static |
Definition at line 162 of file wfmmodsettings.cpp.
References m_nbRfBW, and m_rfBW.
Referenced by WFMModGUI::applySettings(), WFMModGUI::on_rfBW_currentIndexChanged(), setCWKeyerGUI(), and WFMModGUI::WFMModGUI().
|
static |
Definition at line 173 of file wfmmodsettings.cpp.
References i, m_nbRfBW, and m_rfBW.
Referenced by WFMModGUI::displaySettings(), and setCWKeyerGUI().
void WFMModSettings::resetToDefaults | ( | ) |
Definition at line 39 of file wfmmodsettings.cpp.
References m_afBandwidth, m_audioDeviceName, m_channelMute, AudioDeviceManager::m_defaultDeviceName, m_fmDeviation, m_inputFrequencyOffset, m_modAFInput, m_playLoop, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_title, m_toneFrequency, m_useReverseAPI, m_volumeFactor, and WFMModInputNone.
Referenced by deserialize(), WFMMod::deserialize(), WFMModGUI::resetToDefaults(), and WFMModSettings().
QByteArray WFMModSettings::serialize | ( | ) | const |
Definition at line 60 of file wfmmodsettings.cpp.
References SimpleSerializer::final(), m_afBandwidth, m_audioDeviceName, m_channelMarker, m_cwKeyerGUI, m_fmDeviation, m_inputFrequencyOffset, m_modAFInput, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_title, m_toneFrequency, m_useReverseAPI, m_volumeFactor, Serializable::serialize(), SimpleSerializer::writeBlob(), SimpleSerializer::writeBool(), SimpleSerializer::writeReal(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by WFMModGUI::serialize(), WFMMod::serialize(), and setCWKeyerGUI().
|
inline |
Definition at line 62 of file wfmmodsettings.h.
Referenced by WFMModGUI::WFMModGUI().
|
inline |
Definition at line 63 of file wfmmodsettings.h.
References deserialize(), getRFBW(), getRFBWIndex(), and serialize().
Referenced by WFMModGUI::WFMModGUI().
Real WFMModSettings::m_afBandwidth |
Definition at line 41 of file wfmmodsettings.h.
Referenced by WFMMod::applySettings(), deserialize(), WFMModGUI::displaySettings(), WFMModGUI::on_afBW_valueChanged(), resetToDefaults(), serialize(), WFMMod::webapiFormatChannelSettings(), WFMMod::webapiReverseSendSettings(), and WFMMod::webapiSettingsPutPatch().
QString WFMModSettings::m_audioDeviceName |
This is the audio device you get the audio samples from.
Definition at line 50 of file wfmmodsettings.h.
Referenced by WFMMod::applySettings(), WFMModGUI::audioSelect(), deserialize(), resetToDefaults(), serialize(), WFMMod::webapiFormatChannelSettings(), and WFMMod::webapiReverseSendSettings().
Serializable* WFMModSettings::m_channelMarker |
Definition at line 57 of file wfmmodsettings.h.
Referenced by deserialize(), and serialize().
bool WFMModSettings::m_channelMute |
Definition at line 45 of file wfmmodsettings.h.
Referenced by WFMMod::applySettings(), WFMModGUI::displaySettings(), WFMModGUI::on_channelMute_toggled(), WFMMod::pull(), resetToDefaults(), WFMMod::webapiFormatChannelSettings(), WFMMod::webapiReverseSendSettings(), and WFMMod::webapiSettingsPutPatch().
Serializable* WFMModSettings::m_cwKeyerGUI |
Definition at line 58 of file wfmmodsettings.h.
Referenced by deserialize(), and serialize().
float WFMModSettings::m_fmDeviation |
Definition at line 42 of file wfmmodsettings.h.
Referenced by WFMMod::applySettings(), deserialize(), WFMModGUI::displaySettings(), WFMModGUI::on_fmDev_valueChanged(), WFMMod::pull(), resetToDefaults(), serialize(), WFMMod::webapiFormatChannelSettings(), WFMMod::webapiReverseSendSettings(), and WFMMod::webapiSettingsPutPatch().
qint64 WFMModSettings::m_inputFrequencyOffset |
Definition at line 39 of file wfmmodsettings.h.
Referenced by WFMMod::applySettings(), WFMModGUI::channelMarkerChangedByCursor(), deserialize(), WFMModGUI::displaySettings(), WFMMod::getCenterFrequency(), WFMMod::getStreamCenterFrequency(), WFMModGUI::on_deltaFrequency_changed(), WFMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), WFMMod::webapiFormatChannelSettings(), WFMMod::webapiReverseSendSettings(), and WFMMod::webapiSettingsPutPatch().
WFMModInputAF WFMModSettings::m_modAFInput |
Definition at line 49 of file wfmmodsettings.h.
Referenced by WFMMod::applySettings(), deserialize(), WFMModGUI::displaySettings(), WFMModGUI::on_mic_toggled(), WFMModGUI::on_morseKeyer_toggled(), WFMModGUI::on_play_toggled(), WFMModGUI::on_tone_toggled(), WFMMod::pull(), WFMMod::pullAF(), resetToDefaults(), serialize(), WFMModGUI::tick(), WFMMod::webapiFormatChannelSettings(), WFMMod::webapiReverseSendSettings(), and WFMMod::webapiSettingsPutPatch().
|
static |
Definition at line 36 of file wfmmodsettings.h.
Referenced by getRFBW(), getRFBWIndex(), and WFMModGUI::WFMModGUI().
bool WFMModSettings::m_playLoop |
Definition at line 46 of file wfmmodsettings.h.
Referenced by WFMMod::applySettings(), WFMModGUI::displaySettings(), WFMModGUI::on_playLoop_toggled(), WFMMod::pullAF(), resetToDefaults(), WFMMod::webapiFormatChannelSettings(), WFMMod::webapiReverseSendSettings(), and WFMMod::webapiSettingsPutPatch().
QString WFMModSettings::m_reverseAPIAddress |
Definition at line 52 of file wfmmodsettings.h.
Referenced by WFMMod::applySettings(), deserialize(), WFMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), WFMMod::webapiFormatChannelSettings(), WFMMod::webapiReverseSendCWSettings(), WFMMod::webapiReverseSendSettings(), and WFMMod::webapiSettingsPutPatch().
uint16_t WFMModSettings::m_reverseAPIChannelIndex |
Definition at line 55 of file wfmmodsettings.h.
Referenced by WFMMod::applySettings(), deserialize(), WFMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), WFMMod::webapiFormatChannelSettings(), WFMMod::webapiReverseSendCWSettings(), WFMMod::webapiReverseSendSettings(), and WFMMod::webapiSettingsPutPatch().
uint16_t WFMModSettings::m_reverseAPIDeviceIndex |
Definition at line 54 of file wfmmodsettings.h.
Referenced by WFMMod::applySettings(), deserialize(), WFMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), WFMMod::webapiFormatChannelSettings(), WFMMod::webapiReverseSendCWSettings(), WFMMod::webapiReverseSendSettings(), and WFMMod::webapiSettingsPutPatch().
uint16_t WFMModSettings::m_reverseAPIPort |
Definition at line 53 of file wfmmodsettings.h.
Referenced by WFMMod::applySettings(), deserialize(), WFMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), WFMMod::webapiFormatChannelSettings(), WFMMod::webapiReverseSendCWSettings(), WFMMod::webapiReverseSendSettings(), and WFMMod::webapiSettingsPutPatch().
Real WFMModSettings::m_rfBandwidth |
Definition at line 40 of file wfmmodsettings.h.
Referenced by WFMMod::applyAudioSampleRate(), WFMMod::applyChannelSettings(), WFMMod::applySettings(), deserialize(), WFMModGUI::displaySettings(), WFMModGUI::on_rfBW_currentIndexChanged(), resetToDefaults(), serialize(), WFMMod::webapiFormatChannelSettings(), WFMMod::webapiReverseSendSettings(), and WFMMod::webapiSettingsPutPatch().
|
static |
Definition at line 37 of file wfmmodsettings.h.
Referenced by getRFBW(), and getRFBWIndex().
quint32 WFMModSettings::m_rgbColor |
Definition at line 47 of file wfmmodsettings.h.
Referenced by deserialize(), WFMModGUI::displaySettings(), WFMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), WFMMod::webapiFormatChannelSettings(), WFMMod::webapiReverseSendSettings(), and WFMMod::webapiSettingsPutPatch().
QString WFMModSettings::m_title |
Definition at line 48 of file wfmmodsettings.h.
Referenced by deserialize(), WFMModGUI::displaySettings(), WFMMod::getTitle(), WFMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), WFMMod::webapiFormatChannelSettings(), WFMMod::webapiReverseSendSettings(), and WFMMod::webapiSettingsPutPatch().
float WFMModSettings::m_toneFrequency |
Definition at line 43 of file wfmmodsettings.h.
Referenced by WFMMod::applyChannelSettings(), WFMMod::applySettings(), deserialize(), WFMModGUI::displaySettings(), WFMModGUI::on_toneFrequency_valueChanged(), resetToDefaults(), serialize(), WFMMod::webapiFormatChannelSettings(), WFMMod::webapiReverseSendSettings(), and WFMMod::webapiSettingsPutPatch().
bool WFMModSettings::m_useReverseAPI |
Definition at line 51 of file wfmmodsettings.h.
Referenced by WFMMod::applySettings(), deserialize(), WFMMod::handleMessage(), WFMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), WFMMod::webapiFormatChannelSettings(), and WFMMod::webapiSettingsPutPatch().
float WFMModSettings::m_volumeFactor |
Definition at line 44 of file wfmmodsettings.h.
Referenced by WFMMod::applySettings(), deserialize(), WFMModGUI::displaySettings(), WFMModGUI::on_volume_valueChanged(), WFMMod::pullAF(), resetToDefaults(), serialize(), WFMMod::webapiFormatChannelSettings(), WFMMod::webapiReverseSendSettings(), and WFMMod::webapiSettingsPutPatch().