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 <SWGNFMDemodReport.h>
Public Member Functions | |
SWGNFMDemodReport () | |
SWGNFMDemodReport (QString *json) | |
virtual | ~SWGNFMDemodReport () |
void | init () |
void | cleanup () |
virtual QString | asJson () override |
virtual QJsonObject * | asJsonObject () override |
virtual void | fromJsonObject (QJsonObject &json) override |
virtual SWGNFMDemodReport * | fromJson (QString &jsonString) override |
float | getChannelPowerDb () |
void | setChannelPowerDb (float channel_power_db) |
float | getCtcssTone () |
void | setCtcssTone (float ctcss_tone) |
qint32 | getSquelch () |
void | setSquelch (qint32 squelch) |
qint32 | getAudioSampleRate () |
void | setAudioSampleRate (qint32 audio_sample_rate) |
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 | ctcss_tone |
bool | m_ctcss_tone_isSet |
qint32 | squelch |
bool | m_squelch_isSet |
qint32 | audio_sample_rate |
bool | m_audio_sample_rate_isSet |
qint32 | channel_sample_rate |
bool | m_channel_sample_rate_isSet |
Definition at line 31 of file SWGNFMDemodReport.h.
SWGSDRangel::SWGNFMDemodReport::SWGNFMDemodReport | ( | ) |
Definition at line 30 of file SWGNFMDemodReport.cpp.
References audio_sample_rate, channel_power_db, channel_sample_rate, ctcss_tone, m_audio_sample_rate_isSet, m_channel_power_db_isSet, m_channel_sample_rate_isSet, m_ctcss_tone_isSet, m_squelch_isSet, and squelch.
SWGSDRangel::SWGNFMDemodReport::SWGNFMDemodReport | ( | QString * | json | ) |
Definition at line 25 of file SWGNFMDemodReport.cpp.
References fromJson(), and init().
|
virtual |
Definition at line 43 of file SWGNFMDemodReport.cpp.
References cleanup().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 94 of file SWGNFMDemodReport.cpp.
References asJsonObject().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 105 of file SWGNFMDemodReport.cpp.
References audio_sample_rate, channel_power_db, channel_sample_rate, ctcss_tone, m_audio_sample_rate_isSet, m_channel_power_db_isSet, m_channel_sample_rate_isSet, m_ctcss_tone_isSet, m_squelch_isSet, and squelch.
Referenced by asJson().
void SWGSDRangel::SWGNFMDemodReport::cleanup | ( | ) |
Definition at line 62 of file SWGNFMDemodReport.cpp.
Referenced by ~SWGNFMDemodReport().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 71 of file SWGNFMDemodReport.cpp.
References fromJsonObject().
Referenced by SWGNFMDemodReport().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 80 of file SWGNFMDemodReport.cpp.
References audio_sample_rate, channel_power_db, channel_sample_rate, ctcss_tone, SWGSDRangel::setValue(), and squelch.
Referenced by fromJson().
qint32 SWGSDRangel::SWGNFMDemodReport::getAudioSampleRate | ( | ) |
Definition at line 157 of file SWGNFMDemodReport.cpp.
References audio_sample_rate.
float SWGSDRangel::SWGNFMDemodReport::getChannelPowerDb | ( | ) |
Definition at line 127 of file SWGNFMDemodReport.cpp.
References channel_power_db.
qint32 SWGSDRangel::SWGNFMDemodReport::getChannelSampleRate | ( | ) |
Definition at line 167 of file SWGNFMDemodReport.cpp.
References channel_sample_rate.
float SWGSDRangel::SWGNFMDemodReport::getCtcssTone | ( | ) |
qint32 SWGSDRangel::SWGNFMDemodReport::getSquelch | ( | ) |
void SWGSDRangel::SWGNFMDemodReport::init | ( | ) |
Definition at line 48 of file SWGNFMDemodReport.cpp.
References audio_sample_rate, channel_power_db, channel_sample_rate, ctcss_tone, m_audio_sample_rate_isSet, m_channel_power_db_isSet, m_channel_sample_rate_isSet, m_ctcss_tone_isSet, m_squelch_isSet, and squelch.
Referenced by SWGNFMDemodReport(), and NFMDemod::webapiReportGet().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 178 of file SWGNFMDemodReport.cpp.
References m_audio_sample_rate_isSet, m_channel_power_db_isSet, m_channel_sample_rate_isSet, m_ctcss_tone_isSet, and m_squelch_isSet.
Referenced by SWGSDRangel::SWGChannelReport::asJsonObject(), and SWGSDRangel::SWGChannelReport::isSet().
void SWGSDRangel::SWGNFMDemodReport::setAudioSampleRate | ( | qint32 | audio_sample_rate | ) |
Definition at line 161 of file SWGNFMDemodReport.cpp.
References audio_sample_rate, and m_audio_sample_rate_isSet.
Referenced by NFMDemod::webapiFormatChannelReport().
void SWGSDRangel::SWGNFMDemodReport::setChannelPowerDb | ( | float | channel_power_db | ) |
Definition at line 131 of file SWGNFMDemodReport.cpp.
References channel_power_db, and m_channel_power_db_isSet.
Referenced by NFMDemod::webapiFormatChannelReport().
void SWGSDRangel::SWGNFMDemodReport::setChannelSampleRate | ( | qint32 | channel_sample_rate | ) |
Definition at line 171 of file SWGNFMDemodReport.cpp.
References channel_sample_rate, and m_channel_sample_rate_isSet.
Referenced by NFMDemod::webapiFormatChannelReport().
void SWGSDRangel::SWGNFMDemodReport::setCtcssTone | ( | float | ctcss_tone | ) |
Definition at line 141 of file SWGNFMDemodReport.cpp.
References ctcss_tone, and m_ctcss_tone_isSet.
Referenced by NFMDemod::webapiFormatChannelReport().
void SWGSDRangel::SWGNFMDemodReport::setSquelch | ( | qint32 | squelch | ) |
Definition at line 151 of file SWGNFMDemodReport.cpp.
References m_squelch_isSet, and squelch.
Referenced by NFMDemod::webapiFormatChannelReport().
|
private |
Definition at line 72 of file SWGNFMDemodReport.h.
Referenced by asJsonObject(), fromJsonObject(), getAudioSampleRate(), init(), setAudioSampleRate(), and SWGNFMDemodReport().
|
private |
Definition at line 63 of file SWGNFMDemodReport.h.
Referenced by asJsonObject(), fromJsonObject(), getChannelPowerDb(), init(), setChannelPowerDb(), and SWGNFMDemodReport().
|
private |
Definition at line 75 of file SWGNFMDemodReport.h.
Referenced by asJsonObject(), fromJsonObject(), getChannelSampleRate(), init(), setChannelSampleRate(), and SWGNFMDemodReport().
|
private |
Definition at line 66 of file SWGNFMDemodReport.h.
Referenced by asJsonObject(), fromJsonObject(), getCtcssTone(), init(), setCtcssTone(), and SWGNFMDemodReport().
|
private |
Definition at line 73 of file SWGNFMDemodReport.h.
Referenced by asJsonObject(), init(), isSet(), setAudioSampleRate(), and SWGNFMDemodReport().
|
private |
Definition at line 64 of file SWGNFMDemodReport.h.
Referenced by asJsonObject(), init(), isSet(), setChannelPowerDb(), and SWGNFMDemodReport().
|
private |
Definition at line 76 of file SWGNFMDemodReport.h.
Referenced by asJsonObject(), init(), isSet(), setChannelSampleRate(), and SWGNFMDemodReport().
|
private |
Definition at line 67 of file SWGNFMDemodReport.h.
Referenced by asJsonObject(), init(), isSet(), setCtcssTone(), and SWGNFMDemodReport().
|
private |
Definition at line 70 of file SWGNFMDemodReport.h.
Referenced by asJsonObject(), init(), isSet(), setSquelch(), and SWGNFMDemodReport().
|
private |
Definition at line 69 of file SWGNFMDemodReport.h.
Referenced by asJsonObject(), fromJsonObject(), getSquelch(), init(), setSquelch(), and SWGNFMDemodReport().