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 <SWGAMModReport.h>
Public Member Functions | |
SWGAMModReport () | |
SWGAMModReport (QString *json) | |
virtual | ~SWGAMModReport () |
void | init () |
void | cleanup () |
virtual QString | asJson () override |
virtual QJsonObject * | asJsonObject () override |
virtual void | fromJsonObject (QJsonObject &json) override |
virtual SWGAMModReport * | fromJson (QString &jsonString) override |
float | getChannelPowerDb () |
void | setChannelPowerDb (float channel_power_db) |
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 |
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 SWGAMModReport.h.
SWGSDRangel::SWGAMModReport::SWGAMModReport | ( | ) |
Definition at line 30 of file SWGAMModReport.cpp.
References audio_sample_rate, channel_power_db, channel_sample_rate, m_audio_sample_rate_isSet, m_channel_power_db_isSet, and m_channel_sample_rate_isSet.
SWGSDRangel::SWGAMModReport::SWGAMModReport | ( | QString * | json | ) |
Definition at line 25 of file SWGAMModReport.cpp.
References fromJson(), and init().
|
virtual |
Definition at line 39 of file SWGAMModReport.cpp.
References cleanup().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 80 of file SWGAMModReport.cpp.
References asJsonObject().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 91 of file SWGAMModReport.cpp.
References audio_sample_rate, channel_power_db, channel_sample_rate, m_audio_sample_rate_isSet, m_channel_power_db_isSet, and m_channel_sample_rate_isSet.
Referenced by asJson().
void SWGSDRangel::SWGAMModReport::cleanup | ( | ) |
Definition at line 54 of file SWGAMModReport.cpp.
Referenced by ~SWGAMModReport().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 61 of file SWGAMModReport.cpp.
References fromJsonObject().
Referenced by SWGAMModReport().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 70 of file SWGAMModReport.cpp.
References audio_sample_rate, channel_power_db, channel_sample_rate, and SWGSDRangel::setValue().
Referenced by fromJson().
qint32 SWGSDRangel::SWGAMModReport::getAudioSampleRate | ( | ) |
Definition at line 117 of file SWGAMModReport.cpp.
References audio_sample_rate.
float SWGSDRangel::SWGAMModReport::getChannelPowerDb | ( | ) |
qint32 SWGSDRangel::SWGAMModReport::getChannelSampleRate | ( | ) |
Definition at line 127 of file SWGAMModReport.cpp.
References channel_sample_rate.
void SWGSDRangel::SWGAMModReport::init | ( | ) |
Definition at line 44 of file SWGAMModReport.cpp.
References audio_sample_rate, channel_power_db, channel_sample_rate, m_audio_sample_rate_isSet, m_channel_power_db_isSet, and m_channel_sample_rate_isSet.
Referenced by SWGAMModReport(), and AMMod::webapiReportGet().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 138 of file SWGAMModReport.cpp.
References m_audio_sample_rate_isSet, m_channel_power_db_isSet, and m_channel_sample_rate_isSet.
Referenced by SWGSDRangel::SWGChannelReport::asJsonObject(), and SWGSDRangel::SWGChannelReport::isSet().
void SWGSDRangel::SWGAMModReport::setAudioSampleRate | ( | qint32 | audio_sample_rate | ) |
Definition at line 121 of file SWGAMModReport.cpp.
References audio_sample_rate, and m_audio_sample_rate_isSet.
Referenced by AMMod::webapiFormatChannelReport().
void SWGSDRangel::SWGAMModReport::setChannelPowerDb | ( | float | channel_power_db | ) |
Definition at line 111 of file SWGAMModReport.cpp.
References channel_power_db, and m_channel_power_db_isSet.
Referenced by AMMod::webapiFormatChannelReport().
void SWGSDRangel::SWGAMModReport::setChannelSampleRate | ( | qint32 | channel_sample_rate | ) |
Definition at line 131 of file SWGAMModReport.cpp.
References channel_sample_rate, and m_channel_sample_rate_isSet.
Referenced by AMMod::webapiFormatChannelReport().
|
private |
Definition at line 60 of file SWGAMModReport.h.
Referenced by asJsonObject(), fromJsonObject(), getAudioSampleRate(), init(), setAudioSampleRate(), and SWGAMModReport().
|
private |
Definition at line 57 of file SWGAMModReport.h.
Referenced by asJsonObject(), fromJsonObject(), getChannelPowerDb(), init(), setChannelPowerDb(), and SWGAMModReport().
|
private |
Definition at line 63 of file SWGAMModReport.h.
Referenced by asJsonObject(), fromJsonObject(), getChannelSampleRate(), init(), setChannelSampleRate(), and SWGAMModReport().
|
private |
Definition at line 61 of file SWGAMModReport.h.
Referenced by asJsonObject(), init(), isSet(), setAudioSampleRate(), and SWGAMModReport().
|
private |
Definition at line 58 of file SWGAMModReport.h.
Referenced by asJsonObject(), init(), isSet(), setChannelPowerDb(), and SWGAMModReport().
|
private |
Definition at line 64 of file SWGAMModReport.h.
Referenced by asJsonObject(), init(), isSet(), setChannelSampleRate(), and SWGAMModReport().