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 <SWGUDPSourceReport.h>
Public Member Functions | |
SWGUDPSourceReport () | |
SWGUDPSourceReport (QString *json) | |
virtual | ~SWGUDPSourceReport () |
void | init () |
void | cleanup () |
virtual QString | asJson () override |
virtual QJsonObject * | asJsonObject () override |
virtual void | fromJsonObject (QJsonObject &json) override |
virtual SWGUDPSourceReport * | fromJson (QString &jsonString) override |
float | getChannelPowerDb () |
void | setChannelPowerDb (float channel_power_db) |
float | getInputPowerDb () |
void | setInputPowerDb (float input_power_db) |
qint32 | getSquelch () |
void | setSquelch (qint32 squelch) |
qint32 | getBufferGauge () |
void | setBufferGauge (qint32 buffer_gauge) |
qint32 | getChannelSampleRate () |
void | setChannelSampleRate (qint32 channel_sample_rate) |
virtual bool | isSet () override |
Public Member Functions inherited from SWGSDRangel::SWGObject | |
virtual | ~SWGObject () |
Private Attributes | |
float | channel_power_db |
bool | m_channel_power_db_isSet |
float | input_power_db |
bool | m_input_power_db_isSet |
qint32 | squelch |
bool | m_squelch_isSet |
qint32 | buffer_gauge |
bool | m_buffer_gauge_isSet |
qint32 | channel_sample_rate |
bool | m_channel_sample_rate_isSet |
Definition at line 31 of file SWGUDPSourceReport.h.
SWGSDRangel::SWGUDPSourceReport::SWGUDPSourceReport | ( | ) |
Definition at line 30 of file SWGUDPSourceReport.cpp.
References buffer_gauge, channel_power_db, channel_sample_rate, input_power_db, m_buffer_gauge_isSet, m_channel_power_db_isSet, m_channel_sample_rate_isSet, m_input_power_db_isSet, m_squelch_isSet, and squelch.
SWGSDRangel::SWGUDPSourceReport::SWGUDPSourceReport | ( | QString * | json | ) |
Definition at line 25 of file SWGUDPSourceReport.cpp.
References fromJson(), and init().
|
virtual |
Definition at line 43 of file SWGUDPSourceReport.cpp.
References cleanup().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 94 of file SWGUDPSourceReport.cpp.
References asJsonObject().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 105 of file SWGUDPSourceReport.cpp.
References buffer_gauge, channel_power_db, channel_sample_rate, input_power_db, m_buffer_gauge_isSet, m_channel_power_db_isSet, m_channel_sample_rate_isSet, m_input_power_db_isSet, m_squelch_isSet, and squelch.
Referenced by asJson().
void SWGSDRangel::SWGUDPSourceReport::cleanup | ( | ) |
Definition at line 62 of file SWGUDPSourceReport.cpp.
Referenced by ~SWGUDPSourceReport().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 71 of file SWGUDPSourceReport.cpp.
References fromJsonObject().
Referenced by SWGUDPSourceReport().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 80 of file SWGUDPSourceReport.cpp.
References buffer_gauge, channel_power_db, channel_sample_rate, input_power_db, SWGSDRangel::setValue(), and squelch.
Referenced by fromJson().
qint32 SWGSDRangel::SWGUDPSourceReport::getBufferGauge | ( | ) |
float SWGSDRangel::SWGUDPSourceReport::getChannelPowerDb | ( | ) |
Definition at line 127 of file SWGUDPSourceReport.cpp.
References channel_power_db.
qint32 SWGSDRangel::SWGUDPSourceReport::getChannelSampleRate | ( | ) |
Definition at line 167 of file SWGUDPSourceReport.cpp.
References channel_sample_rate.
float SWGSDRangel::SWGUDPSourceReport::getInputPowerDb | ( | ) |
Definition at line 137 of file SWGUDPSourceReport.cpp.
References input_power_db.
qint32 SWGSDRangel::SWGUDPSourceReport::getSquelch | ( | ) |
void SWGSDRangel::SWGUDPSourceReport::init | ( | ) |
Definition at line 48 of file SWGUDPSourceReport.cpp.
References buffer_gauge, channel_power_db, channel_sample_rate, input_power_db, m_buffer_gauge_isSet, m_channel_power_db_isSet, m_channel_sample_rate_isSet, m_input_power_db_isSet, m_squelch_isSet, and squelch.
Referenced by SWGUDPSourceReport(), and UDPSource::webapiReportGet().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 178 of file SWGUDPSourceReport.cpp.
References m_buffer_gauge_isSet, m_channel_power_db_isSet, m_channel_sample_rate_isSet, m_input_power_db_isSet, and m_squelch_isSet.
Referenced by SWGSDRangel::SWGChannelReport::asJsonObject(), and SWGSDRangel::SWGChannelReport::isSet().
void SWGSDRangel::SWGUDPSourceReport::setBufferGauge | ( | qint32 | buffer_gauge | ) |
Definition at line 161 of file SWGUDPSourceReport.cpp.
References buffer_gauge, and m_buffer_gauge_isSet.
Referenced by UDPSource::webapiFormatChannelReport().
void SWGSDRangel::SWGUDPSourceReport::setChannelPowerDb | ( | float | channel_power_db | ) |
Definition at line 131 of file SWGUDPSourceReport.cpp.
References channel_power_db, and m_channel_power_db_isSet.
Referenced by UDPSource::webapiFormatChannelReport().
void SWGSDRangel::SWGUDPSourceReport::setChannelSampleRate | ( | qint32 | channel_sample_rate | ) |
Definition at line 171 of file SWGUDPSourceReport.cpp.
References channel_sample_rate, and m_channel_sample_rate_isSet.
Referenced by UDPSource::webapiFormatChannelReport().
void SWGSDRangel::SWGUDPSourceReport::setInputPowerDb | ( | float | input_power_db | ) |
Definition at line 141 of file SWGUDPSourceReport.cpp.
References input_power_db, and m_input_power_db_isSet.
Referenced by UDPSource::webapiFormatChannelReport().
void SWGSDRangel::SWGUDPSourceReport::setSquelch | ( | qint32 | squelch | ) |
Definition at line 151 of file SWGUDPSourceReport.cpp.
References m_squelch_isSet, and squelch.
Referenced by UDPSource::webapiFormatChannelReport().
|
private |
Definition at line 72 of file SWGUDPSourceReport.h.
Referenced by asJsonObject(), fromJsonObject(), getBufferGauge(), init(), setBufferGauge(), and SWGUDPSourceReport().
|
private |
Definition at line 63 of file SWGUDPSourceReport.h.
Referenced by asJsonObject(), fromJsonObject(), getChannelPowerDb(), init(), setChannelPowerDb(), and SWGUDPSourceReport().
|
private |
Definition at line 75 of file SWGUDPSourceReport.h.
Referenced by asJsonObject(), fromJsonObject(), getChannelSampleRate(), init(), setChannelSampleRate(), and SWGUDPSourceReport().
|
private |
Definition at line 66 of file SWGUDPSourceReport.h.
Referenced by asJsonObject(), fromJsonObject(), getInputPowerDb(), init(), setInputPowerDb(), and SWGUDPSourceReport().
|
private |
Definition at line 73 of file SWGUDPSourceReport.h.
Referenced by asJsonObject(), init(), isSet(), setBufferGauge(), and SWGUDPSourceReport().
|
private |
Definition at line 64 of file SWGUDPSourceReport.h.
Referenced by asJsonObject(), init(), isSet(), setChannelPowerDb(), and SWGUDPSourceReport().
|
private |
Definition at line 76 of file SWGUDPSourceReport.h.
Referenced by asJsonObject(), init(), isSet(), setChannelSampleRate(), and SWGUDPSourceReport().
|
private |
Definition at line 67 of file SWGUDPSourceReport.h.
Referenced by asJsonObject(), init(), isSet(), setInputPowerDb(), and SWGUDPSourceReport().
|
private |
Definition at line 70 of file SWGUDPSourceReport.h.
Referenced by asJsonObject(), init(), isSet(), setSquelch(), and SWGUDPSourceReport().
|
private |
Definition at line 69 of file SWGUDPSourceReport.h.
Referenced by asJsonObject(), fromJsonObject(), getSquelch(), init(), setSquelch(), and SWGUDPSourceReport().