mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-15 21:01:45 -05:00
49cb082c7e
plugins/misc/rigctrl - Add rigctrl plugin. sdrbase/plugin/pluginapi.h/.cpp - Add misc plugin registration. sdrbase/plugin/pluginmanager.h/.cpp - Add misc plugin registration. sdrbase/plugin/plugininterface.h/.cpp - Add top level UI and global settings serialization callbacks. sdrbase/settings/mainsettings.h/cpp - Allow plugins to save global settings in main settings file. sdrgui/mainwindow.cpp - Load settings after plugins are loaded, to allow plugin settings to be loaded and saved. sdrsrv/maincore.cpp - Support loading/saving of plugin settings.
62 lines
1.7 KiB
C++
62 lines
1.7 KiB
C++
#include "plugin/pluginapi.h"
|
|
#include "plugin/pluginmanager.h"
|
|
|
|
void PluginAPI::registerRxChannel(const QString& channelIdURI, const QString& channelId, PluginInterface* plugin)
|
|
{
|
|
m_pluginManager->registerRxChannel(channelIdURI, channelId, plugin);
|
|
}
|
|
|
|
PluginAPI::ChannelRegistrations *PluginAPI::getRxChannelRegistrations()
|
|
{
|
|
return m_pluginManager->getRxChannelRegistrations();
|
|
}
|
|
|
|
void PluginAPI::registerTxChannel(const QString& channelIdURI, const QString& channelId, PluginInterface* plugin)
|
|
{
|
|
m_pluginManager->registerTxChannel(channelIdURI, channelId, plugin);
|
|
}
|
|
|
|
PluginAPI::ChannelRegistrations *PluginAPI::getTxChannelRegistrations()
|
|
{
|
|
return m_pluginManager->getTxChannelRegistrations();
|
|
}
|
|
|
|
void PluginAPI::registerMIMOChannel(const QString& channelIdURI, const QString& channelId, PluginInterface* plugin)
|
|
{
|
|
m_pluginManager->registerMIMOChannel(channelIdURI, channelId, plugin);
|
|
}
|
|
|
|
PluginAPI::ChannelRegistrations *PluginAPI::getMIMOChannelRegistrations()
|
|
{
|
|
return m_pluginManager->getMIMOChannelRegistrations();
|
|
}
|
|
|
|
void PluginAPI::registerSampleSource(const QString& sourceName, PluginInterface* plugin)
|
|
{
|
|
m_pluginManager->registerSampleSource(sourceName, plugin);
|
|
}
|
|
|
|
void PluginAPI::registerSampleSink(const QString& sinkName, PluginInterface* plugin)
|
|
{
|
|
m_pluginManager->registerSampleSink(sinkName, plugin);
|
|
}
|
|
|
|
void PluginAPI::registerSampleMIMO(const QString& mimoName, PluginInterface* plugin)
|
|
{
|
|
m_pluginManager->registerSampleMIMO(mimoName, plugin);
|
|
}
|
|
|
|
void PluginAPI::registerMiscPlugin(const QString& id, PluginInterface* plugin)
|
|
{
|
|
m_pluginManager->registerMiscPlugin(id, plugin);
|
|
}
|
|
|
|
PluginAPI::PluginAPI(PluginManager* pluginManager) :
|
|
m_pluginManager(pluginManager)
|
|
{
|
|
}
|
|
|
|
PluginAPI::~PluginAPI()
|
|
{
|
|
}
|