mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
Multi device support: removed as much as possible (now) DSPDeviceEngine dependencies in MainWindow to source plugin GUIs. This includes file sink handling. Applies to BladeRF only.
This commit is contained in:
@@ -58,6 +58,16 @@ void PluginAPI::registerSampleSource(const QString& sourceName, PluginInterface*
|
||||
m_pluginManager->registerSampleSource(sourceName, plugin);
|
||||
}
|
||||
|
||||
void PluginAPI::addSink(SampleSink* sink)
|
||||
{
|
||||
m_pluginManager->addSink(sink);
|
||||
}
|
||||
|
||||
void PluginAPI::removeSink(SampleSink* sink)
|
||||
{
|
||||
m_pluginManager->removeSink(sink);
|
||||
}
|
||||
|
||||
void PluginAPI::addThreadedSink(ThreadedSampleSink* sink)
|
||||
{
|
||||
m_pluginManager->addThreadedSink(sink);
|
||||
@@ -93,6 +103,26 @@ QString PluginAPI::errorMessage()
|
||||
return m_pluginManager->errorMessage();
|
||||
}
|
||||
|
||||
uint PluginAPI::getDeviceUID() const
|
||||
{
|
||||
return m_pluginManager->getDeviceUID();
|
||||
}
|
||||
|
||||
MessageQueue *PluginAPI::getDeviceInputMessageQueue()
|
||||
{
|
||||
return m_pluginManager->getDeviceInputMessageQueue();
|
||||
}
|
||||
|
||||
MessageQueue *PluginAPI::getDeviceOutputMessageQueue()
|
||||
{
|
||||
return m_pluginManager->getDeviceOutputMessageQueue();
|
||||
}
|
||||
|
||||
GLSpectrum *PluginAPI::getSpectrum()
|
||||
{
|
||||
return m_pluginManager->getSpectrum();
|
||||
}
|
||||
|
||||
PluginAPI::PluginAPI(PluginManager* pluginManager, MainWindow* mainWindow) :
|
||||
QObject(mainWindow),
|
||||
m_pluginManager(pluginManager),
|
||||
|
||||
Reference in New Issue
Block a user