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 <localsourcesettings.h>
Public Member Functions | |
LocalSourceSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
uint32_t | m_localDeviceIndex |
quint32 | m_rgbColor |
QString | m_title |
uint32_t | m_log2Interp |
uint32_t | m_filterChainHash |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
uint16_t | m_reverseAPIChannelIndex |
Serializable * | m_channelMarker |
Definition at line 26 of file localsourcesettings.h.
LocalSourceSettings::LocalSourceSettings | ( | ) |
Definition at line 26 of file localsourcesettings.cpp.
References resetToDefaults().
bool LocalSourceSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 63 of file localsourcesettings.cpp.
References SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_filterChainHash, m_localDeviceIndex, m_log2Interp, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_title, m_useReverseAPI, SimpleDeserializer::readBool(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by LocalSourceGUI::deserialize(), LocalSource::deserialize(), and setChannelMarker().
void LocalSourceSettings::resetToDefaults | ( | ) |
Definition at line 31 of file localsourcesettings.cpp.
References m_channelMarker, m_filterChainHash, m_localDeviceIndex, m_log2Interp, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_title, and m_useReverseAPI.
Referenced by deserialize(), LocalSource::deserialize(), LocalSourceSettings(), and LocalSourceGUI::resetToDefaults().
QByteArray LocalSourceSettings::serialize | ( | ) | const |
Definition at line 46 of file localsourcesettings.cpp.
References SimpleSerializer::final(), m_filterChainHash, m_localDeviceIndex, m_log2Interp, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_title, m_useReverseAPI, SimpleSerializer::writeBool(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by LocalSourceGUI::serialize(), LocalSource::serialize(), and setChannelMarker().
|
inline |
Definition at line 43 of file localsourcesettings.h.
References deserialize(), and serialize().
Referenced by LocalSourceGUI::LocalSourceGUI().
Serializable* LocalSourceSettings::m_channelMarker |
Definition at line 39 of file localsourcesettings.h.
Referenced by resetToDefaults().
uint32_t LocalSourceSettings::m_filterChainHash |
Definition at line 32 of file localsourcesettings.h.
Referenced by LocalSourceGUI::applyChannelSettings(), LocalSourceGUI::applyInterpolation(), LocalSourceGUI::applyPosition(), LocalSource::calculateFrequencyOffset(), deserialize(), LocalSource::handleMessage(), LocalSourceGUI::on_position_valueChanged(), resetToDefaults(), serialize(), LocalSource::validateFilterChainHash(), LocalSource::webapiFormatChannelSettings(), LocalSource::webapiReverseSendSettings(), and LocalSource::webapiSettingsPutPatch().
uint32_t LocalSourceSettings::m_localDeviceIndex |
Definition at line 28 of file localsourcesettings.h.
Referenced by LocalSource::applySettings(), deserialize(), LocalSource::handleMessage(), LocalSourceGUI::on_localDevice_currentIndexChanged(), resetToDefaults(), serialize(), LocalSource::start(), LocalSource::webapiFormatChannelSettings(), LocalSource::webapiReverseSendSettings(), and LocalSource::webapiSettingsPutPatch().
uint32_t LocalSourceSettings::m_log2Interp |
Definition at line 31 of file localsourcesettings.h.
Referenced by LocalSourceGUI::applyChannelSettings(), LocalSourceGUI::applyInterpolation(), LocalSourceGUI::applyPosition(), LocalSource::calculateFrequencyOffset(), deserialize(), LocalSourceGUI::displayRateAndShift(), LocalSourceGUI::displaySettings(), LocalSource::handleMessage(), LocalSourceGUI::on_interpolationFactor_currentIndexChanged(), LocalSource::propagateSampleRateAndFrequency(), resetToDefaults(), serialize(), LocalSource::validateFilterChainHash(), LocalSource::webapiFormatChannelSettings(), LocalSource::webapiReverseSendSettings(), and LocalSource::webapiSettingsPutPatch().
QString LocalSourceSettings::m_reverseAPIAddress |
Definition at line 34 of file localsourcesettings.h.
Referenced by LocalSource::applySettings(), deserialize(), LocalSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), LocalSource::webapiFormatChannelSettings(), LocalSource::webapiReverseSendSettings(), and LocalSource::webapiSettingsPutPatch().
uint16_t LocalSourceSettings::m_reverseAPIChannelIndex |
Definition at line 37 of file localsourcesettings.h.
Referenced by LocalSource::applySettings(), deserialize(), LocalSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), LocalSource::webapiFormatChannelSettings(), LocalSource::webapiReverseSendSettings(), and LocalSource::webapiSettingsPutPatch().
uint16_t LocalSourceSettings::m_reverseAPIDeviceIndex |
Definition at line 36 of file localsourcesettings.h.
Referenced by LocalSource::applySettings(), deserialize(), LocalSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), LocalSource::webapiFormatChannelSettings(), LocalSource::webapiReverseSendSettings(), and LocalSource::webapiSettingsPutPatch().
uint16_t LocalSourceSettings::m_reverseAPIPort |
Definition at line 35 of file localsourcesettings.h.
Referenced by LocalSource::applySettings(), deserialize(), LocalSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), LocalSource::webapiFormatChannelSettings(), LocalSource::webapiReverseSendSettings(), and LocalSource::webapiSettingsPutPatch().
quint32 LocalSourceSettings::m_rgbColor |
Definition at line 29 of file localsourcesettings.h.
Referenced by deserialize(), LocalSourceGUI::displaySettings(), LocalSourceGUI::LocalSourceGUI(), LocalSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), LocalSource::webapiFormatChannelSettings(), LocalSource::webapiReverseSendSettings(), and LocalSource::webapiSettingsPutPatch().
QString LocalSourceSettings::m_title |
Definition at line 30 of file localsourcesettings.h.
Referenced by deserialize(), LocalSourceGUI::displaySettings(), LocalSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), LocalSource::webapiFormatChannelSettings(), LocalSource::webapiReverseSendSettings(), and LocalSource::webapiSettingsPutPatch().
bool LocalSourceSettings::m_useReverseAPI |
Definition at line 33 of file localsourcesettings.h.
Referenced by LocalSource::applySettings(), deserialize(), LocalSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), LocalSource::webapiFormatChannelSettings(), and LocalSource::webapiSettingsPutPatch().