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
BFMPlugin Class Reference

#include <bfmplugin.h>

+ Inheritance diagram for BFMPlugin:
+ Collaboration diagram for BFMPlugin:

Public Member Functions

 BFMPlugin (QObject *parent=0)
 
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 27 of file bfmplugin.h.

Constructor & Destructor Documentation

◆ BFMPlugin()

BFMPlugin::BFMPlugin ( QObject *  parent = 0)
explicit

Definition at line 38 of file bfmplugin.cpp.

38  :
39  QObject(parent),
40  m_pluginAPI(0)
41 {
42 }
PluginAPI * m_pluginAPI
Definition: bfmplugin.h:45

Member Function Documentation

◆ createRxChannelBS()

BasebandSampleSink * BFMPlugin::createRxChannelBS ( DeviceAPI deviceAPI)
virtual

Reimplemented from PluginInterface.

Definition at line 71 of file bfmplugin.cpp.

72 {
73  return new BFMDemod(deviceAPI);
74 }

◆ createRxChannelCS()

ChannelAPI * BFMPlugin::createRxChannelCS ( DeviceAPI deviceAPI)
virtual

Reimplemented from PluginInterface.

Definition at line 76 of file bfmplugin.cpp.

77 {
78  return new BFMDemod(deviceAPI);
79 }

◆ createRxChannelGUI()

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

Reimplemented from PluginInterface.

Definition at line 65 of file bfmplugin.cpp.

References BFMDemodGUI::create(), and m_pluginAPI.

Referenced by initPlugin().

66 {
67  return BFMDemodGUI::create(m_pluginAPI, deviceUISet, rxChannel);
68 }
PluginAPI * m_pluginAPI
Definition: bfmplugin.h:45
static BFMDemodGUI * create(PluginAPI *pluginAPI, DeviceUISet *deviceAPI, BasebandSampleSink *rxChannel)
Definition: bfmdemodgui.cpp:48
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPluginDescriptor()

const PluginDescriptor & BFMPlugin::getPluginDescriptor ( ) const
virtual

Implements PluginInterface.

Definition at line 44 of file bfmplugin.cpp.

References m_pluginDescriptor.

45 {
46  return m_pluginDescriptor;
47 }
static const PluginDescriptor m_pluginDescriptor
Definition: bfmplugin.h:43

◆ initPlugin()

void BFMPlugin::initPlugin ( PluginAPI pluginAPI)
virtual

Implements PluginInterface.

Definition at line 49 of file bfmplugin.cpp.

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

50 {
51  m_pluginAPI = pluginAPI;
52 
53  // register BFM demodulator
55 }
PluginAPI * m_pluginAPI
Definition: bfmplugin.h:45
static const QString m_channelIdURI
Definition: bfmdemod.h:206
static const QString m_channelId
Definition: bfmdemod.h:207
void registerRxChannel(const QString &channelIdURI, const QString &channelId, PluginInterface *plugin)
Definition: pluginapi.cpp:4
+ Here is the call graph for this function:

Member Data Documentation

◆ m_pluginAPI

PluginAPI* BFMPlugin::m_pluginAPI
private

Definition at line 45 of file bfmplugin.h.

Referenced by createRxChannelGUI(), and initPlugin().

◆ m_pluginDescriptor

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

Definition at line 43 of file bfmplugin.h.

Referenced by getPluginDescriptor().


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