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 <SWGAudioInputDevice.h>
Public Member Functions | |
SWGAudioInputDevice () | |
SWGAudioInputDevice (QString *json) | |
virtual | ~SWGAudioInputDevice () |
void | init () |
void | cleanup () |
virtual QString | asJson () override |
virtual QJsonObject * | asJsonObject () override |
virtual void | fromJsonObject (QJsonObject &json) override |
virtual SWGAudioInputDevice * | fromJson (QString &jsonString) override |
QString * | getName () |
void | setName (QString *name) |
qint32 | getIndex () |
void | setIndex (qint32 index) |
qint32 | getSampleRate () |
void | setSampleRate (qint32 sample_rate) |
qint32 | getIsSystemDefault () |
void | setIsSystemDefault (qint32 is_system_default) |
qint32 | getDefaultUnregistered () |
void | setDefaultUnregistered (qint32 default_unregistered) |
float | getVolume () |
void | setVolume (float volume) |
virtual bool | isSet () override |
Public Member Functions inherited from SWGSDRangel::SWGObject | |
virtual | ~SWGObject () |
Private Attributes | |
QString * | name |
bool | m_name_isSet |
qint32 | index |
bool | m_index_isSet |
qint32 | sample_rate |
bool | m_sample_rate_isSet |
qint32 | is_system_default |
bool | m_is_system_default_isSet |
qint32 | default_unregistered |
bool | m_default_unregistered_isSet |
float | volume |
bool | m_volume_isSet |
Definition at line 32 of file SWGAudioInputDevice.h.
SWGSDRangel::SWGAudioInputDevice::SWGAudioInputDevice | ( | ) |
Definition at line 30 of file SWGAudioInputDevice.cpp.
References default_unregistered, index, is_system_default, m_default_unregistered_isSet, m_index_isSet, m_is_system_default_isSet, m_name_isSet, m_sample_rate_isSet, m_volume_isSet, name, sample_rate, and volume.
SWGSDRangel::SWGAudioInputDevice::SWGAudioInputDevice | ( | QString * | json | ) |
Definition at line 25 of file SWGAudioInputDevice.cpp.
References fromJson(), and init().
|
virtual |
Definition at line 45 of file SWGAudioInputDevice.cpp.
References cleanup().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 103 of file SWGAudioInputDevice.cpp.
References asJsonObject().
Referenced by SWGSDRangel::SWGInstanceApi::instanceAudioInputDelete(), WebAPIRequestMapper::instanceAudioInputParametersService(), and SWGSDRangel::SWGInstanceApi::instanceAudioInputPatch().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 114 of file SWGAudioInputDevice.cpp.
References default_unregistered, index, is_system_default, m_default_unregistered_isSet, m_index_isSet, m_is_system_default_isSet, m_sample_rate_isSet, m_volume_isSet, name, sample_rate, SWGSDRangel::toJsonValue(), and volume.
Referenced by asJson().
void SWGSDRangel::SWGAudioInputDevice::cleanup | ( | ) |
Definition at line 66 of file SWGAudioInputDevice.cpp.
References name.
Referenced by WebAPIRequestMapper::resetAudioInputDevice(), and ~SWGAudioInputDevice().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 78 of file SWGAudioInputDevice.cpp.
References fromJsonObject().
Referenced by SWGAudioInputDevice().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 87 of file SWGAudioInputDevice.cpp.
References default_unregistered, index, is_system_default, name, sample_rate, SWGSDRangel::setValue(), and volume.
Referenced by fromJson().
qint32 SWGSDRangel::SWGAudioInputDevice::getDefaultUnregistered | ( | ) |
Definition at line 179 of file SWGAudioInputDevice.cpp.
References default_unregistered.
qint32 SWGSDRangel::SWGAudioInputDevice::getIndex | ( | ) |
Definition at line 149 of file SWGAudioInputDevice.cpp.
References index.
Referenced by WebAPIAdapterGUI::instanceAudioInputDelete(), WebAPIAdapterSrv::instanceAudioInputDelete(), WebAPIAdapterSrv::instanceAudioInputPatch(), and WebAPIAdapterGUI::instanceAudioInputPatch().
qint32 SWGSDRangel::SWGAudioInputDevice::getIsSystemDefault | ( | ) |
Definition at line 169 of file SWGAudioInputDevice.cpp.
References is_system_default.
QString * SWGSDRangel::SWGAudioInputDevice::getName | ( | ) |
qint32 SWGSDRangel::SWGAudioInputDevice::getSampleRate | ( | ) |
Definition at line 159 of file SWGAudioInputDevice.cpp.
References sample_rate.
Referenced by WebAPIAdapterGUI::instanceAudioInputPatch(), and WebAPIAdapterSrv::instanceAudioInputPatch().
float SWGSDRangel::SWGAudioInputDevice::getVolume | ( | ) |
Definition at line 189 of file SWGAudioInputDevice.cpp.
References volume.
Referenced by WebAPIAdapterGUI::instanceAudioInputPatch(), and WebAPIAdapterSrv::instanceAudioInputPatch().
void SWGSDRangel::SWGAudioInputDevice::init | ( | ) |
Definition at line 50 of file SWGAudioInputDevice.cpp.
References default_unregistered, index, is_system_default, m_default_unregistered_isSet, m_index_isSet, m_is_system_default_isSet, m_name_isSet, m_sample_rate_isSet, m_volume_isSet, name, sample_rate, and volume.
Referenced by SWGAudioInputDevice().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 200 of file SWGAudioInputDevice.cpp.
References m_default_unregistered_isSet, m_index_isSet, m_is_system_default_isSet, m_sample_rate_isSet, m_volume_isSet, and name.
void SWGSDRangel::SWGAudioInputDevice::setDefaultUnregistered | ( | qint32 | default_unregistered | ) |
Definition at line 183 of file SWGAudioInputDevice.cpp.
References default_unregistered, and m_default_unregistered_isSet.
void SWGSDRangel::SWGAudioInputDevice::setIndex | ( | qint32 | index | ) |
Definition at line 153 of file SWGAudioInputDevice.cpp.
References index, and m_index_isSet.
Referenced by WebAPIRequestMapper::validateAudioInputDevice().
void SWGSDRangel::SWGAudioInputDevice::setIsSystemDefault | ( | qint32 | is_system_default | ) |
Definition at line 173 of file SWGAudioInputDevice.cpp.
References is_system_default, and m_is_system_default_isSet.
void SWGSDRangel::SWGAudioInputDevice::setName | ( | QString * | name | ) |
Definition at line 143 of file SWGAudioInputDevice.cpp.
References m_name_isSet, and name.
Referenced by WebAPIRequestMapper::resetAudioInputDevice().
void SWGSDRangel::SWGAudioInputDevice::setSampleRate | ( | qint32 | sample_rate | ) |
Definition at line 163 of file SWGAudioInputDevice.cpp.
References m_sample_rate_isSet, and sample_rate.
Referenced by WebAPIAdapterGUI::instanceAudioInputDelete(), WebAPIAdapterSrv::instanceAudioInputDelete(), WebAPIAdapterSrv::instanceAudioInputPatch(), WebAPIAdapterGUI::instanceAudioInputPatch(), and WebAPIRequestMapper::validateAudioInputDevice().
void SWGSDRangel::SWGAudioInputDevice::setVolume | ( | float | volume | ) |
Definition at line 193 of file SWGAudioInputDevice.cpp.
References m_volume_isSet, and volume.
Referenced by WebAPIAdapterGUI::instanceAudioInputDelete(), WebAPIAdapterSrv::instanceAudioInputDelete(), WebAPIAdapterSrv::instanceAudioInputPatch(), WebAPIAdapterGUI::instanceAudioInputPatch(), and WebAPIRequestMapper::validateAudioInputDevice().
|
private |
Definition at line 79 of file SWGAudioInputDevice.h.
Referenced by asJsonObject(), fromJsonObject(), getDefaultUnregistered(), init(), setDefaultUnregistered(), and SWGAudioInputDevice().
|
private |
Definition at line 70 of file SWGAudioInputDevice.h.
Referenced by asJsonObject(), fromJsonObject(), getIndex(), init(), setIndex(), and SWGAudioInputDevice().
|
private |
Definition at line 76 of file SWGAudioInputDevice.h.
Referenced by asJsonObject(), fromJsonObject(), getIsSystemDefault(), init(), setIsSystemDefault(), and SWGAudioInputDevice().
|
private |
Definition at line 80 of file SWGAudioInputDevice.h.
Referenced by asJsonObject(), init(), isSet(), setDefaultUnregistered(), and SWGAudioInputDevice().
|
private |
Definition at line 71 of file SWGAudioInputDevice.h.
Referenced by asJsonObject(), init(), isSet(), setIndex(), and SWGAudioInputDevice().
|
private |
Definition at line 77 of file SWGAudioInputDevice.h.
Referenced by asJsonObject(), init(), isSet(), setIsSystemDefault(), and SWGAudioInputDevice().
|
private |
Definition at line 68 of file SWGAudioInputDevice.h.
Referenced by init(), setName(), and SWGAudioInputDevice().
|
private |
Definition at line 74 of file SWGAudioInputDevice.h.
Referenced by asJsonObject(), init(), isSet(), setSampleRate(), and SWGAudioInputDevice().
|
private |
Definition at line 83 of file SWGAudioInputDevice.h.
Referenced by asJsonObject(), init(), isSet(), setVolume(), and SWGAudioInputDevice().
|
private |
Definition at line 67 of file SWGAudioInputDevice.h.
Referenced by asJsonObject(), cleanup(), fromJsonObject(), getName(), init(), isSet(), setName(), and SWGAudioInputDevice().
|
private |
Definition at line 73 of file SWGAudioInputDevice.h.
Referenced by asJsonObject(), fromJsonObject(), getSampleRate(), init(), setSampleRate(), and SWGAudioInputDevice().
|
private |
Definition at line 82 of file SWGAudioInputDevice.h.
Referenced by asJsonObject(), fromJsonObject(), getVolume(), init(), setVolume(), and SWGAudioInputDevice().