|  | 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 <deviceset.h>
 Collaboration diagram for DeviceSet:
 Collaboration diagram for DeviceSet:| Classes | |
| struct | ChannelInstanceRegistration | 
| Public Member Functions | |
| DeviceSet (int tabIndex) | |
| ~DeviceSet () | |
| int | getNumberOfRxChannels () const | 
| int | getNumberOfTxChannels () const | 
| void | addRxChannel (int selectedChannelIndex, PluginAPI *pluginAPI) | 
| void | addTxChannel (int selectedChannelIndex, PluginAPI *pluginAPI) | 
| void | deleteRxChannel (int channelIndex) | 
| void | deleteTxChannel (int channelIndex) | 
| void | registerRxChannelInstance (const QString &channelName, ChannelAPI *channelAPI) | 
| void | registerTxChannelInstance (const QString &channelName, ChannelAPI *channelAPI) | 
| void | removeRxChannelInstance (ChannelAPI *channelAPI) | 
| void | removeTxChannelInstance (ChannelAPI *channelAPI) | 
| void | freeRxChannels () | 
| void | freeTxChannels () | 
| void | loadRxChannelSettings (const Preset *preset, PluginAPI *pluginAPI) | 
| void | saveRxChannelSettings (Preset *preset) | 
| void | loadTxChannelSettings (const Preset *preset, PluginAPI *pluginAPI) | 
| void | saveTxChannelSettings (Preset *preset) | 
| Public Attributes | |
| DeviceAPI * | m_deviceAPI | 
| DSPDeviceSourceEngine * | m_deviceSourceEngine | 
| DSPDeviceSinkEngine * | m_deviceSinkEngine | 
| DSPDeviceMIMOEngine * | m_deviceMIMOEngine | 
| Private Types | |
| typedef QList< ChannelInstanceRegistration > | ChannelInstanceRegistrations | 
| Private Member Functions | |
| void | renameRxChannelInstances () | 
| void | renameTxChannelInstances () | 
| bool | compareRxChannelURIs (const QString ®isterdChannelURI, const QString &xChannelURI) | 
| Private Attributes | |
| ChannelInstanceRegistrations | m_rxChannelInstanceRegistrations | 
| ChannelInstanceRegistrations | m_txChannelInstanceRegistrations | 
| int | m_deviceTabIndex | 
Definition at line 31 of file deviceset.h.
| 
 | private | 
Definition at line 77 of file deviceset.h.
| DeviceSet::DeviceSet | ( | int | tabIndex | ) | 
Definition at line 51 of file deviceset.cpp.
References m_deviceAPI, m_deviceMIMOEngine, m_deviceSinkEngine, m_deviceSourceEngine, and m_deviceTabIndex.
| DeviceSet::~DeviceSet | ( | ) | 
Definition at line 60 of file deviceset.cpp.
| void DeviceSet::addRxChannel | ( | int | selectedChannelIndex, | 
| PluginAPI * | pluginAPI | ||
| ) | 
Definition at line 142 of file deviceset.cpp.
References DeviceSet::ChannelInstanceRegistration::ChannelInstanceRegistration(), ChannelAPI::getName(), PluginAPI::getRxChannelRegistrations(), m_deviceAPI, and m_rxChannelInstanceRegistrations.
Referenced by MainCore::addChannel(), and getNumberOfTxChannels().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void DeviceSet::addTxChannel | ( | int | selectedChannelIndex, | 
| PluginAPI * | pluginAPI | ||
| ) | 
Definition at line 151 of file deviceset.cpp.
References DeviceSet::ChannelInstanceRegistration::ChannelInstanceRegistration(), ChannelAPI::getName(), PluginAPI::getTxChannelRegistrations(), m_deviceAPI, and m_txChannelInstanceRegistrations.
Referenced by MainCore::addChannel(), and getNumberOfTxChannels().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Use this function to support possible older identifiers in presets
Definition at line 395 of file deviceset.cpp.
Referenced by loadRxChannelSettings().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| void DeviceSet::deleteRxChannel | ( | int | channelIndex | ) | 
Definition at line 122 of file deviceset.cpp.
References m_rxChannelInstanceRegistrations, and renameRxChannelInstances().
Referenced by MainCore::deleteChannel(), and getNumberOfTxChannels().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void DeviceSet::deleteTxChannel | ( | int | channelIndex | ) | 
Definition at line 132 of file deviceset.cpp.
References m_txChannelInstanceRegistrations, and renameTxChannelInstances().
Referenced by MainCore::deleteChannel(), and getNumberOfTxChannels().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void DeviceSet::freeRxChannels | ( | ) | 
Definition at line 104 of file deviceset.cpp.
References i, DeviceSet::ChannelInstanceRegistration::m_channelName, and m_rxChannelInstanceRegistrations.
Referenced by getNumberOfTxChannels().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| void DeviceSet::freeTxChannels | ( | ) | 
Definition at line 113 of file deviceset.cpp.
References i, DeviceSet::ChannelInstanceRegistration::m_channelName, and m_txChannelInstanceRegistrations.
Referenced by getNumberOfTxChannels().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inline | 
Definition at line 42 of file deviceset.h.
References m_rxChannelInstanceRegistrations.
| 
 | inline | 
Definition at line 43 of file deviceset.h.
References addRxChannel(), addTxChannel(), deleteRxChannel(), deleteTxChannel(), freeRxChannels(), freeTxChannels(), loadRxChannelSettings(), loadTxChannelSettings(), m_txChannelInstanceRegistrations, registerRxChannelInstance(), registerTxChannelInstance(), removeRxChannelInstance(), removeTxChannelInstance(), saveRxChannelSettings(), and saveTxChannelSettings().
 Here is the call graph for this function:
 Here is the call graph for this function:Definition at line 160 of file deviceset.cpp.
References DeviceSet::ChannelInstanceRegistration::ChannelInstanceRegistration(), compareRxChannelURIs(), ChannelAPI::deserialize(), Preset::getChannelConfig(), Preset::getChannelCount(), Preset::getDescription(), Preset::getGroup(), PluginAPI::getRxChannelRegistrations(), i, Preset::isSourcePreset(), Preset::ChannelConfig::m_channelIdURI, DeviceSet::ChannelInstanceRegistration::m_channelName, DeviceSet::ChannelInstanceRegistration::m_channelSinkAPI, Preset::ChannelConfig::m_config, m_deviceAPI, m_rxChannelInstanceRegistrations, and renameRxChannelInstances().
Referenced by getNumberOfTxChannels(), and MainCore::loadPresetSettings().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:Definition at line 256 of file deviceset.cpp.
References DeviceSet::ChannelInstanceRegistration::ChannelInstanceRegistration(), ChannelAPI::deserialize(), Preset::getChannelConfig(), Preset::getChannelCount(), Preset::getDescription(), Preset::getGroup(), PluginAPI::getTxChannelRegistrations(), i, Preset::isSourcePreset(), Preset::ChannelConfig::m_channelIdURI, DeviceSet::ChannelInstanceRegistration::m_channelName, DeviceSet::ChannelInstanceRegistration::m_channelSourceAPI, Preset::ChannelConfig::m_config, m_deviceAPI, m_txChannelInstanceRegistrations, and renameTxChannelInstances().
Referenced by getNumberOfTxChannels(), and MainCore::loadPresetSettings().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void DeviceSet::registerRxChannelInstance | ( | const QString & | channelName, | 
| ChannelAPI * | channelAPI | ||
| ) | 
Definition at line 64 of file deviceset.cpp.
References DeviceSet::ChannelInstanceRegistration::ChannelInstanceRegistration(), m_rxChannelInstanceRegistrations, and renameRxChannelInstances().
Referenced by getNumberOfTxChannels().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void DeviceSet::registerTxChannelInstance | ( | const QString & | channelName, | 
| ChannelAPI * | channelAPI | ||
| ) | 
Definition at line 70 of file deviceset.cpp.
References DeviceSet::ChannelInstanceRegistration::ChannelInstanceRegistration(), m_txChannelInstanceRegistrations, and renameTxChannelInstances().
Referenced by getNumberOfTxChannels().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void DeviceSet::removeRxChannelInstance | ( | ChannelAPI * | channelAPI | ) | 
Definition at line 76 of file deviceset.cpp.
References m_rxChannelInstanceRegistrations, and renameRxChannelInstances().
Referenced by getNumberOfTxChannels().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void DeviceSet::removeTxChannelInstance | ( | ChannelAPI * | channelAPI | ) | 
Definition at line 90 of file deviceset.cpp.
References m_txChannelInstanceRegistrations, and renameTxChannelInstances().
Referenced by getNumberOfTxChannels().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 348 of file deviceset.cpp.
References arg(), i, DeviceSet::ChannelInstanceRegistration::m_channelName, and m_rxChannelInstanceRegistrations.
Referenced by deleteRxChannel(), loadRxChannelSettings(), registerRxChannelInstance(), and removeRxChannelInstance().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 356 of file deviceset.cpp.
References arg(), i, DeviceSet::ChannelInstanceRegistration::m_channelName, and m_txChannelInstanceRegistrations.
Referenced by deleteTxChannel(), loadTxChannelSettings(), registerTxChannelInstance(), and removeTxChannelInstance().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void DeviceSet::saveRxChannelSettings | ( | Preset * | preset | ) | 
Definition at line 238 of file deviceset.cpp.
References Preset::addChannel(), i, Preset::isSourcePreset(), DeviceSet::ChannelInstanceRegistration::m_channelName, DeviceSet::ChannelInstanceRegistration::m_channelSinkAPI, m_rxChannelInstanceRegistrations, and ChannelAPI::serialize().
Referenced by getNumberOfTxChannels(), and MainCore::savePresetSettings().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void DeviceSet::saveTxChannelSettings | ( | Preset * | preset | ) | 
Definition at line 330 of file deviceset.cpp.
References Preset::addChannel(), i, Preset::isSourcePreset(), DeviceSet::ChannelInstanceRegistration::m_channelName, DeviceSet::ChannelInstanceRegistration::m_channelSourceAPI, m_txChannelInstanceRegistrations, and ChannelAPI::serialize().
Referenced by getNumberOfTxChannels(), and MainCore::savePresetSettings().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| DeviceAPI* DeviceSet::m_deviceAPI | 
Definition at line 34 of file deviceset.h.
Referenced by addRxChannel(), addTxChannel(), MainCore::changeSampleSink(), MainCore::changeSampleSource(), DeviceSet(), WebAPIAdapterSrv::devicesetChannelReportGet(), WebAPIAdapterSrv::devicesetChannelSettingsGet(), WebAPIAdapterSrv::devicesetChannelSettingsPutPatch(), WebAPIAdapterSrv::devicesetDeviceReportGet(), WebAPIAdapterSrv::devicesetDeviceRunDelete(), WebAPIAdapterSrv::devicesetDeviceRunGet(), WebAPIAdapterSrv::devicesetDeviceRunPost(), WebAPIAdapterSrv::devicesetDeviceSettingsGet(), WebAPIAdapterSrv::devicesetDeviceSettingsPutPatch(), WebAPIAdapterSrv::getChannelsDetail(), WebAPIAdapterSrv::getDeviceSet(), MainCore::loadPresetSettings(), loadRxChannelSettings(), loadTxChannelSettings(), and MainCore::savePresetSettings().
| DSPDeviceMIMOEngine* DeviceSet::m_deviceMIMOEngine | 
Definition at line 37 of file deviceset.h.
Referenced by DeviceSet().
| DSPDeviceSinkEngine* DeviceSet::m_deviceSinkEngine | 
Definition at line 36 of file deviceset.h.
Referenced by MainCore::addChannel(), MainCore::deleteChannel(), DeviceSet(), WebAPIAdapterSrv::devicesetChannelDelete(), WebAPIAdapterSrv::devicesetChannelPost(), WebAPIAdapterSrv::devicesetChannelReportGet(), WebAPIAdapterSrv::devicesetChannelSettingsGet(), WebAPIAdapterSrv::devicesetChannelSettingsPutPatch(), WebAPIAdapterSrv::devicesetDevicePut(), WebAPIAdapterSrv::devicesetDeviceReportGet(), WebAPIAdapterSrv::devicesetDeviceRunDelete(), WebAPIAdapterSrv::devicesetDeviceRunGet(), WebAPIAdapterSrv::devicesetDeviceRunPost(), WebAPIAdapterSrv::devicesetDeviceSettingsGet(), WebAPIAdapterSrv::devicesetDeviceSettingsPutPatch(), WebAPIAdapterSrv::getChannelsDetail(), WebAPIAdapterSrv::getDeviceSet(), WebAPIAdapterSrv::instancePresetPatch(), WebAPIAdapterSrv::instancePresetPost(), WebAPIAdapterSrv::instancePresetPut(), MainCore::loadPresetSettings(), and MainCore::savePresetSettings().
| DSPDeviceSourceEngine* DeviceSet::m_deviceSourceEngine | 
Definition at line 35 of file deviceset.h.
Referenced by MainCore::addChannel(), MainCore::deleteChannel(), DeviceSet(), WebAPIAdapterSrv::devicesetChannelDelete(), WebAPIAdapterSrv::devicesetChannelPost(), WebAPIAdapterSrv::devicesetChannelReportGet(), WebAPIAdapterSrv::devicesetChannelSettingsGet(), WebAPIAdapterSrv::devicesetChannelSettingsPutPatch(), WebAPIAdapterSrv::devicesetDevicePut(), WebAPIAdapterSrv::devicesetDeviceReportGet(), WebAPIAdapterSrv::devicesetDeviceRunDelete(), WebAPIAdapterSrv::devicesetDeviceRunGet(), WebAPIAdapterSrv::devicesetDeviceRunPost(), WebAPIAdapterSrv::devicesetDeviceSettingsGet(), WebAPIAdapterSrv::devicesetDeviceSettingsPutPatch(), WebAPIAdapterSrv::getChannelsDetail(), WebAPIAdapterSrv::getDeviceSet(), WebAPIAdapterSrv::instancePresetPatch(), WebAPIAdapterSrv::instancePresetPost(), WebAPIAdapterSrv::instancePresetPut(), MainCore::loadPresetSettings(), and MainCore::savePresetSettings().
| 
 | private | 
Definition at line 81 of file deviceset.h.
Referenced by DeviceSet().
| 
 | private | 
Definition at line 79 of file deviceset.h.
Referenced by addRxChannel(), deleteRxChannel(), freeRxChannels(), getNumberOfRxChannels(), loadRxChannelSettings(), registerRxChannelInstance(), removeRxChannelInstance(), renameRxChannelInstances(), and saveRxChannelSettings().
| 
 | private | 
Definition at line 80 of file deviceset.h.
Referenced by addTxChannel(), deleteTxChannel(), freeTxChannels(), getNumberOfTxChannels(), loadTxChannelSettings(), registerTxChannelInstance(), removeTxChannelInstance(), renameTxChannelInstances(), and saveTxChannelSettings().
 1.8.13
 1.8.13