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

#include <localsourceplugin.h>

+ Inheritance diagram for LocalSourcePlugin:
+ Collaboration diagram for LocalSourcePlugin:

Public Member Functions

 LocalSourcePlugin (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 localsourceplugin.h.

Constructor & Destructor Documentation

◆ LocalSourcePlugin()

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

Definition at line 37 of file localsourceplugin.cpp.

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

Member Function Documentation

◆ createTxChannelBS()

BasebandSampleSource * LocalSourcePlugin::createTxChannelBS ( DeviceAPI deviceAPI)
virtual

Reimplemented from PluginInterface.

Definition at line 70 of file localsourceplugin.cpp.

71 {
72  return new LocalSource(deviceAPI);
73 }

◆ createTxChannelCS()

ChannelAPI * LocalSourcePlugin::createTxChannelCS ( DeviceAPI deviceAPI)
virtual

Reimplemented from PluginInterface.

Definition at line 75 of file localsourceplugin.cpp.

76 {
77  return new LocalSource(deviceAPI);
78 }

◆ createTxChannelGUI()

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

Reimplemented from PluginInterface.

Definition at line 64 of file localsourceplugin.cpp.

References LocalSourceGUI::create(), and m_pluginAPI.

Referenced by initPlugin().

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

◆ getPluginDescriptor()

const PluginDescriptor & LocalSourcePlugin::getPluginDescriptor ( ) const
virtual

Implements PluginInterface.

Definition at line 43 of file localsourceplugin.cpp.

References m_pluginDescriptor.

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

◆ initPlugin()

void LocalSourcePlugin::initPlugin ( PluginAPI pluginAPI)
virtual

Implements PluginInterface.

Definition at line 48 of file localsourceplugin.cpp.

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

49 {
50  m_pluginAPI = pluginAPI;
51 
52  // register channel Source
54 }
void registerTxChannel(const QString &channelIdURI, const QString &channelId, PluginInterface *plugin)
Definition: pluginapi.cpp:19
static const QString m_channelId
Definition: localsource.h:153
static const QString m_channelIdURI
Definition: localsource.h:152
PluginAPI * m_pluginAPI
+ Here is the call graph for this function:

Member Data Documentation

◆ m_pluginAPI

PluginAPI* LocalSourcePlugin::m_pluginAPI
private

Definition at line 46 of file localsourceplugin.h.

Referenced by createTxChannelGUI(), and initPlugin().

◆ m_pluginDescriptor

const PluginDescriptor LocalSourcePlugin::m_pluginDescriptor
staticprivate
Initial value:
= {
QString("Local channel source"),
QString("4.8.0"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,
QString("https://github.com/f4exb/sdrangel")
}

Definition at line 44 of file localsourceplugin.h.

Referenced by getPluginDescriptor().


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