SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
wfmplugin.cpp
Go to the documentation of this file.
1 #include "wfmplugin.h"
2 
3 #include <QtPlugin>
4 #include "plugin/pluginapi.h"
5 
6 #ifndef SERVER_MODE
7 #include "wfmdemodgui.h"
8 #endif
9 #include "wfmdemod.h"
10 
12  QString("WFM Demodulator"),
13  QString("4.9.1"),
14  QString("(c) Edouard Griffiths, F4EXB"),
15  QString("https://github.com/f4exb/sdrangel"),
16  true,
17  QString("https://github.com/f4exb/sdrangel")
18 };
19 
20 WFMPlugin::WFMPlugin(QObject* parent) :
21  QObject(parent),
22  m_pluginAPI(0)
23 {
24 }
25 
27 {
28  return m_pluginDescriptor;
29 }
30 
32 {
33  m_pluginAPI = pluginAPI;
34 
35  // register WFM demodulator
37 }
38 
39 #ifdef SERVER_MODE
41  DeviceUISet *deviceUISet,
42  BasebandSampleSink *rxChannel)
43 {
44  return 0;
45 }
46 #else
48 {
49  return WFMDemodGUI::create(m_pluginAPI, deviceUISet, rxChannel);
50 }
51 #endif
52 
54 {
55  return new WFMDemod(deviceAPI);
56 }
57 
59 {
60  return new WFMDemod(deviceAPI);
61 }
62 
virtual PluginInstanceGUI * createRxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
Definition: wfmplugin.cpp:47
static const PluginDescriptor m_pluginDescriptor
Definition: wfmplugin.h:26
void registerRxChannel(const QString &channelIdURI, const QString &channelId, PluginInterface *plugin)
Definition: pluginapi.cpp:4
static WFMDemodGUI * create(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
Definition: wfmdemodgui.cpp:22
virtual ChannelAPI * createRxChannelCS(DeviceAPI *deviceAPI)
Definition: wfmplugin.cpp:58
const PluginDescriptor & getPluginDescriptor() const
Definition: wfmplugin.cpp:26
static const QString m_channelIdURI
Definition: wfmdemod.h:167
virtual BasebandSampleSink * createRxChannelBS(DeviceAPI *deviceAPI)
Definition: wfmplugin.cpp:53
static const QString m_channelId
Definition: wfmdemod.h:168
void initPlugin(PluginAPI *pluginAPI)
Definition: wfmplugin.cpp:31
WFMPlugin(QObject *parent=NULL)
Definition: wfmplugin.cpp:20
PluginAPI * m_pluginAPI
Definition: wfmplugin.h:28