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 <remotesourcesettings.h>
Public Member Functions | |
RemoteSourceSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
QString | m_dataAddress |
Listening (local) data address. More... | |
uint16_t | m_dataPort |
Listening data port. More... | |
quint32 | m_rgbColor |
QString | m_title |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
uint16_t | m_reverseAPIChannelIndex |
Serializable * | m_channelMarker |
Definition at line 26 of file remotesourcesettings.h.
RemoteSourceSettings::RemoteSourceSettings | ( | ) |
Definition at line 26 of file remotesourcesettings.cpp.
References resetToDefaults().
bool RemoteSourceSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 61 of file remotesourcesettings.cpp.
References SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_dataAddress, m_dataPort, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_title, m_useReverseAPI, SimpleDeserializer::readBool(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by RemoteSourceGUI::deserialize(), RemoteSource::deserialize(), and setChannelMarker().
void RemoteSourceSettings::resetToDefaults | ( | ) |
Definition at line 31 of file remotesourcesettings.cpp.
References m_channelMarker, m_dataAddress, m_dataPort, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_title, and m_useReverseAPI.
Referenced by deserialize(), RemoteSource::deserialize(), RemoteSourceSettings(), and RemoteSourceGUI::resetToDefaults().
QByteArray RemoteSourceSettings::serialize | ( | ) | const |
Definition at line 45 of file remotesourcesettings.cpp.
References SimpleSerializer::final(), m_dataAddress, m_dataPort, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_title, m_useReverseAPI, SimpleSerializer::writeBool(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by RemoteSourceGUI::serialize(), RemoteSource::serialize(), and setChannelMarker().
|
inline |
Definition at line 42 of file remotesourcesettings.h.
References deserialize(), and serialize().
Referenced by RemoteSourceGUI::RemoteSourceGUI().
Serializable* RemoteSourceSettings::m_channelMarker |
Definition at line 38 of file remotesourcesettings.h.
Referenced by resetToDefaults().
QString RemoteSourceSettings::m_dataAddress |
Listening (local) data address.
Definition at line 28 of file remotesourcesettings.h.
Referenced by RemoteSource::applySettings(), deserialize(), RemoteSourceGUI::displaySettings(), RemoteSourceGUI::on_dataAddress_returnPressed(), RemoteSourceGUI::on_dataApplyButton_clicked(), resetToDefaults(), serialize(), RemoteSource::setDataLink(), RemoteSource::start(), RemoteSource::webapiFormatChannelSettings(), RemoteSource::webapiReverseSendSettings(), and RemoteSource::webapiSettingsPutPatch().
uint16_t RemoteSourceSettings::m_dataPort |
Listening data port.
Definition at line 29 of file remotesourcesettings.h.
Referenced by RemoteSource::applySettings(), deserialize(), RemoteSourceGUI::displaySettings(), RemoteSourceGUI::on_dataApplyButton_clicked(), RemoteSourceGUI::on_dataPort_returnPressed(), resetToDefaults(), serialize(), RemoteSource::setDataLink(), RemoteSource::start(), RemoteSource::webapiFormatChannelSettings(), RemoteSource::webapiReverseSendSettings(), and RemoteSource::webapiSettingsPutPatch().
QString RemoteSourceSettings::m_reverseAPIAddress |
Definition at line 33 of file remotesourcesettings.h.
Referenced by RemoteSource::applySettings(), deserialize(), RemoteSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), RemoteSource::webapiFormatChannelSettings(), RemoteSource::webapiReverseSendSettings(), and RemoteSource::webapiSettingsPutPatch().
uint16_t RemoteSourceSettings::m_reverseAPIChannelIndex |
Definition at line 36 of file remotesourcesettings.h.
Referenced by RemoteSource::applySettings(), deserialize(), RemoteSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), RemoteSource::webapiFormatChannelSettings(), RemoteSource::webapiReverseSendSettings(), and RemoteSource::webapiSettingsPutPatch().
uint16_t RemoteSourceSettings::m_reverseAPIDeviceIndex |
Definition at line 35 of file remotesourcesettings.h.
Referenced by RemoteSource::applySettings(), deserialize(), RemoteSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), RemoteSource::webapiFormatChannelSettings(), RemoteSource::webapiReverseSendSettings(), and RemoteSource::webapiSettingsPutPatch().
uint16_t RemoteSourceSettings::m_reverseAPIPort |
Definition at line 34 of file remotesourcesettings.h.
Referenced by RemoteSource::applySettings(), deserialize(), RemoteSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), RemoteSource::webapiFormatChannelSettings(), RemoteSource::webapiReverseSendSettings(), and RemoteSource::webapiSettingsPutPatch().
quint32 RemoteSourceSettings::m_rgbColor |
Definition at line 30 of file remotesourcesettings.h.
Referenced by deserialize(), RemoteSourceGUI::displaySettings(), RemoteSourceGUI::onMenuDialogCalled(), RemoteSourceGUI::RemoteSourceGUI(), resetToDefaults(), serialize(), RemoteSource::webapiFormatChannelSettings(), RemoteSource::webapiReverseSendSettings(), and RemoteSource::webapiSettingsPutPatch().
QString RemoteSourceSettings::m_title |
Definition at line 31 of file remotesourcesettings.h.
Referenced by deserialize(), RemoteSourceGUI::displaySettings(), RemoteSource::getTitle(), RemoteSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), RemoteSource::webapiFormatChannelSettings(), RemoteSource::webapiReverseSendSettings(), and RemoteSource::webapiSettingsPutPatch().
bool RemoteSourceSettings::m_useReverseAPI |
Definition at line 32 of file remotesourcesettings.h.
Referenced by RemoteSource::applySettings(), deserialize(), RemoteSourceGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), RemoteSource::webapiFormatChannelSettings(), and RemoteSource::webapiSettingsPutPatch().