1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 09:48:45 -05:00

Multi device support: removed GLSpectrum dependency in plugin manager

This commit is contained in:
f4exb 2016-05-16 10:40:18 +02:00
parent 2893d7bb06
commit 9013e057fa
3 changed files with 3 additions and 6 deletions

View File

@ -202,7 +202,7 @@ void MainWindow::addDevice()
m_deviceUIs.back()->m_deviceAPI = deviceAPI;
// TODO: do not create one plugin manager per device. Use device API instead
PluginManager *pluginManager = new PluginManager(this, m_deviceUIs.size()-1, dspDeviceEngine, m_deviceUIs.back()->m_spectrum);
PluginManager *pluginManager = new PluginManager(this, m_deviceUIs.size()-1, dspDeviceEngine);
m_deviceUIs.back()->m_pluginManager = pluginManager;
pluginManager->loadPlugins();

View File

@ -13,13 +13,12 @@
#include <QDebug>
PluginManager::PluginManager(MainWindow* mainWindow, uint deviceTabIndex, DSPDeviceEngine* dspDeviceEngine, GLSpectrum *spectrum, QObject* parent) :
PluginManager::PluginManager(MainWindow* mainWindow, uint deviceTabIndex, DSPDeviceEngine* dspDeviceEngine, QObject* parent) :
QObject(parent),
m_pluginAPI(this, mainWindow),
m_mainWindow(mainWindow),
m_deviceTabIndex(deviceTabIndex),
m_dspDeviceEngine(dspDeviceEngine),
m_spectrum(spectrum),
m_sampleSourceId(),
m_sampleSourceSerial(),
m_sampleSourceSequence(0),

View File

@ -14,7 +14,6 @@ class MainWindow;
class Message;
class MessageQueue;
class DSPDeviceEngine;
class GLSpectrum;
class DeviceAPI;
class SDRANGEL_API PluginManager : public QObject {
@ -36,7 +35,7 @@ public:
typedef QList<Plugin> Plugins;
explicit PluginManager(MainWindow* mainWindow, uint deviceTabIndex, DSPDeviceEngine* dspDeviceEngine, GLSpectrum *spectrum, QObject* parent = NULL);
explicit PluginManager(MainWindow* mainWindow, uint deviceTabIndex, DSPDeviceEngine* dspDeviceEngine, QObject* parent = NULL);
~PluginManager();
void loadPlugins();
@ -130,7 +129,6 @@ private:
MainWindow* m_mainWindow;
uint m_deviceTabIndex;
DSPDeviceEngine* m_dspDeviceEngine;
GLSpectrum* m_spectrum;
Plugins m_plugins;
ChannelRegistrations m_channelRegistrations;