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 <SWGPreset.h>
Private Attributes | |
qint32 | source_preset |
bool | m_source_preset_isSet |
QString * | group |
bool | m_group_isSet |
QString * | description |
bool | m_description_isSet |
qint64 | center_frequency |
bool | m_center_frequency_isSet |
SWGGLSpectrum * | m_spectrum_config |
bool | m_m_spectrum_config_isSet |
qint32 | dc_offset_correction |
bool | m_dc_offset_correction_isSet |
qint32 | iq_imbalance_correction |
bool | m_iq_imbalance_correction_isSet |
QList< SWGChannelConfig * > * | channel_configs |
bool | m_channel_configs_isSet |
QList< SWGDeviceConfig * > * | device_configs |
bool | m_device_configs_isSet |
QString * | layout |
bool | m_layout_isSet |
Definition at line 36 of file SWGPreset.h.
SWGSDRangel::SWGPreset::SWGPreset | ( | ) |
Definition at line 30 of file SWGPreset.cpp.
References center_frequency, channel_configs, dc_offset_correction, description, device_configs, group, iq_imbalance_correction, layout, m_center_frequency_isSet, m_channel_configs_isSet, m_dc_offset_correction_isSet, m_description_isSet, m_device_configs_isSet, m_group_isSet, m_iq_imbalance_correction_isSet, m_layout_isSet, m_m_spectrum_config_isSet, m_source_preset_isSet, m_spectrum_config, and source_preset.
SWGSDRangel::SWGPreset::SWGPreset | ( | QString * | json | ) |
Definition at line 25 of file SWGPreset.cpp.
References fromJson(), and init().
|
virtual |
Definition at line 53 of file SWGPreset.cpp.
References cleanup().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 149 of file SWGPreset.cpp.
References asJsonObject().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 160 of file SWGPreset.cpp.
References center_frequency, channel_configs, dc_offset_correction, description, device_configs, group, iq_imbalance_correction, SWGSDRangel::SWGGLSpectrum::isSet(), layout, m_center_frequency_isSet, m_dc_offset_correction_isSet, m_iq_imbalance_correction_isSet, m_source_preset_isSet, m_spectrum_config, source_preset, SWGSDRangel::toJsonArray(), and SWGSDRangel::toJsonValue().
Referenced by asJson().
void SWGSDRangel::SWGPreset::cleanup | ( | ) |
Definition at line 82 of file SWGPreset.cpp.
References channel_configs, description, device_configs, group, layout, and m_spectrum_config.
Referenced by ~SWGPreset().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 116 of file SWGPreset.cpp.
References fromJsonObject().
Referenced by SWGPreset().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 125 of file SWGPreset.cpp.
References center_frequency, channel_configs, dc_offset_correction, description, device_configs, group, iq_imbalance_correction, layout, m_spectrum_config, SWGSDRangel::setValue(), and source_preset.
Referenced by fromJson().
qint64 SWGSDRangel::SWGPreset::getCenterFrequency | ( | ) |
QList< SWGChannelConfig * > * SWGSDRangel::SWGPreset::getChannelConfigs | ( | ) |
Definition at line 267 of file SWGPreset.cpp.
References channel_configs.
qint32 SWGSDRangel::SWGPreset::getDcOffsetCorrection | ( | ) |
QString * SWGSDRangel::SWGPreset::getDescription | ( | ) |
QList< SWGDeviceConfig * > * SWGSDRangel::SWGPreset::getDeviceConfigs | ( | ) |
Definition at line 277 of file SWGPreset.cpp.
References device_configs.
QString * SWGSDRangel::SWGPreset::getGroup | ( | ) |
Definition at line 207 of file SWGPreset.cpp.
References group.
qint32 SWGSDRangel::SWGPreset::getIqImbalanceCorrection | ( | ) |
Definition at line 257 of file SWGPreset.cpp.
References iq_imbalance_correction.
QString * SWGSDRangel::SWGPreset::getLayout | ( | ) |
SWGGLSpectrum * SWGSDRangel::SWGPreset::getMSpectrumConfig | ( | ) |
Definition at line 237 of file SWGPreset.cpp.
References m_spectrum_config.
Referenced by WebAPIAdapterBase::webapiFormatPreset().
qint32 SWGSDRangel::SWGPreset::getSourcePreset | ( | ) |
void SWGSDRangel::SWGPreset::init | ( | ) |
Definition at line 58 of file SWGPreset.cpp.
References center_frequency, channel_configs, dc_offset_correction, description, device_configs, group, iq_imbalance_correction, layout, m_center_frequency_isSet, m_channel_configs_isSet, m_dc_offset_correction_isSet, m_description_isSet, m_device_configs_isSet, m_group_isSet, m_iq_imbalance_correction_isSet, m_layout_isSet, m_m_spectrum_config_isSet, m_source_preset_isSet, m_spectrum_config, and source_preset.
Referenced by SWGPreset(), and WebAPIAdapterBase::webapiFormatPreset().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 298 of file SWGPreset.cpp.
References channel_configs, description, device_configs, group, SWGSDRangel::SWGGLSpectrum::isSet(), layout, m_center_frequency_isSet, m_dc_offset_correction_isSet, m_iq_imbalance_correction_isSet, m_source_preset_isSet, and m_spectrum_config.
Referenced by SWGSDRangel::SWGInstanceConfigResponse::asJsonObject(), and SWGSDRangel::SWGInstanceConfigResponse::isSet().
void SWGSDRangel::SWGPreset::setCenterFrequency | ( | qint64 | center_frequency | ) |
Definition at line 231 of file SWGPreset.cpp.
References center_frequency, and m_center_frequency_isSet.
Referenced by WebAPIAdapterBase::webapiFormatPreset().
void SWGSDRangel::SWGPreset::setChannelConfigs | ( | QList< SWGChannelConfig *> * | channel_configs | ) |
Definition at line 271 of file SWGPreset.cpp.
References channel_configs, and m_channel_configs_isSet.
void SWGSDRangel::SWGPreset::setDcOffsetCorrection | ( | qint32 | dc_offset_correction | ) |
Definition at line 251 of file SWGPreset.cpp.
References dc_offset_correction, and m_dc_offset_correction_isSet.
Referenced by WebAPIAdapterBase::webapiFormatPreset().
void SWGSDRangel::SWGPreset::setDescription | ( | QString * | description | ) |
Definition at line 221 of file SWGPreset.cpp.
References description, and m_description_isSet.
Referenced by WebAPIAdapterBase::webapiFormatPreset().
void SWGSDRangel::SWGPreset::setDeviceConfigs | ( | QList< SWGDeviceConfig *> * | device_configs | ) |
Definition at line 281 of file SWGPreset.cpp.
References device_configs, and m_device_configs_isSet.
void SWGSDRangel::SWGPreset::setGroup | ( | QString * | group | ) |
Definition at line 211 of file SWGPreset.cpp.
References group, and m_group_isSet.
Referenced by WebAPIAdapterBase::webapiFormatPreset().
void SWGSDRangel::SWGPreset::setIqImbalanceCorrection | ( | qint32 | iq_imbalance_correction | ) |
Definition at line 261 of file SWGPreset.cpp.
References iq_imbalance_correction, and m_iq_imbalance_correction_isSet.
Referenced by WebAPIAdapterBase::webapiFormatPreset().
void SWGSDRangel::SWGPreset::setLayout | ( | QString * | layout | ) |
void SWGSDRangel::SWGPreset::setMSpectrumConfig | ( | SWGGLSpectrum * | m_spectrum_config | ) |
Definition at line 241 of file SWGPreset.cpp.
References m_m_spectrum_config_isSet, and m_spectrum_config.
void SWGSDRangel::SWGPreset::setSourcePreset | ( | qint32 | source_preset | ) |
Definition at line 201 of file SWGPreset.cpp.
References m_source_preset_isSet, and source_preset.
Referenced by WebAPIAdapterBase::webapiFormatPreset().
|
private |
Definition at line 92 of file SWGPreset.h.
Referenced by asJsonObject(), fromJsonObject(), getCenterFrequency(), init(), setCenterFrequency(), and SWGPreset().
|
private |
Definition at line 104 of file SWGPreset.h.
Referenced by asJsonObject(), cleanup(), fromJsonObject(), getChannelConfigs(), init(), isSet(), setChannelConfigs(), and SWGPreset().
|
private |
Definition at line 98 of file SWGPreset.h.
Referenced by asJsonObject(), fromJsonObject(), getDcOffsetCorrection(), init(), setDcOffsetCorrection(), and SWGPreset().
|
private |
Definition at line 89 of file SWGPreset.h.
Referenced by asJsonObject(), cleanup(), fromJsonObject(), getDescription(), init(), isSet(), setDescription(), and SWGPreset().
|
private |
Definition at line 107 of file SWGPreset.h.
Referenced by asJsonObject(), cleanup(), fromJsonObject(), getDeviceConfigs(), init(), isSet(), setDeviceConfigs(), and SWGPreset().
|
private |
Definition at line 86 of file SWGPreset.h.
Referenced by asJsonObject(), cleanup(), fromJsonObject(), getGroup(), init(), isSet(), setGroup(), and SWGPreset().
|
private |
Definition at line 101 of file SWGPreset.h.
Referenced by asJsonObject(), fromJsonObject(), getIqImbalanceCorrection(), init(), setIqImbalanceCorrection(), and SWGPreset().
|
private |
Definition at line 110 of file SWGPreset.h.
Referenced by asJsonObject(), cleanup(), fromJsonObject(), getLayout(), init(), isSet(), setLayout(), and SWGPreset().
|
private |
Definition at line 93 of file SWGPreset.h.
Referenced by asJsonObject(), init(), isSet(), setCenterFrequency(), and SWGPreset().
|
private |
Definition at line 105 of file SWGPreset.h.
Referenced by init(), setChannelConfigs(), and SWGPreset().
|
private |
Definition at line 99 of file SWGPreset.h.
Referenced by asJsonObject(), init(), isSet(), setDcOffsetCorrection(), and SWGPreset().
|
private |
Definition at line 90 of file SWGPreset.h.
Referenced by init(), setDescription(), and SWGPreset().
|
private |
Definition at line 108 of file SWGPreset.h.
Referenced by init(), setDeviceConfigs(), and SWGPreset().
|
private |
Definition at line 87 of file SWGPreset.h.
Referenced by init(), setGroup(), and SWGPreset().
|
private |
Definition at line 102 of file SWGPreset.h.
Referenced by asJsonObject(), init(), isSet(), setIqImbalanceCorrection(), and SWGPreset().
|
private |
Definition at line 111 of file SWGPreset.h.
Referenced by init(), setLayout(), and SWGPreset().
|
private |
Definition at line 96 of file SWGPreset.h.
Referenced by init(), setMSpectrumConfig(), and SWGPreset().
|
private |
Definition at line 84 of file SWGPreset.h.
Referenced by asJsonObject(), init(), isSet(), setSourcePreset(), and SWGPreset().
|
private |
Definition at line 95 of file SWGPreset.h.
Referenced by asJsonObject(), cleanup(), fromJsonObject(), getMSpectrumConfig(), init(), isSet(), setMSpectrumConfig(), and SWGPreset().
|
private |
Definition at line 83 of file SWGPreset.h.
Referenced by asJsonObject(), fromJsonObject(), getSourcePreset(), init(), setSourcePreset(), and SWGPreset().