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

#include <nfmplugin.h>

+ Inheritance diagram for NFMPlugin:
+ Collaboration diagram for NFMPlugin:

Public Member Functions

 NFMPlugin (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 nfmplugin.h.

Constructor & Destructor Documentation

◆ NFMPlugin()

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

Definition at line 19 of file nfmplugin.cpp.

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

Member Function Documentation

◆ createRxChannelBS()

BasebandSampleSink * NFMPlugin::createRxChannelBS ( DeviceAPI deviceAPI)
virtual

Reimplemented from PluginInterface.

Definition at line 52 of file nfmplugin.cpp.

53 {
54  return new NFMDemod(deviceAPI);
55 }

◆ createRxChannelCS()

ChannelAPI * NFMPlugin::createRxChannelCS ( DeviceAPI deviceAPI)
virtual

Reimplemented from PluginInterface.

Definition at line 57 of file nfmplugin.cpp.

58 {
59  return new NFMDemod(deviceAPI);
60 }

◆ createRxChannelGUI()

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

Reimplemented from PluginInterface.

Definition at line 46 of file nfmplugin.cpp.

References NFMDemodGUI::create(), and m_pluginAPI.

Referenced by initPlugin().

47 {
48  return NFMDemodGUI::create(m_pluginAPI, deviceUISet, rxChannel);
49 }
static NFMDemodGUI * create(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
Definition: nfmdemodgui.cpp:19
PluginAPI * m_pluginAPI
Definition: nfmplugin.h:28
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPluginDescriptor()

const PluginDescriptor & NFMPlugin::getPluginDescriptor ( ) const
virtual

Implements PluginInterface.

Definition at line 25 of file nfmplugin.cpp.

References m_pluginDescriptor.

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

◆ initPlugin()

void NFMPlugin::initPlugin ( PluginAPI pluginAPI)
virtual

Implements PluginInterface.

Definition at line 30 of file nfmplugin.cpp.

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

31 {
32  m_pluginAPI = pluginAPI;
33 
34  // register NFM demodulator
36 }
void registerRxChannel(const QString &channelIdURI, const QString &channelId, PluginInterface *plugin)
Definition: pluginapi.cpp:4
static const QString m_channelIdURI
Definition: nfmdemod.h:189
PluginAPI * m_pluginAPI
Definition: nfmplugin.h:28
static const QString m_channelId
Definition: nfmdemod.h:190
+ Here is the call graph for this function:

Member Data Documentation

◆ m_pluginAPI

PluginAPI* NFMPlugin::m_pluginAPI
private

Definition at line 28 of file nfmplugin.h.

Referenced by createRxChannelGUI(), and initPlugin().

◆ m_pluginDescriptor

const PluginDescriptor NFMPlugin::m_pluginDescriptor
staticprivate
Initial value:
= {
QString("NFM 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 26 of file nfmplugin.h.

Referenced by getPluginDescriptor().


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