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.
ssbplugin.cpp
Go to the documentation of this file.
1 #include "ssbplugin.h"
2 
3 #include <QtPlugin>
4 #include "plugin/pluginapi.h"
5 #ifndef SERVER_MODE
6 #include "ssbdemodgui.h"
7 #endif
8 #include "ssbdemod.h"
9 
11  QString("SSB Demodulator"),
12  QString("4.10.0"),
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 SSBPlugin::SSBPlugin(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 demodulator
36 }
37 
38 #ifdef SERVER_MODE
40  DeviceUISet *deviceUISet,
41  BasebandSampleSink *rxChannel)
42 {
43  return 0;
44 }
45 #else
47 {
48  return SSBDemodGUI::create(m_pluginAPI, deviceUISet, rxChannel);
49 }
50 #endif
51 
53 {
54  return new SSBDemod(deviceAPI);
55 }
56 
58 {
59  return new SSBDemod(deviceAPI);
60 }
61 
static const QString m_channelId
Definition: ssbdemod.h:177
static SSBDemodGUI * create(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
Definition: ssbdemodgui.cpp:21
const PluginDescriptor & getPluginDescriptor() const
Definition: ssbplugin.cpp:25
static const QString m_channelIdURI
Definition: ssbdemod.h:176
void registerRxChannel(const QString &channelIdURI, const QString &channelId, PluginInterface *plugin)
Definition: pluginapi.cpp:4
PluginAPI * m_pluginAPI
Definition: ssbplugin.h:28
virtual ChannelAPI * createRxChannelCS(DeviceAPI *deviceAPI)
Definition: ssbplugin.cpp:57
virtual PluginInstanceGUI * createRxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
Definition: ssbplugin.cpp:46
virtual BasebandSampleSink * createRxChannelBS(DeviceAPI *deviceAPI)
Definition: ssbplugin.cpp:52
SSBPlugin(QObject *parent=NULL)
Definition: ssbplugin.cpp:19
static const PluginDescriptor m_pluginDescriptor
Definition: ssbplugin.h:26
void initPlugin(PluginAPI *pluginAPI)
Definition: ssbplugin.cpp:30