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 <SWGUDPSinkReport.h>
Public Member Functions | |
SWGUDPSinkReport () | |
SWGUDPSinkReport (QString *json) | |
virtual | ~SWGUDPSinkReport () |
void | init () |
void | cleanup () |
virtual QString | asJson () override |
virtual QJsonObject * | asJsonObject () override |
virtual void | fromJsonObject (QJsonObject &json) override |
virtual SWGUDPSinkReport * | fromJson (QString &jsonString) override |
float | getOutputPowerDb () |
void | setOutputPowerDb (float output_power_db) |
float | getChannelPowerDb () |
void | setChannelPowerDb (float channel_power_db) |
qint32 | getSquelch () |
void | setSquelch (qint32 squelch) |
qint32 | getInputSampleRate () |
void | setInputSampleRate (qint32 input_sample_rate) |
virtual bool | isSet () override |
Public Member Functions inherited from SWGSDRangel::SWGObject | |
virtual | ~SWGObject () |
Private Attributes | |
float | output_power_db |
bool | m_output_power_db_isSet |
float | channel_power_db |
bool | m_channel_power_db_isSet |
qint32 | squelch |
bool | m_squelch_isSet |
qint32 | input_sample_rate |
bool | m_input_sample_rate_isSet |
Definition at line 31 of file SWGUDPSinkReport.h.
SWGSDRangel::SWGUDPSinkReport::SWGUDPSinkReport | ( | ) |
Definition at line 30 of file SWGUDPSinkReport.cpp.
References channel_power_db, input_sample_rate, m_channel_power_db_isSet, m_input_sample_rate_isSet, m_output_power_db_isSet, m_squelch_isSet, output_power_db, and squelch.
SWGSDRangel::SWGUDPSinkReport::SWGUDPSinkReport | ( | QString * | json | ) |
Definition at line 25 of file SWGUDPSinkReport.cpp.
References fromJson(), and init().
|
virtual |
Definition at line 41 of file SWGUDPSinkReport.cpp.
References cleanup().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 87 of file SWGUDPSinkReport.cpp.
References asJsonObject().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 98 of file SWGUDPSinkReport.cpp.
References channel_power_db, input_sample_rate, m_channel_power_db_isSet, m_input_sample_rate_isSet, m_output_power_db_isSet, m_squelch_isSet, output_power_db, and squelch.
Referenced by asJson().
void SWGSDRangel::SWGUDPSinkReport::cleanup | ( | ) |
Definition at line 58 of file SWGUDPSinkReport.cpp.
Referenced by ~SWGUDPSinkReport().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 66 of file SWGUDPSinkReport.cpp.
References fromJsonObject().
Referenced by SWGUDPSinkReport().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 75 of file SWGUDPSinkReport.cpp.
References channel_power_db, input_sample_rate, output_power_db, SWGSDRangel::setValue(), and squelch.
Referenced by fromJson().
float SWGSDRangel::SWGUDPSinkReport::getChannelPowerDb | ( | ) |
Definition at line 127 of file SWGUDPSinkReport.cpp.
References channel_power_db.
qint32 SWGSDRangel::SWGUDPSinkReport::getInputSampleRate | ( | ) |
Definition at line 147 of file SWGUDPSinkReport.cpp.
References input_sample_rate.
float SWGSDRangel::SWGUDPSinkReport::getOutputPowerDb | ( | ) |
Definition at line 117 of file SWGUDPSinkReport.cpp.
References output_power_db.
qint32 SWGSDRangel::SWGUDPSinkReport::getSquelch | ( | ) |
void SWGSDRangel::SWGUDPSinkReport::init | ( | ) |
Definition at line 46 of file SWGUDPSinkReport.cpp.
References channel_power_db, input_sample_rate, m_channel_power_db_isSet, m_input_sample_rate_isSet, m_output_power_db_isSet, m_squelch_isSet, output_power_db, and squelch.
Referenced by SWGUDPSinkReport(), and UDPSink::webapiReportGet().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 158 of file SWGUDPSinkReport.cpp.
References m_channel_power_db_isSet, m_input_sample_rate_isSet, m_output_power_db_isSet, and m_squelch_isSet.
Referenced by SWGSDRangel::SWGChannelReport::asJsonObject(), and SWGSDRangel::SWGChannelReport::isSet().
void SWGSDRangel::SWGUDPSinkReport::setChannelPowerDb | ( | float | channel_power_db | ) |
Definition at line 131 of file SWGUDPSinkReport.cpp.
References channel_power_db, and m_channel_power_db_isSet.
Referenced by UDPSink::webapiFormatChannelReport().
void SWGSDRangel::SWGUDPSinkReport::setInputSampleRate | ( | qint32 | input_sample_rate | ) |
Definition at line 151 of file SWGUDPSinkReport.cpp.
References input_sample_rate, and m_input_sample_rate_isSet.
Referenced by UDPSink::webapiFormatChannelReport().
void SWGSDRangel::SWGUDPSinkReport::setOutputPowerDb | ( | float | output_power_db | ) |
Definition at line 121 of file SWGUDPSinkReport.cpp.
References m_output_power_db_isSet, and output_power_db.
Referenced by UDPSink::webapiFormatChannelReport().
void SWGSDRangel::SWGUDPSinkReport::setSquelch | ( | qint32 | squelch | ) |
Definition at line 141 of file SWGUDPSinkReport.cpp.
References m_squelch_isSet, and squelch.
Referenced by UDPSink::webapiFormatChannelReport().
|
private |
Definition at line 63 of file SWGUDPSinkReport.h.
Referenced by asJsonObject(), fromJsonObject(), getChannelPowerDb(), init(), setChannelPowerDb(), and SWGUDPSinkReport().
|
private |
Definition at line 69 of file SWGUDPSinkReport.h.
Referenced by asJsonObject(), fromJsonObject(), getInputSampleRate(), init(), setInputSampleRate(), and SWGUDPSinkReport().
|
private |
Definition at line 64 of file SWGUDPSinkReport.h.
Referenced by asJsonObject(), init(), isSet(), setChannelPowerDb(), and SWGUDPSinkReport().
|
private |
Definition at line 70 of file SWGUDPSinkReport.h.
Referenced by asJsonObject(), init(), isSet(), setInputSampleRate(), and SWGUDPSinkReport().
|
private |
Definition at line 61 of file SWGUDPSinkReport.h.
Referenced by asJsonObject(), init(), isSet(), setOutputPowerDb(), and SWGUDPSinkReport().
|
private |
Definition at line 67 of file SWGUDPSinkReport.h.
Referenced by asJsonObject(), init(), isSet(), setSquelch(), and SWGUDPSinkReport().
|
private |
Definition at line 60 of file SWGUDPSinkReport.h.
Referenced by asJsonObject(), fromJsonObject(), getOutputPowerDb(), init(), setOutputPowerDb(), and SWGUDPSinkReport().
|
private |
Definition at line 66 of file SWGUDPSinkReport.h.
Referenced by asJsonObject(), fromJsonObject(), getSquelch(), init(), setSquelch(), and SWGUDPSinkReport().