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 <filesourcesettings.h>
Public Member Functions | |
FileSourceSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
QString | m_fileName |
bool | m_loop |
uint32_t | m_log2Interp |
uint32_t | m_filterChainHash |
int | m_gainDB |
quint32 | m_rgbColor |
QString | m_title |
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 filesourcesettings.h.
FileSourceSettings::FileSourceSettings | ( | ) |
Definition at line 26 of file filesourcesettings.cpp.
References resetToDefaults().
bool FileSourceSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 67 of file filesourcesettings.cpp.
References SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_fileName, m_filterChainHash, m_gainDB, m_log2Interp, m_loop, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_title, m_useReverseAPI, SimpleDeserializer::readBool(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by FileSourceGUI::deserialize(), FileSource::deserialize(), and setChannelMarker().
void FileSourceSettings::resetToDefaults | ( | ) |
Definition at line 31 of file filesourcesettings.cpp.
References m_channelMarker, m_fileName, m_filterChainHash, m_gainDB, m_log2Interp, m_loop, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_title, and m_useReverseAPI.
Referenced by deserialize(), FileSource::deserialize(), FileSourceSettings(), and FileSourceGUI::resetToDefaults().
QByteArray FileSourceSettings::serialize | ( | ) | const |
Definition at line 48 of file filesourcesettings.cpp.
References SimpleSerializer::final(), m_fileName, m_filterChainHash, m_gainDB, m_log2Interp, m_loop, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_title, m_useReverseAPI, SimpleSerializer::writeBool(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by FileSourceGUI::serialize(), FileSource::serialize(), and setChannelMarker().
|
inline |
Definition at line 45 of file filesourcesettings.h.
References deserialize(), and serialize().
Referenced by FileSourceGUI::FileSourceGUI().
Serializable* FileSourceSettings::m_channelMarker |
Definition at line 41 of file filesourcesettings.h.
Referenced by resetToDefaults().
QString FileSourceSettings::m_fileName |
Definition at line 28 of file filesourcesettings.h.
Referenced by FileSource::applySettings(), deserialize(), resetToDefaults(), serialize(), and FileSource::webapiFormatChannelReport().
uint32_t FileSourceSettings::m_filterChainHash |
Definition at line 31 of file filesourcesettings.h.
Referenced by FileSourceGUI::applyChannelSettings(), FileSourceGUI::applyInterpolation(), FileSourceGUI::applyPosition(), FileSource::calculateFrequencyOffset(), deserialize(), FileSource::handleMessage(), FileSourceGUI::on_position_valueChanged(), resetToDefaults(), serialize(), FileSource::validateFilterChainHash(), FileSource::webapiFormatChannelSettings(), FileSource::webapiReverseSendSettings(), and FileSource::webapiSettingsPutPatch().
int FileSourceSettings::m_gainDB |
Definition at line 32 of file filesourcesettings.h.
Referenced by FileSource::applySettings(), deserialize(), FileSourceGUI::displaySettings(), FileSourceGUI::on_gain_valueChanged(), resetToDefaults(), serialize(), FileSource::webapiFormatChannelSettings(), FileSource::webapiReverseSendSettings(), and FileSource::webapiSettingsPutPatch().
uint32_t FileSourceSettings::m_log2Interp |
Definition at line 30 of file filesourcesettings.h.
Referenced by FileSourceGUI::applyChannelSettings(), FileSourceGUI::applyInterpolation(), FileSourceGUI::applyPosition(), FileSource::calculateFrequencyOffset(), deserialize(), FileSourceGUI::displayRateAndShift(), FileSourceGUI::displaySettings(), FileSource::handleMessage(), FileSourceGUI::on_interpolationFactor_currentIndexChanged(), resetToDefaults(), serialize(), FileSource::validateFilterChainHash(), FileSource::webapiFormatChannelSettings(), FileSource::webapiReverseSendSettings(), and FileSource::webapiSettingsPutPatch().
bool FileSourceSettings::m_loop |
Definition at line 29 of file filesourcesettings.h.
Referenced by FileSource::applySettings(), deserialize(), FileSource::handleEOF(), FileSourceGUI::on_playLoop_toggled(), resetToDefaults(), and serialize().
QString FileSourceSettings::m_reverseAPIAddress |
Definition at line 36 of file filesourcesettings.h.
Referenced by FileSource::applySettings(), deserialize(), FileSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FileSource::webapiFormatChannelSettings(), FileSource::webapiReverseSendSettings(), and FileSource::webapiSettingsPutPatch().
uint16_t FileSourceSettings::m_reverseAPIChannelIndex |
Definition at line 39 of file filesourcesettings.h.
Referenced by FileSource::applySettings(), deserialize(), FileSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FileSource::webapiFormatChannelSettings(), FileSource::webapiReverseSendSettings(), and FileSource::webapiSettingsPutPatch().
uint16_t FileSourceSettings::m_reverseAPIDeviceIndex |
Definition at line 38 of file filesourcesettings.h.
Referenced by FileSource::applySettings(), deserialize(), FileSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FileSource::webapiFormatChannelSettings(), FileSource::webapiReverseSendSettings(), and FileSource::webapiSettingsPutPatch().
uint16_t FileSourceSettings::m_reverseAPIPort |
Definition at line 37 of file filesourcesettings.h.
Referenced by FileSource::applySettings(), deserialize(), FileSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FileSource::webapiFormatChannelSettings(), FileSource::webapiReverseSendSettings(), and FileSource::webapiSettingsPutPatch().
quint32 FileSourceSettings::m_rgbColor |
Definition at line 33 of file filesourcesettings.h.
Referenced by deserialize(), FileSourceGUI::displaySettings(), FileSourceGUI::FileSourceGUI(), FileSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FileSource::webapiFormatChannelSettings(), FileSource::webapiReverseSendSettings(), and FileSource::webapiSettingsPutPatch().
QString FileSourceSettings::m_title |
Definition at line 34 of file filesourcesettings.h.
Referenced by deserialize(), FileSourceGUI::displaySettings(), FileSource::getTitle(), FileSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FileSource::webapiFormatChannelSettings(), FileSource::webapiReverseSendSettings(), and FileSource::webapiSettingsPutPatch().
bool FileSourceSettings::m_useReverseAPI |
Definition at line 35 of file filesourcesettings.h.
Referenced by FileSource::applySettings(), deserialize(), FileSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), FileSource::webapiFormatChannelSettings(), and FileSource::webapiSettingsPutPatch().