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

#include <udpsourceplugin.h>

+ Inheritance diagram for UDPSourcePlugin:
+ Collaboration diagram for UDPSourcePlugin:

Public Member Functions

 UDPSourcePlugin (QObject *parent=0)
 
const PluginDescriptorgetPluginDescriptor () const
 
void initPlugin (PluginAPI *pluginAPI)
 
virtual PluginInstanceGUIcreateTxChannelGUI (DeviceUISet *deviceUISet, BasebandSampleSource *txChannel)
 
virtual BasebandSampleSourcecreateTxChannelBS (DeviceAPI *deviceAPI)
 
virtual ChannelAPIcreateTxChannelCS (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 PluginInstanceGUIcreateRxChannelGUI (DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
 
virtual BasebandSampleSinkcreateRxChannelBS (DeviceAPI *deviceAPI)
 
virtual ChannelAPIcreateRxChannelCS (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 28 of file udpsourceplugin.h.

Constructor & Destructor Documentation

◆ UDPSourcePlugin()

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

Definition at line 38 of file udpsourceplugin.cpp.

38  :
39  QObject(parent),
40  m_pluginAPI(0)
41 {
42 }
PluginAPI * m_pluginAPI

Member Function Documentation

◆ createTxChannelBS()

BasebandSampleSource * UDPSourcePlugin::createTxChannelBS ( DeviceAPI deviceAPI)
virtual

Reimplemented from PluginInterface.

Definition at line 71 of file udpsourceplugin.cpp.

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

◆ createTxChannelCS()

ChannelAPI * UDPSourcePlugin::createTxChannelCS ( DeviceAPI deviceAPI)
virtual

Reimplemented from PluginInterface.

Definition at line 76 of file udpsourceplugin.cpp.

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

◆ createTxChannelGUI()

PluginInstanceGUI * UDPSourcePlugin::createTxChannelGUI ( DeviceUISet deviceUISet,
BasebandSampleSource txChannel 
)
virtual

Reimplemented from PluginInterface.

Definition at line 65 of file udpsourceplugin.cpp.

References UDPSourceGUI::create(), and m_pluginAPI.

Referenced by initPlugin().

66 {
67  return UDPSourceGUI::create(m_pluginAPI, deviceUISet, txChannel);
68 }
static UDPSourceGUI * create(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSource *channelTx)
PluginAPI * m_pluginAPI
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPluginDescriptor()

const PluginDescriptor & UDPSourcePlugin::getPluginDescriptor ( ) const
virtual

Implements PluginInterface.

Definition at line 44 of file udpsourceplugin.cpp.

References m_pluginDescriptor.

45 {
46  return m_pluginDescriptor;
47 }
static const PluginDescriptor m_pluginDescriptor

◆ initPlugin()

void UDPSourcePlugin::initPlugin ( PluginAPI pluginAPI)
virtual

Implements PluginInterface.

Definition at line 49 of file udpsourceplugin.cpp.

References createTxChannelGUI(), UDPSource::m_channelId, UDPSource::m_channelIdURI, m_pluginAPI, and PluginAPI::registerTxChannel().

50 {
51  m_pluginAPI = pluginAPI;
52 
53  // register TCP Channel Source
55 }
void registerTxChannel(const QString &channelIdURI, const QString &channelId, PluginInterface *plugin)
Definition: pluginapi.cpp:19
static const QString m_channelId
Definition: udpsource.h:144
static const QString m_channelIdURI
Definition: udpsource.h:143
PluginAPI * m_pluginAPI
+ Here is the call graph for this function:

Member Data Documentation

◆ m_pluginAPI

PluginAPI* UDPSourcePlugin::m_pluginAPI
private

Definition at line 46 of file udpsourceplugin.h.

Referenced by createTxChannelGUI(), and initPlugin().

◆ m_pluginDescriptor

const PluginDescriptor UDPSourcePlugin::m_pluginDescriptor
staticprivate
Initial value:
= {
QString("UDP Channel Source"),
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 44 of file udpsourceplugin.h.

Referenced by getPluginDescriptor().


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