mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-18 14:21:49 -05:00
37 lines
838 B
C++
37 lines
838 B
C++
#include <QDockWidget>
|
|
#include "plugin/pluginapi.h"
|
|
#include "plugin/pluginmanager.h"
|
|
#include "mainwindow.h"
|
|
|
|
MessageQueue* PluginAPI::getMainWindowMessageQueue()
|
|
{
|
|
return m_mainWindow->getInputMessageQueue();
|
|
}
|
|
|
|
void PluginAPI::registerChannel(const QString& channelName, PluginInterface* plugin)
|
|
{
|
|
m_pluginManager->registerChannel(channelName, plugin);
|
|
}
|
|
|
|
void PluginAPI::registerSampleSource(const QString& sourceName, PluginInterface* plugin)
|
|
{
|
|
m_pluginManager->registerSampleSource(sourceName, plugin);
|
|
}
|
|
|
|
PluginAPI::ChannelRegistrations *PluginAPI::getChannelRegistrations()
|
|
{
|
|
return m_pluginManager->getChannelRegistrations();
|
|
}
|
|
|
|
|
|
PluginAPI::PluginAPI(PluginManager* pluginManager, MainWindow* mainWindow) :
|
|
QObject(mainWindow),
|
|
m_pluginManager(pluginManager),
|
|
m_mainWindow(mainWindow)
|
|
{
|
|
}
|
|
|
|
PluginAPI::~PluginAPI()
|
|
{
|
|
}
|