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

#include <filesourceplugin.h>

+ Inheritance diagram for FileSourcePlugin:
+ Collaboration diagram for FileSourcePlugin:

Public Member Functions

 FileSourcePlugin (QObject *parent=nullptr)
 
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 27 of file filesourceplugin.h.

Constructor & Destructor Documentation

◆ FileSourcePlugin()

FileSourcePlugin::FileSourcePlugin ( QObject *  parent = nullptr)
explicit

Definition at line 36 of file filesourceplugin.cpp.

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

Member Function Documentation

◆ createTxChannelBS()

BasebandSampleSource * FileSourcePlugin::createTxChannelBS ( DeviceAPI deviceAPI)
virtual

Reimplemented from PluginInterface.

Definition at line 69 of file filesourceplugin.cpp.

70 {
71  return new FileSource(deviceAPI);
72 }

◆ createTxChannelCS()

ChannelAPI * FileSourcePlugin::createTxChannelCS ( DeviceAPI deviceAPI)
virtual

Reimplemented from PluginInterface.

Definition at line 74 of file filesourceplugin.cpp.

75 {
76  return new FileSource(deviceAPI);
77 }

◆ createTxChannelGUI()

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

Reimplemented from PluginInterface.

Definition at line 63 of file filesourceplugin.cpp.

References FileSourceGUI::create(), and m_pluginAPI.

Referenced by initPlugin().

64 {
65  return FileSourceGUI::create(m_pluginAPI, deviceUISet, txChannel);
66 }
static FileSourceGUI * 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 & FileSourcePlugin::getPluginDescriptor ( ) const
virtual

Implements PluginInterface.

Definition at line 42 of file filesourceplugin.cpp.

References m_pluginDescriptor.

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

◆ initPlugin()

void FileSourcePlugin::initPlugin ( PluginAPI pluginAPI)
virtual

Implements PluginInterface.

Definition at line 47 of file filesourceplugin.cpp.

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

48 {
49  m_pluginAPI = pluginAPI;
50 
51  // register source
53 }
void registerTxChannel(const QString &channelIdURI, const QString &channelId, PluginInterface *plugin)
Definition: pluginapi.cpp:19
PluginAPI * m_pluginAPI
static const QString m_channelId
Definition: filesource.h:378
static const QString m_channelIdURI
Definition: filesource.h:377
+ Here is the call graph for this function:

Member Data Documentation

◆ m_pluginAPI

PluginAPI* FileSourcePlugin::m_pluginAPI
private

Definition at line 44 of file filesourceplugin.h.

Referenced by createTxChannelGUI(), and initPlugin().

◆ m_pluginDescriptor

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

Definition at line 43 of file filesourceplugin.h.

Referenced by getPluginDescriptor().


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