2016-10-02 11:18:07 +00:00
|
|
|
#include "../../channelrx/demodssb/ssbplugin.h"
|
|
|
|
|
2016-10-10 23:17:55 +00:00
|
|
|
#include <device/devicesourceapi.h>
|
2014-05-21 17:31:14 +00:00
|
|
|
#include <QtPlugin>
|
|
|
|
#include "plugin/pluginapi.h"
|
2016-10-02 11:18:07 +00:00
|
|
|
#include "../../channelrx/demodssb/ssbdemodgui.h"
|
2014-05-21 17:31:14 +00:00
|
|
|
|
|
|
|
const PluginDescriptor SSBPlugin::m_pluginDescriptor = {
|
|
|
|
QString("SSB Demodulator"),
|
2016-07-31 11:40:41 +00:00
|
|
|
QString("2.1.1"),
|
2015-09-01 23:16:40 +00:00
|
|
|
QString("(c) Edouard Griffiths, F4EXB"),
|
|
|
|
QString("https://github.com/f4exb/sdrangel"),
|
2014-05-21 17:31:14 +00:00
|
|
|
true,
|
2015-09-01 23:16:40 +00:00
|
|
|
QString("https://github.com/f4exb/sdrangel")
|
2014-05-21 17:31:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
SSBPlugin::SSBPlugin(QObject* parent) :
|
|
|
|
QObject(parent)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
const PluginDescriptor& SSBPlugin::getPluginDescriptor() const
|
|
|
|
{
|
|
|
|
return m_pluginDescriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
void SSBPlugin::initPlugin(PluginAPI* pluginAPI)
|
|
|
|
{
|
|
|
|
m_pluginAPI = pluginAPI;
|
|
|
|
|
|
|
|
// register demodulator
|
2016-10-13 20:23:43 +00:00
|
|
|
m_pluginAPI->registerRxChannel(SSBDemodGUI::m_channelID, this);
|
2014-05-21 17:31:14 +00:00
|
|
|
}
|
|
|
|
|
2016-10-10 23:17:55 +00:00
|
|
|
PluginGUI* SSBPlugin::createChannel(const QString& channelName, DeviceSourceAPI *deviceAPI)
|
2014-05-21 17:31:14 +00:00
|
|
|
{
|
2016-05-16 17:37:53 +00:00
|
|
|
if(channelName == SSBDemodGUI::m_channelID)
|
|
|
|
{
|
2016-05-16 08:05:09 +00:00
|
|
|
SSBDemodGUI* gui = SSBDemodGUI::create(m_pluginAPI, deviceAPI);
|
2014-05-21 17:31:14 +00:00
|
|
|
return gui;
|
|
|
|
} else {
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-10-10 23:17:55 +00:00
|
|
|
void SSBPlugin::createInstanceSSB(DeviceSourceAPI *deviceAPI)
|
2014-05-21 17:31:14 +00:00
|
|
|
{
|
2016-05-16 08:05:09 +00:00
|
|
|
SSBDemodGUI* gui = SSBDemodGUI::create(m_pluginAPI, deviceAPI);
|
2014-05-21 17:31:14 +00:00
|
|
|
}
|