2014-05-18 11:52:39 -04:00
|
|
|
#include "plugin/pluginapi.h"
|
|
|
|
#include "plugin/pluginmanager.h"
|
|
|
|
|
2017-11-22 19:19:32 -05:00
|
|
|
void PluginAPI::registerRxChannel(const QString& channelIdURI, const QString& channelId, PluginInterface* plugin)
|
2014-05-18 11:52:39 -04:00
|
|
|
{
|
2017-11-22 19:19:32 -05:00
|
|
|
m_pluginManager->registerRxChannel(channelIdURI, channelId, plugin);
|
2014-05-18 11:52:39 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void PluginAPI::registerSampleSource(const QString& sourceName, PluginInterface* plugin)
|
|
|
|
{
|
|
|
|
m_pluginManager->registerSampleSource(sourceName, plugin);
|
|
|
|
}
|
|
|
|
|
2016-10-13 16:23:43 -04:00
|
|
|
PluginAPI::ChannelRegistrations *PluginAPI::getRxChannelRegistrations()
|
2016-05-16 12:53:01 -04:00
|
|
|
{
|
2016-10-13 16:23:43 -04:00
|
|
|
return m_pluginManager->getRxChannelRegistrations();
|
2016-05-16 12:53:01 -04:00
|
|
|
}
|
|
|
|
|
2017-11-22 19:19:32 -05:00
|
|
|
void PluginAPI::registerTxChannel(const QString& channelIdURI, const QString& channelId, PluginInterface* plugin)
|
2016-10-19 12:07:27 -04:00
|
|
|
{
|
2017-11-22 19:19:32 -05:00
|
|
|
m_pluginManager->registerTxChannel(channelIdURI, channelId, plugin);
|
2016-10-19 12:07:27 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void PluginAPI::registerSampleSink(const QString& sinkName, PluginInterface* plugin)
|
|
|
|
{
|
2016-10-19 16:48:24 -04:00
|
|
|
m_pluginManager->registerSampleSink(sinkName, plugin);
|
2016-10-19 12:07:27 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
PluginAPI::ChannelRegistrations *PluginAPI::getTxChannelRegistrations()
|
|
|
|
{
|
|
|
|
return m_pluginManager->getTxChannelRegistrations();
|
|
|
|
}
|
|
|
|
|
2017-10-24 08:01:31 -04:00
|
|
|
PluginAPI::PluginAPI(PluginManager* pluginManager) :
|
|
|
|
m_pluginManager(pluginManager)
|
2014-05-18 11:52:39 -04:00
|
|
|
{
|
|
|
|
}
|
2016-05-13 05:42:03 -04:00
|
|
|
|
|
|
|
PluginAPI::~PluginAPI()
|
|
|
|
{
|
|
|
|
}
|