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 <kiwisdrsettings.h>
Public Member Functions | |
KiwiSDRSettings () | |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
uint32_t | m_gain |
bool | m_useAGC |
bool | m_dcBlock |
quint64 | m_centerFrequency |
QString | m_serverAddress |
QString | m_fileRecordName |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
Definition at line 25 of file kiwisdrsettings.h.
KiwiSDRSettings::KiwiSDRSettings | ( | ) |
Definition at line 22 of file kiwisdrsettings.cpp.
References resetToDefaults().
bool KiwiSDRSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 60 of file kiwisdrsettings.cpp.
References SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_gain, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_serverAddress, m_useAGC, m_useReverseAPI, SimpleDeserializer::readBool(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by KiwiSDRGui::deserialize(), and KiwiSDRInput::deserialize().
void KiwiSDRSettings::resetToDefaults | ( | ) |
Definition at line 27 of file kiwisdrsettings.cpp.
References m_centerFrequency, m_dcBlock, m_fileRecordName, m_gain, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_serverAddress, m_useAGC, and m_useReverseAPI.
Referenced by deserialize(), KiwiSDRInput::deserialize(), KiwiSDRSettings(), and KiwiSDRGui::resetToDefaults().
QByteArray KiwiSDRSettings::serialize | ( | ) | const |
Definition at line 44 of file kiwisdrsettings.cpp.
References SimpleSerializer::final(), m_gain, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_serverAddress, m_useAGC, m_useReverseAPI, SimpleSerializer::writeBool(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by KiwiSDRGui::serialize(), and KiwiSDRInput::serialize().
quint64 KiwiSDRSettings::m_centerFrequency |
Definition at line 30 of file kiwisdrsettings.h.
Referenced by KiwiSDRInput::applySettings(), KiwiSDRGui::displaySettings(), KiwiSDRGui::getCenterFrequency(), KiwiSDRInput::getCenterFrequency(), KiwiSDRGui::on_centerFrequency_changed(), resetToDefaults(), KiwiSDRGui::setCenterFrequency(), KiwiSDRInput::setCenterFrequency(), KiwiSDRInput::webapiFormatDeviceSettings(), KiwiSDRInput::webapiReverseSendSettings(), and KiwiSDRInput::webapiSettingsPutPatch().
bool KiwiSDRSettings::m_dcBlock |
Definition at line 28 of file kiwisdrsettings.h.
Referenced by KiwiSDRInput::applySettings(), KiwiSDRGui::displaySettings(), KiwiSDRGui::on_dcBlock_toggled(), resetToDefaults(), KiwiSDRInput::webapiFormatDeviceSettings(), KiwiSDRInput::webapiReverseSendSettings(), and KiwiSDRInput::webapiSettingsPutPatch().
QString KiwiSDRSettings::m_fileRecordName |
Definition at line 32 of file kiwisdrsettings.h.
Referenced by KiwiSDRInput::applySettings(), KiwiSDRInput::handleMessage(), resetToDefaults(), KiwiSDRInput::webapiFormatDeviceSettings(), KiwiSDRInput::webapiReverseSendSettings(), and KiwiSDRInput::webapiSettingsPutPatch().
uint32_t KiwiSDRSettings::m_gain |
Definition at line 26 of file kiwisdrsettings.h.
Referenced by KiwiSDRInput::applySettings(), deserialize(), KiwiSDRGui::displaySettings(), KiwiSDRGui::on_gain_valueChanged(), resetToDefaults(), serialize(), KiwiSDRInput::webapiFormatDeviceSettings(), KiwiSDRInput::webapiReverseSendSettings(), and KiwiSDRInput::webapiSettingsPutPatch().
QString KiwiSDRSettings::m_reverseAPIAddress |
Definition at line 35 of file kiwisdrsettings.h.
Referenced by KiwiSDRInput::applySettings(), deserialize(), KiwiSDRGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), KiwiSDRInput::webapiFormatDeviceSettings(), KiwiSDRInput::webapiReverseSendSettings(), KiwiSDRInput::webapiReverseSendStartStop(), and KiwiSDRInput::webapiSettingsPutPatch().
uint16_t KiwiSDRSettings::m_reverseAPIDeviceIndex |
Definition at line 37 of file kiwisdrsettings.h.
Referenced by KiwiSDRInput::applySettings(), deserialize(), KiwiSDRGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), KiwiSDRInput::webapiFormatDeviceSettings(), KiwiSDRInput::webapiReverseSendSettings(), KiwiSDRInput::webapiReverseSendStartStop(), and KiwiSDRInput::webapiSettingsPutPatch().
uint16_t KiwiSDRSettings::m_reverseAPIPort |
Definition at line 36 of file kiwisdrsettings.h.
Referenced by KiwiSDRInput::applySettings(), deserialize(), KiwiSDRGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), KiwiSDRInput::webapiFormatDeviceSettings(), KiwiSDRInput::webapiReverseSendSettings(), KiwiSDRInput::webapiReverseSendStartStop(), and KiwiSDRInput::webapiSettingsPutPatch().
QString KiwiSDRSettings::m_serverAddress |
Definition at line 31 of file kiwisdrsettings.h.
Referenced by KiwiSDRInput::applySettings(), deserialize(), KiwiSDRGui::displaySettings(), KiwiSDRGui::on_serverAddressApplyButton_clicked(), resetToDefaults(), serialize(), KiwiSDRInput::webapiFormatDeviceSettings(), KiwiSDRInput::webapiReverseSendSettings(), and KiwiSDRInput::webapiSettingsPutPatch().
bool KiwiSDRSettings::m_useAGC |
Definition at line 27 of file kiwisdrsettings.h.
Referenced by KiwiSDRInput::applySettings(), deserialize(), KiwiSDRGui::displaySettings(), KiwiSDRGui::on_agc_toggled(), resetToDefaults(), serialize(), KiwiSDRInput::webapiFormatDeviceSettings(), KiwiSDRInput::webapiReverseSendSettings(), and KiwiSDRInput::webapiSettingsPutPatch().
bool KiwiSDRSettings::m_useReverseAPI |
Definition at line 34 of file kiwisdrsettings.h.
Referenced by KiwiSDRInput::applySettings(), deserialize(), KiwiSDRInput::handleMessage(), KiwiSDRGui::openDeviceSettingsDialog(), resetToDefaults(), serialize(), KiwiSDRInput::webapiFormatDeviceSettings(), and KiwiSDRInput::webapiSettingsPutPatch().