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 <SWGAudioDevices.h>
Public Member Functions | |
SWGAudioDevices () | |
SWGAudioDevices (QString *json) | |
virtual | ~SWGAudioDevices () |
void | init () |
void | cleanup () |
virtual QString | asJson () override |
virtual QJsonObject * | asJsonObject () override |
virtual void | fromJsonObject (QJsonObject &json) override |
virtual SWGAudioDevices * | fromJson (QString &jsonString) override |
qint32 | getNbInputDevices () |
void | setNbInputDevices (qint32 nb_input_devices) |
QList< SWGAudioInputDevice * > * | getInputDevices () |
void | setInputDevices (QList< SWGAudioInputDevice *> *input_devices) |
qint32 | getNbOutputDevices () |
void | setNbOutputDevices (qint32 nb_output_devices) |
QList< SWGAudioOutputDevice * > * | getOutputDevices () |
void | setOutputDevices (QList< SWGAudioOutputDevice *> *output_devices) |
virtual bool | isSet () override |
Public Member Functions inherited from SWGSDRangel::SWGObject | |
virtual | ~SWGObject () |
Private Attributes | |
qint32 | nb_input_devices |
bool | m_nb_input_devices_isSet |
QList< SWGAudioInputDevice * > * | input_devices |
bool | m_input_devices_isSet |
qint32 | nb_output_devices |
bool | m_nb_output_devices_isSet |
QList< SWGAudioOutputDevice * > * | output_devices |
bool | m_output_devices_isSet |
Definition at line 34 of file SWGAudioDevices.h.
SWGSDRangel::SWGAudioDevices::SWGAudioDevices | ( | ) |
Definition at line 30 of file SWGAudioDevices.cpp.
References input_devices, m_input_devices_isSet, m_nb_input_devices_isSet, m_nb_output_devices_isSet, m_output_devices_isSet, nb_input_devices, nb_output_devices, and output_devices.
SWGSDRangel::SWGAudioDevices::SWGAudioDevices | ( | QString * | json | ) |
Definition at line 25 of file SWGAudioDevices.cpp.
References fromJson(), and init().
|
virtual |
Definition at line 41 of file SWGAudioDevices.cpp.
References cleanup().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 99 of file SWGAudioDevices.cpp.
References asJsonObject().
Referenced by WebAPIRequestMapper::instanceAudioService().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 110 of file SWGAudioDevices.cpp.
References input_devices, m_nb_input_devices_isSet, m_nb_output_devices_isSet, nb_input_devices, nb_output_devices, output_devices, and SWGSDRangel::toJsonArray().
Referenced by asJson().
void SWGSDRangel::SWGAudioDevices::cleanup | ( | ) |
Definition at line 58 of file SWGAudioDevices.cpp.
References input_devices, and output_devices.
Referenced by ~SWGAudioDevices().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 78 of file SWGAudioDevices.cpp.
References fromJsonObject().
Referenced by SWGAudioDevices().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 87 of file SWGAudioDevices.cpp.
References input_devices, nb_input_devices, nb_output_devices, output_devices, and SWGSDRangel::setValue().
Referenced by fromJson().
QList< SWGAudioInputDevice * > * SWGSDRangel::SWGAudioDevices::getInputDevices | ( | ) |
Definition at line 139 of file SWGAudioDevices.cpp.
References input_devices.
Referenced by WebAPIAdapterGUI::instanceAudioGet(), and WebAPIAdapterSrv::instanceAudioGet().
qint32 SWGSDRangel::SWGAudioDevices::getNbInputDevices | ( | ) |
Definition at line 129 of file SWGAudioDevices.cpp.
References nb_input_devices.
qint32 SWGSDRangel::SWGAudioDevices::getNbOutputDevices | ( | ) |
Definition at line 149 of file SWGAudioDevices.cpp.
References nb_output_devices.
QList< SWGAudioOutputDevice * > * SWGSDRangel::SWGAudioDevices::getOutputDevices | ( | ) |
Definition at line 159 of file SWGAudioDevices.cpp.
References output_devices.
Referenced by WebAPIAdapterGUI::instanceAudioGet(), and WebAPIAdapterSrv::instanceAudioGet().
void SWGSDRangel::SWGAudioDevices::init | ( | ) |
Definition at line 46 of file SWGAudioDevices.cpp.
References input_devices, m_input_devices_isSet, m_nb_input_devices_isSet, m_nb_output_devices_isSet, m_output_devices_isSet, nb_input_devices, nb_output_devices, and output_devices.
Referenced by WebAPIAdapterGUI::instanceAudioGet(), WebAPIAdapterSrv::instanceAudioGet(), and SWGAudioDevices().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 170 of file SWGAudioDevices.cpp.
References input_devices, m_nb_input_devices_isSet, m_nb_output_devices_isSet, and output_devices.
void SWGSDRangel::SWGAudioDevices::setInputDevices | ( | QList< SWGAudioInputDevice *> * | input_devices | ) |
Definition at line 143 of file SWGAudioDevices.cpp.
References input_devices, and m_input_devices_isSet.
void SWGSDRangel::SWGAudioDevices::setNbInputDevices | ( | qint32 | nb_input_devices | ) |
Definition at line 133 of file SWGAudioDevices.cpp.
References m_nb_input_devices_isSet, and nb_input_devices.
Referenced by WebAPIAdapterGUI::instanceAudioGet(), and WebAPIAdapterSrv::instanceAudioGet().
void SWGSDRangel::SWGAudioDevices::setNbOutputDevices | ( | qint32 | nb_output_devices | ) |
Definition at line 153 of file SWGAudioDevices.cpp.
References m_nb_output_devices_isSet, and nb_output_devices.
Referenced by WebAPIAdapterGUI::instanceAudioGet(), and WebAPIAdapterSrv::instanceAudioGet().
void SWGSDRangel::SWGAudioDevices::setOutputDevices | ( | QList< SWGAudioOutputDevice *> * | output_devices | ) |
Definition at line 163 of file SWGAudioDevices.cpp.
References m_output_devices_isSet, and output_devices.
|
private |
Definition at line 66 of file SWGAudioDevices.h.
Referenced by asJsonObject(), cleanup(), fromJsonObject(), getInputDevices(), init(), isSet(), setInputDevices(), and SWGAudioDevices().
|
private |
Definition at line 67 of file SWGAudioDevices.h.
Referenced by init(), setInputDevices(), and SWGAudioDevices().
|
private |
Definition at line 64 of file SWGAudioDevices.h.
Referenced by asJsonObject(), init(), isSet(), setNbInputDevices(), and SWGAudioDevices().
|
private |
Definition at line 70 of file SWGAudioDevices.h.
Referenced by asJsonObject(), init(), isSet(), setNbOutputDevices(), and SWGAudioDevices().
|
private |
Definition at line 73 of file SWGAudioDevices.h.
Referenced by init(), setOutputDevices(), and SWGAudioDevices().
|
private |
Definition at line 63 of file SWGAudioDevices.h.
Referenced by asJsonObject(), fromJsonObject(), getNbInputDevices(), init(), setNbInputDevices(), and SWGAudioDevices().
|
private |
Definition at line 69 of file SWGAudioDevices.h.
Referenced by asJsonObject(), fromJsonObject(), getNbOutputDevices(), init(), setNbOutputDevices(), and SWGAudioDevices().
|
private |
Definition at line 72 of file SWGAudioDevices.h.
Referenced by asJsonObject(), cleanup(), fromJsonObject(), getOutputDevices(), init(), isSet(), setOutputDevices(), and SWGAudioDevices().