1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-18 06:11:46 -05:00
sdrangel/plugins/channelrx/chanalyzer/chanalyzerplugin.cpp

51 lines
1.3 KiB
C++
Raw Normal View History

2017-05-05 04:40:45 -04:00
#include "chanalyzerplugin.h"
#include <QtPlugin>
#include "plugin/pluginapi.h"
2017-05-05 04:40:45 -04:00
#include "chanalyzergui.h"
#include "chanalyzer.h"
const PluginDescriptor ChannelAnalyzerPlugin::m_pluginDescriptor = {
QString("Channel Analyzer"),
2017-12-17 18:06:01 -05:00
QString("3.9.0"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,
QString("https://github.com/f4exb/sdrangel")
};
ChannelAnalyzerPlugin::ChannelAnalyzerPlugin(QObject* parent) :
2017-05-05 04:40:45 -04:00
QObject(parent),
m_pluginAPI(0)
{
}
const PluginDescriptor& ChannelAnalyzerPlugin::getPluginDescriptor() const
{
return m_pluginDescriptor;
}
void ChannelAnalyzerPlugin::initPlugin(PluginAPI* pluginAPI)
{
m_pluginAPI = pluginAPI;
// register demodulator
m_pluginAPI->registerRxChannel(ChannelAnalyzer::m_channelIdURI, ChannelAnalyzer::m_channelId, this);
}
PluginInstanceGUI* ChannelAnalyzerPlugin::createRxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
{
return ChannelAnalyzerGUI::create(m_pluginAPI, deviceUISet, rxChannel);
}
BasebandSampleSink* ChannelAnalyzerPlugin::createRxChannelBS(DeviceSourceAPI *deviceAPI)
{
return new ChannelAnalyzer(deviceAPI);
}
2017-12-17 17:15:42 -05:00
ChannelSinkAPI* ChannelAnalyzerPlugin::createRxChannelCS(DeviceSourceAPI *deviceAPI)
2017-12-17 17:15:42 -05:00
{
return new ChannelAnalyzer(deviceAPI);
2017-12-17 17:15:42 -05:00
}