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.
nfmplugin.cpp
Go to the documentation of this file.
1 #include <QtPlugin>
2 #include "plugin/pluginapi.h"
3 
4 #include "nfmplugin.h"
5 #ifndef SERVER_MODE
6 #include "nfmdemodgui.h"
7 #endif
8 #include "nfmdemod.h"
9 
11  QString("NFM Demodulator"),
12  QString("4.5.2"),
13  QString("(c) Edouard Griffiths, F4EXB"),
14  QString("https://github.com/f4exb/sdrangel"),
15  true,
16  QString("https://github.com/f4exb/sdrangel")
17 };
18 
19 NFMPlugin::NFMPlugin(QObject* parent) :
20  QObject(parent),
21  m_pluginAPI(0)
22 {
23 }
24 
26 {
27  return m_pluginDescriptor;
28 }
29 
31 {
32  m_pluginAPI = pluginAPI;
33 
34  // register NFM demodulator
36 }
37 
38 #ifdef SERVER_MODE
40  DeviceUISet *deviceUISet,
41  BasebandSampleSink *rxChannel)
42 {
43  return 0;
44 }
45 #else
47 {
48  return NFMDemodGUI::create(m_pluginAPI, deviceUISet, rxChannel);
49 }
50 #endif
51 
53 {
54  return new NFMDemod(deviceAPI);
55 }
56 
58 {
59  return new NFMDemod(deviceAPI);
60 }
61 
static const PluginDescriptor m_pluginDescriptor
Definition: nfmplugin.h:26
void registerRxChannel(const QString &channelIdURI, const QString &channelId, PluginInterface *plugin)
Definition: pluginapi.cpp:4
static const QString m_channelIdURI
Definition: nfmdemod.h:189
virtual PluginInstanceGUI * createRxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
Definition: nfmplugin.cpp:46
void initPlugin(PluginAPI *pluginAPI)
Definition: nfmplugin.cpp:30
virtual ChannelAPI * createRxChannelCS(DeviceAPI *deviceAPI)
Definition: nfmplugin.cpp:57
static NFMDemodGUI * create(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
Definition: nfmdemodgui.cpp:19
virtual BasebandSampleSink * createRxChannelBS(DeviceAPI *deviceAPI)
Definition: nfmplugin.cpp:52
PluginAPI * m_pluginAPI
Definition: nfmplugin.h:28
const PluginDescriptor & getPluginDescriptor() const
Definition: nfmplugin.cpp:25
NFMPlugin(QObject *parent=NULL)
Definition: nfmplugin.cpp:19
static const QString m_channelId
Definition: nfmdemod.h:190