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 <pluginmanager.h>
Inherits QObject.
Classes | |
struct | Plugin |
struct | SamplingDevice |
Public Types | |
typedef QList< Plugin > | Plugins |
Static Public Member Functions | |
static const QString & | getFileInputDeviceId () |
static const QString & | getFileSinkDeviceId () |
static const QString & | getTestMIMODeviceId () |
Private Types | |
typedef QList< SamplingDevice > | SamplingDevices |
Private Member Functions | |
void | loadPluginsDir (const QDir &dir) |
Private Attributes | |
PluginAPI | m_pluginAPI |
Plugins | m_plugins |
PluginAPI::ChannelRegistrations | m_rxChannelRegistrations |
Channel plugins register here. More... | |
PluginAPI::SamplingDeviceRegistrations | m_sampleSourceRegistrations |
Input source plugins (one per device kind) register here. More... | |
PluginAPI::ChannelRegistrations | m_txChannelRegistrations |
Channel plugins register here. More... | |
PluginAPI::SamplingDeviceRegistrations | m_sampleSinkRegistrations |
Output sink plugins (one per device kind) register here. More... | |
PluginAPI::SamplingDeviceRegistrations | m_sampleMIMORegistrations |
MIMO sink plugins (one per device kind) register here. More... | |
Static Private Attributes | |
static const QString | m_localInputHardwareID = "LocalInput" |
Local input hardware ID. More... | |
static const QString | m_localInputDeviceTypeID = "sdrangel.samplesource.localinput" |
Local input plugin ID. More... | |
static const QString | m_remoteInputHardwareID = "RemoteInput" |
Remote input hardware ID. More... | |
static const QString | m_remoteInputDeviceTypeID = "sdrangel.samplesource.remoteinput" |
Remote input plugin ID. More... | |
static const QString | m_fileInputHardwareID = "FileInput" |
File input hardware ID. More... | |
static const QString | m_fileInputDeviceTypeID = "sdrangel.samplesource.fileinput" |
File input plugin ID. More... | |
static const QString | m_localOutputHardwareID = "LocalOutput" |
Local output hardware ID. More... | |
static const QString | m_localOutputDeviceTypeID = "sdrangel.samplesource.localoutput" |
Local output plugin ID. More... | |
static const QString | m_remoteOutputHardwareID = "RemoteOutput" |
Remote output hardware ID. More... | |
static const QString | m_remoteOutputDeviceTypeID = "sdrangel.samplesink.remoteoutput" |
Remote output plugin ID. More... | |
static const QString | m_fileSinkHardwareID = "FileSink" |
FileSink sink hardware ID. More... | |
static const QString | m_fileSinkDeviceTypeID = "sdrangel.samplesink.filesink" |
FileSink sink plugin ID. More... | |
static const QString | m_testMIMOHardwareID = "TestMI" |
Test MIMO hardware ID. More... | |
static const QString | m_testMIMODeviceTypeID = "sdrangel.samplemimo.testmi" |
Test MIMO plugin ID. More... | |
Definition at line 38 of file pluginmanager.h.
typedef QList<Plugin> PluginManager::Plugins |
Definition at line 53 of file pluginmanager.h.
|
private |
Definition at line 111 of file pluginmanager.h.
|
explicit |
Definition at line 50 of file pluginmanager.cpp.
PluginManager::~PluginManager | ( | ) |
Definition at line 56 of file pluginmanager.cpp.
void PluginManager::createRxChannelInstance | ( | int | channelPluginIndex, |
DeviceUISet * | deviceUISet, | ||
DeviceAPI * | deviceAPI | ||
) |
Definition at line 221 of file pluginmanager.cpp.
References PluginInterface::createRxChannelBS(), PluginInterface::createRxChannelGUI(), and m_rxChannelRegistrations.
Referenced by MainWindow::channelAddClicked().
void PluginManager::createTxChannelInstance | ( | int | channelPluginIndex, |
DeviceUISet * | deviceUISet, | ||
DeviceAPI * | deviceAPI | ||
) |
Definition at line 231 of file pluginmanager.cpp.
References PluginInterface::createTxChannelBS(), PluginInterface::createTxChannelGUI(), and m_txChannelRegistrations.
Referenced by MainWindow::channelAddClicked().
|
inlinestatic |
Definition at line 83 of file pluginmanager.h.
Referenced by DeviceEnumerator::getFileInputDeviceIndex().
|
inlinestatic |
Definition at line 84 of file pluginmanager.h.
Referenced by DeviceEnumerator::getFileSinkDeviceIndex().
|
inline |
Definition at line 73 of file pluginmanager.h.
Referenced by DeviceEnumerator::enumerateMIMODevices().
|
inline |
Definition at line 58 of file pluginmanager.h.
Referenced by MainCore::addChannel(), MainCore::loadPresetSettings(), and MainWindow::loadPresetSettings().
|
inline |
Definition at line 62 of file pluginmanager.h.
Referenced by PluginsDialog::PluginsDialog().
|
inline |
Definition at line 74 of file pluginmanager.h.
Referenced by WebAPIAdapterGUI::devicesetChannelPost(), WebAPIAdapterSrv::devicesetChannelPost(), PluginAPI::getRxChannelRegistrations(), WebAPIAdapterSrv::instanceChannels(), and WebAPIAdapterGUI::instanceChannels().
|
inline |
Definition at line 72 of file pluginmanager.h.
Referenced by DeviceEnumerator::enumerateTxDevices().
|
inline |
Definition at line 71 of file pluginmanager.h.
Referenced by DeviceEnumerator::enumerateRxDevices().
|
inlinestatic |
Definition at line 85 of file pluginmanager.h.
Referenced by DeviceEnumerator::getTestMIMODeviceIndex().
|
inline |
Definition at line 75 of file pluginmanager.h.
Referenced by WebAPIAdapterGUI::devicesetChannelPost(), WebAPIAdapterSrv::devicesetChannelPost(), PluginAPI::getTxChannelRegistrations(), WebAPIAdapterSrv::instanceChannels(), and WebAPIAdapterGUI::instanceChannels().
void PluginManager::listRxChannels | ( | QList< QString > & | list | ) |
Definition at line 210 of file pluginmanager.cpp.
References PluginDescriptor::displayedName, and m_rxChannelRegistrations.
Referenced by MainWindow::addMIMODevice(), and MainWindow::addSourceDevice().
void PluginManager::listTxChannels | ( | QList< QString > & | list | ) |
Definition at line 199 of file pluginmanager.cpp.
References PluginDescriptor::displayedName, and m_txChannelRegistrations.
Referenced by MainWindow::addMIMODevice(), and MainWindow::addSinkDevice().
void PluginManager::loadPlugins | ( | const QString & | pluginsSubDir | ) |
Definition at line 61 of file pluginmanager.cpp.
References loadPluginsFinal(), and loadPluginsPart().
Referenced by MainCore::MainCore(), and MainWindow::MainWindow().
|
private |
Definition at line 165 of file pluginmanager.cpp.
References m_plugins.
Referenced by loadPluginsPart().
void PluginManager::loadPluginsFinal | ( | ) |
Definition at line 106 of file pluginmanager.cpp.
References DeviceEnumerator::enumerateMIMODevices(), DeviceEnumerator::enumerateRxDevices(), DeviceEnumerator::enumerateTxDevices(), DeviceEnumerator::instance(), m_pluginAPI, and m_plugins.
Referenced by loadPlugins().
void PluginManager::loadPluginsPart | ( | const QString & | pluginsSubDir | ) |
Definition at line 67 of file pluginmanager.cpp.
References loadPluginsDir().
Referenced by loadPlugins().
void PluginManager::registerRxChannel | ( | const QString & | channelIdURI, |
const QString & | channelId, | ||
PluginInterface * | plugin | ||
) |
Definition at line 120 of file pluginmanager.cpp.
References PluginDescriptor::displayedName, PluginInterface::getPluginDescriptor(), and m_rxChannelRegistrations.
Referenced by PluginAPI::registerRxChannel().
void PluginManager::registerSampleMIMO | ( | const QString & | mimoName, |
PluginInterface * | plugin | ||
) |
Definition at line 156 of file pluginmanager.cpp.
References PluginDescriptor::displayedName, PluginInterface::getPluginDescriptor(), and m_sampleMIMORegistrations.
Referenced by PluginAPI::registerSampleMIMO().
void PluginManager::registerSampleSink | ( | const QString & | sinkName, |
PluginInterface * | plugin | ||
) |
Definition at line 147 of file pluginmanager.cpp.
References PluginDescriptor::displayedName, PluginInterface::getPluginDescriptor(), and m_sampleSinkRegistrations.
Referenced by PluginAPI::registerSampleSink().
void PluginManager::registerSampleSource | ( | const QString & | sourceName, |
PluginInterface * | plugin | ||
) |
Definition at line 138 of file pluginmanager.cpp.
References PluginDescriptor::displayedName, PluginInterface::getPluginDescriptor(), and m_sampleSourceRegistrations.
Referenced by PluginAPI::registerSampleSource().
void PluginManager::registerTxChannel | ( | const QString & | channelIdURI, |
const QString & | channelId, | ||
PluginInterface * | plugin | ||
) |
Definition at line 129 of file pluginmanager.cpp.
References PluginDescriptor::displayedName, PluginInterface::getPluginDescriptor(), and m_txChannelRegistrations.
Referenced by PluginAPI::registerTxChannel().
|
staticprivate |
File input plugin ID.
Definition at line 130 of file pluginmanager.h.
|
staticprivate |
File input hardware ID.
Definition at line 129 of file pluginmanager.h.
|
staticprivate |
FileSink sink plugin ID.
Definition at line 138 of file pluginmanager.h.
|
staticprivate |
FileSink sink hardware ID.
Definition at line 137 of file pluginmanager.h.
|
staticprivate |
Local input plugin ID.
Definition at line 126 of file pluginmanager.h.
|
staticprivate |
Local input hardware ID.
Definition at line 125 of file pluginmanager.h.
|
staticprivate |
Local output plugin ID.
Definition at line 134 of file pluginmanager.h.
|
staticprivate |
Local output hardware ID.
Definition at line 133 of file pluginmanager.h.
|
private |
Definition at line 113 of file pluginmanager.h.
Referenced by loadPluginsFinal().
|
private |
Definition at line 114 of file pluginmanager.h.
Referenced by loadPluginsDir(), and loadPluginsFinal().
|
staticprivate |
Remote input plugin ID.
Definition at line 128 of file pluginmanager.h.
|
staticprivate |
Remote input hardware ID.
Definition at line 127 of file pluginmanager.h.
|
staticprivate |
Remote output plugin ID.
Definition at line 136 of file pluginmanager.h.
|
staticprivate |
Remote output hardware ID.
Definition at line 135 of file pluginmanager.h.
|
private |
Channel plugins register here.
Definition at line 116 of file pluginmanager.h.
Referenced by createRxChannelInstance(), listRxChannels(), and registerRxChannel().
|
private |
MIMO sink plugins (one per device kind) register here.
Definition at line 122 of file pluginmanager.h.
Referenced by registerSampleMIMO().
|
private |
Output sink plugins (one per device kind) register here.
Definition at line 120 of file pluginmanager.h.
Referenced by registerSampleSink().
|
private |
Input source plugins (one per device kind) register here.
Definition at line 117 of file pluginmanager.h.
Referenced by registerSampleSource().
|
staticprivate |
Test MIMO plugin ID.
Definition at line 142 of file pluginmanager.h.
|
staticprivate |
Test MIMO hardware ID.
Definition at line 141 of file pluginmanager.h.
|
private |
Channel plugins register here.
Definition at line 119 of file pluginmanager.h.
Referenced by createTxChannelInstance(), listTxChannels(), and registerTxChannel().