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 | Static Public Attributes | Static Private Attributes | List of all members
FileSinkPlugin Class Reference

#include <filesinkplugin.h>

+ Inheritance diagram for FileSinkPlugin:
+ Collaboration diagram for FileSinkPlugin:

Public Member Functions

 FileSinkPlugin (QObject *parent=NULL)
 
const PluginDescriptorgetPluginDescriptor () const
 
void initPlugin (PluginAPI *pluginAPI)
 
virtual SamplingDevices enumSampleSinks ()
 
virtual PluginInstanceGUIcreateSampleSinkPluginInstanceGUI (const QString &sinkId, QWidget **widget, DeviceUISet *deviceUISet)
 
virtual DeviceSampleSinkcreateSampleSinkPluginInstance (const QString &sinkId, DeviceAPI *deviceAPI)
 
- Public Member Functions inherited from PluginInterface
virtual ~PluginInterface ()
 
virtual PluginInstanceGUIcreateRxChannelGUI (DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
 
virtual BasebandSampleSinkcreateRxChannelBS (DeviceAPI *deviceAPI)
 
virtual ChannelAPIcreateRxChannelCS (DeviceAPI *deviceAPI)
 
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 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)
 

Static Public Attributes

static const QString m_hardwareID = "FileSink"
 
static const QString m_deviceTypeID = FILESINK_DEVICE_TYPE_ID
 

Static Private Attributes

static const PluginDescriptor m_pluginDescriptor
 

Additional Inherited Members

- Public Types inherited from PluginInterface
typedef QList< SamplingDeviceSamplingDevices
 

Detailed Description

Definition at line 29 of file filesinkplugin.h.

Constructor & Destructor Documentation

◆ FileSinkPlugin()

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

Definition at line 42 of file filesinkplugin.cpp.

42  :
43  QObject(parent)
44 {
45 }

Member Function Documentation

◆ createSampleSinkPluginInstance()

DeviceSampleSink * FileSinkPlugin::createSampleSinkPluginInstance ( const QString &  sinkId,
DeviceAPI deviceAPI 
)
virtual

Reimplemented from PluginInterface.

Definition at line 105 of file filesinkplugin.cpp.

References m_deviceTypeID.

106 {
107  if(sinkId == m_deviceTypeID)
108  {
109  FileSinkOutput* output = new FileSinkOutput(deviceAPI);
110  return output;
111  }
112  else
113  {
114  return 0;
115  }
116 
117 }
static const QString m_deviceTypeID

◆ createSampleSinkPluginInstanceGUI()

PluginInstanceGUI * FileSinkPlugin::createSampleSinkPluginInstanceGUI ( const QString &  sinkId,
QWidget **  widget,
DeviceUISet deviceUISet 
)
virtual

Reimplemented from PluginInterface.

Definition at line 87 of file filesinkplugin.cpp.

References m_deviceTypeID.

Referenced by enumSampleSinks().

91 {
92  if(sinkId == m_deviceTypeID)
93  {
94  FileSinkGui* gui = new FileSinkGui(deviceUISet);
95  *widget = gui;
96  return gui;
97  }
98  else
99  {
100  return 0;
101  }
102 }
static const QString m_deviceTypeID
+ Here is the caller graph for this function:

◆ enumSampleSinks()

PluginInterface::SamplingDevices FileSinkPlugin::enumSampleSinks ( )
virtual

Reimplemented from PluginInterface.

Definition at line 57 of file filesinkplugin.cpp.

References PluginInterface::SamplingDevice::BuiltInDevice, createSampleSinkPluginInstanceGUI(), m_deviceTypeID, m_hardwareID, and PluginInterface::SamplingDevice::StreamSingleTx.

58 {
59  SamplingDevices result;
60 
61  result.append(SamplingDevice(
62  "FileSink",
65  QString::null,
66  0,
69  1,
70  0));
71 
72  return result;
73 }
static const QString m_deviceTypeID
static const QString m_hardwareID
Exposes a single output stream that can be one of the streams of a physical device.
QList< SamplingDevice > SamplingDevices
+ Here is the call graph for this function:

◆ getPluginDescriptor()

const PluginDescriptor & FileSinkPlugin::getPluginDescriptor ( ) const
virtual

Implements PluginInterface.

Definition at line 47 of file filesinkplugin.cpp.

References m_pluginDescriptor.

48 {
49  return m_pluginDescriptor;
50 }
static const PluginDescriptor m_pluginDescriptor

◆ initPlugin()

void FileSinkPlugin::initPlugin ( PluginAPI pluginAPI)
virtual

Implements PluginInterface.

Definition at line 52 of file filesinkplugin.cpp.

References m_deviceTypeID, and PluginAPI::registerSampleSink().

53 {
54  pluginAPI->registerSampleSink(m_deviceTypeID, this);
55 }
void registerSampleSink(const QString &sinkName, PluginInterface *plugin)
Definition: pluginapi.cpp:24
static const QString m_deviceTypeID
+ Here is the call graph for this function:

Member Data Documentation

◆ m_deviceTypeID

const QString FileSinkPlugin::m_deviceTypeID = FILESINK_DEVICE_TYPE_ID
static

◆ m_hardwareID

const QString FileSinkPlugin::m_hardwareID = "FileSink"
static

Definition at line 47 of file filesinkplugin.h.

Referenced by enumSampleSinks().

◆ m_pluginDescriptor

const PluginDescriptor FileSinkPlugin::m_pluginDescriptor
staticprivate
Initial value:
= {
QString("File sink output"),
QString("4.2.1"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,
QString("https://github.com/f4exb/sdrangel")
}

Definition at line 51 of file filesinkplugin.h.

Referenced by getPluginDescriptor().


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