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 <deviceuserargs.h>
Classes | |
struct | Args |
Public Member Functions | |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
QString | findUserArgs (const QString &id, int sequence) |
void | addDeviceArgs (const QString &id, int sequence, const QString &args) |
Will not add if it exists for same reference. More... | |
void | addOrUpdateDeviceArgs (const QString &id, int sequence, const QString &args) |
Add or update if it exists for same reference. More... | |
void | updateDeviceArgs (const QString &id, int sequence, const QString &args) |
Will not update if reference does not exist. More... | |
void | deleteDeviceArgs (const QString &id, int sequence) |
const QList< Args > & | getArgsByDevice () const |
Public Attributes | |
QList< Args > | m_argsByDevice |
args corresponding to a device More... | |
Definition at line 27 of file deviceuserargs.h.
void DeviceUserArgs::addDeviceArgs | ( | const QString & | id, |
int | sequence, | ||
const QString & | args | ||
) |
Will not add if it exists for same reference.
Definition at line 81 of file deviceuserargs.cpp.
References i, and m_argsByDevice.
Referenced by DeviceUserArgsDialog::on_importDevice_clicked().
void DeviceUserArgs::addOrUpdateDeviceArgs | ( | const QString & | id, |
int | sequence, | ||
const QString & | args | ||
) |
Add or update if it exists for same reference.
Definition at line 97 of file deviceuserargs.cpp.
References i, and m_argsByDevice.
void DeviceUserArgs::deleteDeviceArgs | ( | const QString & | id, |
int | sequence | ||
) |
Definition at line 125 of file deviceuserargs.cpp.
References i, and m_argsByDevice.
Referenced by DeviceUserArgsDialog::on_deleteArgs_clicked().
bool DeviceUserArgs::deserialize | ( | const QByteArray & | data | ) |
Definition at line 45 of file deviceuserargs.cpp.
References SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_argsByDevice, and SimpleDeserializer::readBlob().
Referenced by MainSettings::load().
QString DeviceUserArgs::findUserArgs | ( | const QString & | id, |
int | sequence | ||
) |
Definition at line 69 of file deviceuserargs.cpp.
References i, and m_argsByDevice.
Referenced by MainWindow::addMIMODevice(), MainCore::addSinkDevice(), MainWindow::addSinkDevice(), MainCore::addSourceDevice(), MainWindow::addSourceDevice(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
|
inline |
Definition at line 58 of file deviceuserargs.h.
Referenced by DeviceUserArgsDialog::displayArgsByDevice().
QByteArray DeviceUserArgs::serialize | ( | ) | const |
Definition at line 35 of file deviceuserargs.cpp.
References SimpleSerializer::final(), m_argsByDevice, and SimpleSerializer::writeBlob().
Referenced by MainSettings::save().
void DeviceUserArgs::updateDeviceArgs | ( | const QString & | id, |
int | sequence, | ||
const QString & | args | ||
) |
Will not update if reference does not exist.
Definition at line 113 of file deviceuserargs.cpp.
References i, and m_argsByDevice.
Referenced by DeviceUserArgsDialog::on_argStringEdit_editingFinished().
QList<Args> DeviceUserArgs::m_argsByDevice |
args corresponding to a device
Definition at line 60 of file deviceuserargs.h.
Referenced by addDeviceArgs(), addOrUpdateDeviceArgs(), deleteDeviceArgs(), deserialize(), findUserArgs(), serialize(), and updateDeviceArgs().