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.
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
WFMPlugin Class Reference

#include <wfmplugin.h>

+ Inheritance diagram for WFMPlugin:
+ Collaboration diagram for WFMPlugin:

Public Member Functions

 WFMPlugin (QObject *parent=NULL)
 
const PluginDescriptorgetPluginDescriptor () const
 
void initPlugin (PluginAPI *pluginAPI)
 
virtual PluginInstanceGUIcreateRxChannelGUI (DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
 
virtual BasebandSampleSinkcreateRxChannelBS (DeviceAPI *deviceAPI)
 
virtual ChannelAPIcreateRxChannelCS (DeviceAPI *deviceAPI)
 

Private Attributes

PluginAPIm_pluginAPI
 

Static Private Attributes

static const PluginDescriptor m_pluginDescriptor
 

Additional Inherited Members

- Private Types inherited from PluginInterface
typedef QList< SamplingDeviceSamplingDevices
 
- Private Member Functions inherited from PluginInterface
virtual ~PluginInterface ()
 
virtual PluginInstanceGUIcreateTxChannelGUI (DeviceUISet *deviceUISet, BasebandSampleSource *txChannel)
 
virtual BasebandSampleSourcecreateTxChannelBS (DeviceAPI *deviceAPI)
 
virtual ChannelAPIcreateTxChannelCS (DeviceAPI *deviceAPI)
 
virtual SamplingDevices enumSampleSources ()
 
virtual PluginInstanceGUIcreateSampleSourcePluginInstanceGUI (const QString &sourceId, QWidget **widget, DeviceUISet *deviceUISet)
 
virtual DeviceSampleSourcecreateSampleSourcePluginInstance (const QString &sourceId, DeviceAPI *deviceAPI)
 
virtual void deleteSampleSourcePluginInstanceGUI (PluginInstanceGUI *ui)
 
virtual void deleteSampleSourcePluginInstanceInput (DeviceSampleSource *source)
 
virtual SamplingDevices enumSampleSinks ()
 
virtual PluginInstanceGUIcreateSampleSinkPluginInstanceGUI (const QString &sinkId, QWidget **widget, DeviceUISet *deviceUISet)
 
virtual DeviceSampleSinkcreateSampleSinkPluginInstance (const QString &sinkId, DeviceAPI *deviceAPI)
 
virtual void deleteSampleSinkPluginInstanceGUI (PluginInstanceGUI *ui)
 
virtual void deleteSampleSinkPluginInstanceOutput (DeviceSampleSink *sink)
 
virtual SamplingDevices enumSampleMIMO ()
 
virtual PluginInstanceGUIcreateSampleMIMOPluginInstanceGUI (const QString &mimoId, QWidget **widget, DeviceUISet *deviceUISet)
 
virtual DeviceSampleMIMOcreateSampleMIMOPluginInstance (const QString &mimoId, DeviceAPI *deviceAPI)
 
virtual void deleteSampleMIMOPluginInstanceGUI (PluginInstanceGUI *ui)
 
virtual void deleteSampleMIMOPluginInstanceMIMO (DeviceSampleMIMO *mimo)
 

Detailed Description

Definition at line 10 of file wfmplugin.h.

Constructor & Destructor Documentation

◆ WFMPlugin()

WFMPlugin::WFMPlugin ( QObject *  parent = NULL)
explicit

Definition at line 20 of file wfmplugin.cpp.

20  :
21  QObject(parent),
22  m_pluginAPI(0)
23 {
24 }
PluginAPI * m_pluginAPI
Definition: wfmplugin.h:28

Member Function Documentation

◆ createRxChannelBS()

BasebandSampleSink * WFMPlugin::createRxChannelBS ( DeviceAPI deviceAPI)
virtual

Reimplemented from PluginInterface.

Definition at line 53 of file wfmplugin.cpp.

54 {
55  return new WFMDemod(deviceAPI);
56 }

◆ createRxChannelCS()

ChannelAPI * WFMPlugin::createRxChannelCS ( DeviceAPI deviceAPI)
virtual

Reimplemented from PluginInterface.

Definition at line 58 of file wfmplugin.cpp.

59 {
60  return new WFMDemod(deviceAPI);
61 }

◆ createRxChannelGUI()

PluginInstanceGUI * WFMPlugin::createRxChannelGUI ( DeviceUISet deviceUISet,
BasebandSampleSink rxChannel 
)
virtual

Reimplemented from PluginInterface.

Definition at line 47 of file wfmplugin.cpp.

References WFMDemodGUI::create(), and m_pluginAPI.

Referenced by initPlugin().

48 {
49  return WFMDemodGUI::create(m_pluginAPI, deviceUISet, rxChannel);
50 }
static WFMDemodGUI * create(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
Definition: wfmdemodgui.cpp:22
PluginAPI * m_pluginAPI
Definition: wfmplugin.h:28
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPluginDescriptor()

const PluginDescriptor & WFMPlugin::getPluginDescriptor ( ) const
virtual

Implements PluginInterface.

Definition at line 26 of file wfmplugin.cpp.

References m_pluginDescriptor.

27 {
28  return m_pluginDescriptor;
29 }
static const PluginDescriptor m_pluginDescriptor
Definition: wfmplugin.h:26

◆ initPlugin()

void WFMPlugin::initPlugin ( PluginAPI pluginAPI)
virtual

Implements PluginInterface.

Definition at line 31 of file wfmplugin.cpp.

References createRxChannelGUI(), WFMDemod::m_channelId, WFMDemod::m_channelIdURI, m_pluginAPI, and PluginAPI::registerRxChannel().

32 {
33  m_pluginAPI = pluginAPI;
34 
35  // register WFM demodulator
37 }
void registerRxChannel(const QString &channelIdURI, const QString &channelId, PluginInterface *plugin)
Definition: pluginapi.cpp:4
static const QString m_channelIdURI
Definition: wfmdemod.h:167
static const QString m_channelId
Definition: wfmdemod.h:168
PluginAPI * m_pluginAPI
Definition: wfmplugin.h:28
+ Here is the call graph for this function:

Member Data Documentation

◆ m_pluginAPI

PluginAPI* WFMPlugin::m_pluginAPI
private

Definition at line 28 of file wfmplugin.h.

Referenced by createRxChannelGUI(), and initPlugin().

◆ m_pluginDescriptor

const PluginDescriptor WFMPlugin::m_pluginDescriptor
staticprivate
Initial value:
= {
QString("WFM Demodulator"),
QString("4.9.1"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,
QString("https://github.com/f4exb/sdrangel")
}

Definition at line 26 of file wfmplugin.h.

Referenced by getPluginDescriptor().


The documentation for this class was generated from the following files: