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 <SWGPresetTransfer.h>
Public Member Functions | |
SWGPresetTransfer () | |
SWGPresetTransfer (QString *json) | |
virtual | ~SWGPresetTransfer () |
void | init () |
void | cleanup () |
virtual QString | asJson () override |
virtual QJsonObject * | asJsonObject () override |
virtual void | fromJsonObject (QJsonObject &json) override |
virtual SWGPresetTransfer * | fromJson (QString &jsonString) override |
qint32 | getDeviceSetIndex () |
void | setDeviceSetIndex (qint32 device_set_index) |
SWGPresetIdentifier * | getPreset () |
void | setPreset (SWGPresetIdentifier *preset) |
virtual bool | isSet () override |
Public Member Functions inherited from SWGSDRangel::SWGObject | |
virtual | ~SWGObject () |
Private Attributes | |
qint32 | device_set_index |
bool | m_device_set_index_isSet |
SWGPresetIdentifier * | preset |
bool | m_preset_isSet |
Definition at line 32 of file SWGPresetTransfer.h.
SWGSDRangel::SWGPresetTransfer::SWGPresetTransfer | ( | ) |
Definition at line 30 of file SWGPresetTransfer.cpp.
References device_set_index, m_device_set_index_isSet, m_preset_isSet, and preset.
SWGSDRangel::SWGPresetTransfer::SWGPresetTransfer | ( | QString * | json | ) |
Definition at line 25 of file SWGPresetTransfer.cpp.
References fromJson(), and init().
|
virtual |
Definition at line 37 of file SWGPresetTransfer.cpp.
References cleanup().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 75 of file SWGPresetTransfer.cpp.
References asJsonObject().
Referenced by SWGSDRangel::SWGInstanceApi::instancePresetPatch(), SWGSDRangel::SWGInstanceApi::instancePresetPost(), and SWGSDRangel::SWGInstanceApi::instancePresetPut().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 86 of file SWGPresetTransfer.cpp.
References device_set_index, SWGSDRangel::SWGPresetIdentifier::isSet(), m_device_set_index_isSet, preset, and SWGSDRangel::toJsonValue().
Referenced by asJson().
void SWGSDRangel::SWGPresetTransfer::cleanup | ( | ) |
Definition at line 50 of file SWGPresetTransfer.cpp.
References preset.
Referenced by ~SWGPresetTransfer().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 58 of file SWGPresetTransfer.cpp.
References fromJsonObject().
Referenced by WebAPIRequestMapper::instancePresetService(), and SWGPresetTransfer().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 67 of file SWGPresetTransfer.cpp.
References device_set_index, preset, and SWGSDRangel::setValue().
Referenced by fromJson().
qint32 SWGSDRangel::SWGPresetTransfer::getDeviceSetIndex | ( | ) |
Definition at line 99 of file SWGPresetTransfer.cpp.
References device_set_index.
Referenced by WebAPIAdapterGUI::instancePresetPatch(), WebAPIAdapterSrv::instancePresetPatch(), WebAPIAdapterGUI::instancePresetPost(), WebAPIAdapterSrv::instancePresetPost(), WebAPIAdapterGUI::instancePresetPut(), and WebAPIAdapterSrv::instancePresetPut().
SWGPresetIdentifier * SWGSDRangel::SWGPresetTransfer::getPreset | ( | ) |
Definition at line 109 of file SWGPresetTransfer.cpp.
References preset.
Referenced by WebAPIAdapterGUI::instancePresetPatch(), WebAPIAdapterSrv::instancePresetPatch(), WebAPIAdapterGUI::instancePresetPost(), WebAPIAdapterSrv::instancePresetPost(), WebAPIAdapterGUI::instancePresetPut(), WebAPIAdapterSrv::instancePresetPut(), and WebAPIRequestMapper::validatePresetTransfer().
void SWGSDRangel::SWGPresetTransfer::init | ( | ) |
Definition at line 42 of file SWGPresetTransfer.cpp.
References device_set_index, m_device_set_index_isSet, m_preset_isSet, and preset.
Referenced by SWGPresetTransfer().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 120 of file SWGPresetTransfer.cpp.
References SWGSDRangel::SWGPresetIdentifier::isSet(), m_device_set_index_isSet, and preset.
void SWGSDRangel::SWGPresetTransfer::setDeviceSetIndex | ( | qint32 | device_set_index | ) |
Definition at line 103 of file SWGPresetTransfer.cpp.
References device_set_index, and m_device_set_index_isSet.
void SWGSDRangel::SWGPresetTransfer::setPreset | ( | SWGPresetIdentifier * | preset | ) |
Definition at line 113 of file SWGPresetTransfer.cpp.
References m_preset_isSet, and preset.
|
private |
Definition at line 55 of file SWGPresetTransfer.h.
Referenced by asJsonObject(), fromJsonObject(), getDeviceSetIndex(), init(), setDeviceSetIndex(), and SWGPresetTransfer().
|
private |
Definition at line 56 of file SWGPresetTransfer.h.
Referenced by asJsonObject(), init(), isSet(), setDeviceSetIndex(), and SWGPresetTransfer().
|
private |
Definition at line 59 of file SWGPresetTransfer.h.
Referenced by init(), setPreset(), and SWGPresetTransfer().
|
private |
Definition at line 58 of file SWGPresetTransfer.h.
Referenced by asJsonObject(), cleanup(), fromJsonObject(), getPreset(), init(), isSet(), setPreset(), and SWGPresetTransfer().