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

#include <testmiplugin.h>

+ Inheritance diagram for TestMIPlugin:
+ Collaboration diagram for TestMIPlugin:

Public Member Functions

 TestMIPlugin (QObject *parent=NULL)
 
const PluginDescriptorgetPluginDescriptor () const
 
void initPlugin (PluginAPI *pluginAPI)
 
virtual SamplingDevices enumSampleMIMO ()
 
virtual PluginInstanceGUIcreateSampleMIMOPluginInstanceGUI (const QString &sourceId, QWidget **widget, DeviceUISet *deviceUISet)
 
virtual DeviceSampleMIMOcreateSampleMIMOPluginInstance (const QString &sourceId, 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 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 void deleteSampleMIMOPluginInstanceGUI (PluginInstanceGUI *ui)
 
virtual void deleteSampleMIMOPluginInstanceMIMO (DeviceSampleMIMO *mimo)
 

Static Public Attributes

static const QString m_hardwareID = "TestMI"
 
static const QString m_deviceTypeID = TESTMI_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 28 of file testmiplugin.h.

Constructor & Destructor Documentation

◆ TestMIPlugin()

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

Definition at line 42 of file testmiplugin.cpp.

42  :
43  QObject(parent)
44 {
45 }

Member Function Documentation

◆ createSampleMIMOPluginInstance()

DeviceSampleMIMO * TestMIPlugin::createSampleMIMOPluginInstance ( const QString &  sourceId,
DeviceAPI deviceAPI 
)
virtual

Reimplemented from PluginInterface.

Definition at line 102 of file testmiplugin.cpp.

References m_deviceTypeID.

103 {
104  if (mimoId == m_deviceTypeID)
105  {
106  TestMI* input = new TestMI(deviceAPI);
107  return input;
108  }
109  else
110  {
111  return nullptr;
112  }
113 }
static const QString m_deviceTypeID
Definition: testmiplugin.h:47
Definition: testmi.h:35

◆ createSampleMIMOPluginInstanceGUI()

PluginInstanceGUI * TestMIPlugin::createSampleMIMOPluginInstanceGUI ( const QString &  sourceId,
QWidget **  widget,
DeviceUISet deviceUISet 
)
virtual

Reimplemented from PluginInterface.

Definition at line 87 of file testmiplugin.cpp.

References m_deviceTypeID.

Referenced by enumSampleMIMO().

91 {
92  if (sourceId == m_deviceTypeID) {
93  TestMIGui* gui = new TestMIGui(deviceUISet);
94  *widget = gui;
95  return gui;
96  } else {
97  return nullptr;
98  }
99 }
static const QString m_deviceTypeID
Definition: testmiplugin.h:47
+ Here is the caller graph for this function:

◆ enumSampleMIMO()

PluginInterface::SamplingDevices TestMIPlugin::enumSampleMIMO ( )
virtual

Reimplemented from PluginInterface.

Definition at line 57 of file testmiplugin.cpp.

References PluginInterface::SamplingDevice::BuiltInDevice, createSampleMIMOPluginInstanceGUI(), m_deviceTypeID, m_hardwareID, and PluginInterface::SamplingDevice::StreamMIMO.

58 {
59  SamplingDevices result;
60 
61  result.append(SamplingDevice(
62  "TestMI",
65  QString::null,
66  0,
69  1,
70  0));
71 
72  return result;
73 }
static const QString m_deviceTypeID
Definition: testmiplugin.h:47
May expose any number of input and/or output streams.
static const QString m_hardwareID
Definition: testmiplugin.h:46
QList< SamplingDevice > SamplingDevices
+ Here is the call graph for this function:

◆ getPluginDescriptor()

const PluginDescriptor & TestMIPlugin::getPluginDescriptor ( ) const
virtual

Implements PluginInterface.

Definition at line 47 of file testmiplugin.cpp.

References m_pluginDescriptor.

48 {
49  return m_pluginDescriptor;
50 }
static const PluginDescriptor m_pluginDescriptor
Definition: testmiplugin.h:50

◆ initPlugin()

void TestMIPlugin::initPlugin ( PluginAPI pluginAPI)
virtual

Implements PluginInterface.

Definition at line 52 of file testmiplugin.cpp.

References m_deviceTypeID, and PluginAPI::registerSampleMIMO().

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

Member Data Documentation

◆ m_deviceTypeID

const QString TestMIPlugin::m_deviceTypeID = TESTMI_DEVICE_TYPE_ID
static

◆ m_hardwareID

const QString TestMIPlugin::m_hardwareID = "TestMI"
static

Definition at line 46 of file testmiplugin.h.

Referenced by enumSampleMIMO().

◆ m_pluginDescriptor

const PluginDescriptor TestMIPlugin::m_pluginDescriptor
staticprivate
Initial value:
= {
QString("Test Multiple Input"),
QString("4.8.1"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,
QString("https://github.com/f4exb/sdrangel")
}

Definition at line 50 of file testmiplugin.h.

Referenced by getPluginDescriptor().


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