mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
Code re-organization in two libraries sdrbase and sdrgui in view of core / GUI split
This commit is contained in:
@@ -1,51 +0,0 @@
|
||||
#include <QDockWidget>
|
||||
#include "plugin/pluginapi.h"
|
||||
#include "plugin/pluginmanager.h"
|
||||
#include "mainwindow.h"
|
||||
|
||||
MessageQueue* PluginAPI::getMainWindowMessageQueue()
|
||||
{
|
||||
return m_mainWindow->getInputMessageQueue();
|
||||
}
|
||||
|
||||
void PluginAPI::registerRxChannel(const QString& channelName, PluginInterface* plugin)
|
||||
{
|
||||
m_pluginManager->registerRxChannel(channelName, plugin);
|
||||
}
|
||||
|
||||
void PluginAPI::registerSampleSource(const QString& sourceName, PluginInterface* plugin)
|
||||
{
|
||||
m_pluginManager->registerSampleSource(sourceName, plugin);
|
||||
}
|
||||
|
||||
PluginAPI::ChannelRegistrations *PluginAPI::getRxChannelRegistrations()
|
||||
{
|
||||
return m_pluginManager->getRxChannelRegistrations();
|
||||
}
|
||||
|
||||
void PluginAPI::registerTxChannel(const QString& channelName, PluginInterface* plugin)
|
||||
{
|
||||
m_pluginManager->registerTxChannel(channelName, plugin);
|
||||
}
|
||||
|
||||
void PluginAPI::registerSampleSink(const QString& sinkName, PluginInterface* plugin)
|
||||
{
|
||||
m_pluginManager->registerSampleSink(sinkName, plugin);
|
||||
}
|
||||
|
||||
PluginAPI::ChannelRegistrations *PluginAPI::getTxChannelRegistrations()
|
||||
{
|
||||
return m_pluginManager->getTxChannelRegistrations();
|
||||
}
|
||||
|
||||
|
||||
PluginAPI::PluginAPI(PluginManager* pluginManager, MainWindow* mainWindow) :
|
||||
QObject(mainWindow),
|
||||
m_pluginManager(pluginManager),
|
||||
m_mainWindow(mainWindow)
|
||||
{
|
||||
}
|
||||
|
||||
PluginAPI::~PluginAPI()
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user