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 <fileinputsettings.h>
Public Member Functions | |
FileInputSettings () | |
~FileInputSettings () | |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Static Public Member Functions | |
static int | getAccelerationIndex (int averaging) |
static int | getAccelerationValue (int averagingIndex) |
Public Attributes | |
quint64 | m_centerFrequency |
qint32 | m_sampleRate |
QString | m_fileName |
quint32 | m_accelerationFactor |
bool | m_loop |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
Static Public Attributes | |
static const unsigned int | m_accelerationMaxScale = 2 |
Max power of 10 multiplier to 2,5,10 base ex: 2 -> 2,5,10,20,50,100,200,500,1000. More... | |
Definition at line 24 of file fileinputsettings.h.
FileInputSettings::FileInputSettings | ( | ) |
Definition at line 24 of file fileinputsettings.cpp.
References resetToDefaults().
|
inline |
Definition at line 38 of file fileinputsettings.h.
References deserialize(), getAccelerationIndex(), getAccelerationValue(), resetToDefaults(), and serialize().
bool FileInputSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 56 of file fileinputsettings.cpp.
References SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_accelerationFactor, m_fileName, m_loop, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_useReverseAPI, SimpleDeserializer::readBool(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by FileInputGUI::deserialize(), FileInput::deserialize(), and ~FileInputSettings().
|
static |
Definition at line 94 of file fileinputsettings.cpp.
References i, and m_accelerationMaxScale.
Referenced by FileInputGUI::displaySettings(), and ~FileInputSettings().
|
static |
Definition at line 126 of file fileinputsettings.cpp.
References m_accelerationMaxScale.
Referenced by FileInputGUI::on_acceleration_currentIndexChanged(), and ~FileInputSettings().
void FileInputSettings::resetToDefaults | ( | ) |
Definition at line 29 of file fileinputsettings.cpp.
References m_accelerationFactor, m_centerFrequency, m_fileName, m_loop, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_sampleRate, and m_useReverseAPI.
Referenced by deserialize(), FileInput::deserialize(), FileInputSettings(), FileInputGUI::resetToDefaults(), and ~FileInputSettings().
QByteArray FileInputSettings::serialize | ( | ) | const |
Definition at line 42 of file fileinputsettings.cpp.
References SimpleSerializer::final(), m_accelerationFactor, m_fileName, m_loop, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_useReverseAPI, SimpleSerializer::writeBool(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by FileInputGUI::serialize(), FileInput::serialize(), and ~FileInputSettings().
quint32 FileInputSettings::m_accelerationFactor |
Definition at line 28 of file fileinputsettings.h.
Referenced by FileInput::applySettings(), deserialize(), FileInputGUI::displaySettings(), FileInputGUI::on_acceleration_currentIndexChanged(), resetToDefaults(), serialize(), FileInput::start(), FileInput::webapiFormatDeviceSettings(), FileInput::webapiReverseSendSettings(), and FileInput::webapiSettingsPutPatch().
|
static |
Max power of 10 multiplier to 2,5,10 base ex: 2 -> 2,5,10,20,50,100,200,500,1000.
Definition at line 35 of file fileinputsettings.h.
Referenced by getAccelerationIndex(), getAccelerationValue(), and FileInputGUI::setAccelerationCombo().
quint64 FileInputSettings::m_centerFrequency |
Definition at line 25 of file fileinputsettings.h.
Referenced by FileInput::applySettings(), FileInput::init(), resetToDefaults(), and FileInput::setCenterFrequency().
QString FileInputSettings::m_fileName |
Definition at line 27 of file fileinputsettings.h.
Referenced by FileInput::applySettings(), deserialize(), resetToDefaults(), serialize(), FileInput::webapiFormatDeviceSettings(), FileInput::webapiReverseSendSettings(), and FileInput::webapiSettingsPutPatch().
bool FileInputSettings::m_loop |
Definition at line 29 of file fileinputsettings.h.
Referenced by FileInput::applySettings(), deserialize(), FileInputGUI::displaySettings(), FileInput::handleMessage(), FileInputGUI::on_playLoop_toggled(), resetToDefaults(), serialize(), FileInput::webapiFormatDeviceSettings(), FileInput::webapiReverseSendSettings(), and FileInput::webapiSettingsPutPatch().
QString FileInputSettings::m_reverseAPIAddress |
Definition at line 31 of file fileinputsettings.h.
Referenced by FileInput::applySettings(), deserialize(), FileInputGUI::openDeviceSettingsDialog(), resetToDefaults(), serialize(), FileInput::webapiFormatDeviceSettings(), FileInput::webapiReverseSendSettings(), FileInput::webapiReverseSendStartStop(), and FileInput::webapiSettingsPutPatch().
uint16_t FileInputSettings::m_reverseAPIDeviceIndex |
Definition at line 33 of file fileinputsettings.h.
Referenced by FileInput::applySettings(), deserialize(), FileInputGUI::openDeviceSettingsDialog(), resetToDefaults(), serialize(), FileInput::webapiFormatDeviceSettings(), FileInput::webapiReverseSendSettings(), FileInput::webapiReverseSendStartStop(), and FileInput::webapiSettingsPutPatch().
uint16_t FileInputSettings::m_reverseAPIPort |
Definition at line 32 of file fileinputsettings.h.
Referenced by FileInput::applySettings(), deserialize(), FileInputGUI::openDeviceSettingsDialog(), resetToDefaults(), serialize(), FileInput::webapiFormatDeviceSettings(), FileInput::webapiReverseSendSettings(), FileInput::webapiReverseSendStartStop(), and FileInput::webapiSettingsPutPatch().
qint32 FileInputSettings::m_sampleRate |
Definition at line 26 of file fileinputsettings.h.
Referenced by FileInput::init(), and resetToDefaults().
bool FileInputSettings::m_useReverseAPI |
Definition at line 30 of file fileinputsettings.h.
Referenced by FileInput::applySettings(), deserialize(), FileInput::handleMessage(), FileInputGUI::openDeviceSettingsDialog(), resetToDefaults(), serialize(), FileInput::webapiFormatDeviceSettings(), and FileInput::webapiSettingsPutPatch().