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.
amdemodplugin.cpp
Go to the documentation of this file.
1 #include <QtPlugin>
2 #include "plugin/pluginapi.h"
3 
4 #ifndef SERVER_MODE
5 #include "amdemodgui.h"
6 #endif
7 #include "amdemod.h"
8 #include "amdemodplugin.h"
9 
11  QString("AM 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 AMDemodPlugin::AMDemodPlugin(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 AM demodulator
36 }
37 
38 #ifdef SERVER_MODE
40  DeviceUISet *deviceUISet,
41  BasebandSampleSink *rxChannel)
42 {
43  return 0;
44 }
45 #else
47 {
48  return AMDemodGUI::create(m_pluginAPI, deviceUISet, rxChannel);
49 }
50 #endif
51 
53 {
54  return new AMDemod(deviceAPI);
55 }
56 
58 {
59  return new AMDemod(deviceAPI);
60 }
61 
void registerRxChannel(const QString &channelIdURI, const QString &channelId, PluginInterface *plugin)
Definition: pluginapi.cpp:4
void initPlugin(PluginAPI *pluginAPI)
virtual PluginInstanceGUI * createRxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
virtual ChannelAPI * createRxChannelCS(DeviceAPI *deviceAPI)
static const QString m_channelId
Definition: amdemod.h:164
virtual BasebandSampleSink * createRxChannelBS(DeviceAPI *deviceAPI)
PluginAPI * m_pluginAPI
Definition: amdemodplugin.h:45
AMDemodPlugin(QObject *parent=NULL)
const PluginDescriptor & getPluginDescriptor() const
static const QString m_channelIdURI
Definition: amdemod.h:163
static AMDemodGUI * create(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
Definition: amdemodgui.cpp:42
static const PluginDescriptor m_pluginDescriptor
Definition: amdemodplugin.h:43