2014-05-18 11:52:39 -04:00
|
|
|
#include <QDockWidget>
|
|
|
|
#include "plugin/pluginapi.h"
|
|
|
|
#include "plugin/pluginmanager.h"
|
|
|
|
#include "mainwindow.h"
|
|
|
|
|
|
|
|
MessageQueue* PluginAPI::getMainWindowMessageQueue()
|
|
|
|
{
|
2015-08-17 20:47:14 -04:00
|
|
|
return m_mainWindow->getInputMessageQueue();
|
2014-05-18 11:52:39 -04:00
|
|
|
}
|
|
|
|
|
2016-05-14 15:33:12 -04:00
|
|
|
void PluginAPI::registerChannel(const QString& channelName, PluginInterface* plugin)
|
2014-05-18 11:52:39 -04:00
|
|
|
{
|
2016-05-14 15:33:12 -04:00
|
|
|
m_pluginManager->registerChannel(channelName, plugin);
|
2014-05-18 11:52:39 -04:00
|
|
|
}
|
|
|
|
|
2016-05-16 13:37:53 -04:00
|
|
|
//void PluginAPI::registerChannelInstance(const QString& channelName, PluginGUI* pluginGUI)
|
|
|
|
//{
|
|
|
|
// m_pluginManager->registerChannelInstance(channelName, pluginGUI);
|
|
|
|
//}
|
|
|
|
//
|
|
|
|
//void PluginAPI::removeChannelInstance(PluginGUI* pluginGUI)
|
|
|
|
//{
|
|
|
|
// m_pluginManager->removeChannelInstance(pluginGUI);
|
|
|
|
//}
|
2014-05-18 11:52:39 -04:00
|
|
|
|
|
|
|
void PluginAPI::registerSampleSource(const QString& sourceName, PluginInterface* plugin)
|
|
|
|
{
|
|
|
|
m_pluginManager->registerSampleSource(sourceName, plugin);
|
|
|
|
}
|
|
|
|
|
2016-05-16 12:53:01 -04:00
|
|
|
PluginAPI::ChannelRegistrations *PluginAPI::getChannelRegistrations()
|
|
|
|
{
|
|
|
|
return m_pluginManager->getChannelRegistrations();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-05-11 10:03:03 -04:00
|
|
|
PluginAPI::PluginAPI(PluginManager* pluginManager, MainWindow* mainWindow) :
|
2014-05-18 11:52:39 -04:00
|
|
|
QObject(mainWindow),
|
|
|
|
m_pluginManager(pluginManager),
|
2016-05-11 10:03:03 -04:00
|
|
|
m_mainWindow(mainWindow)
|
2014-05-18 11:52:39 -04:00
|
|
|
{
|
|
|
|
}
|
2016-05-13 05:42:03 -04:00
|
|
|
|
|
|
|
PluginAPI::~PluginAPI()
|
|
|
|
{
|
|
|
|
}
|