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

#include <kiwisdrplugin.h>

+ Inheritance diagram for KiwiSDRPlugin:
+ Collaboration diagram for KiwiSDRPlugin:

Public Member Functions

 KiwiSDRPlugin (QObject *parent=NULL)
 
const PluginDescriptorgetPluginDescriptor () const
 
void initPlugin (PluginAPI *pluginAPI)
 
virtual SamplingDevices enumSampleSources ()
 
virtual PluginInstanceGUIcreateSampleSourcePluginInstanceGUI (const QString &sourceId, QWidget **widget, DeviceUISet *deviceUISet)
 
virtual DeviceSampleSourcecreateSampleSourcePluginInstance (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 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)
 

Static Public Attributes

static const QString m_hardwareID = "KiwiSDR"
 
static const QString m_deviceTypeID = KIWISDR_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 kiwisdrplugin.h.

Constructor & Destructor Documentation

◆ KiwiSDRPlugin()

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

Definition at line 43 of file kiwisdrplugin.cpp.

43  :
44  QObject(parent)
45 {
46 }

Member Function Documentation

◆ createSampleSourcePluginInstance()

DeviceSampleSource * KiwiSDRPlugin::createSampleSourcePluginInstance ( const QString &  sourceId,
DeviceAPI deviceAPI 
)
virtual

Reimplemented from PluginInterface.

Definition at line 103 of file kiwisdrplugin.cpp.

References m_deviceTypeID.

104 {
105  if (sourceId == m_deviceTypeID)
106  {
107  KiwiSDRInput* input = new KiwiSDRInput(deviceAPI);
108  return input;
109  }
110  else
111  {
112  return 0;
113  }
114 }
static const QString m_deviceTypeID
Definition: kiwisdrplugin.h:48

◆ createSampleSourcePluginInstanceGUI()

PluginInstanceGUI * KiwiSDRPlugin::createSampleSourcePluginInstanceGUI ( const QString &  sourceId,
QWidget **  widget,
DeviceUISet deviceUISet 
)
virtual

Reimplemented from PluginInterface.

Definition at line 88 of file kiwisdrplugin.cpp.

References m_deviceTypeID.

Referenced by enumSampleSources().

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

◆ enumSampleSources()

PluginInterface::SamplingDevices KiwiSDRPlugin::enumSampleSources ( )
virtual

Reimplemented from PluginInterface.

Definition at line 58 of file kiwisdrplugin.cpp.

References PluginInterface::SamplingDevice::BuiltInDevice, createSampleSourcePluginInstanceGUI(), m_deviceTypeID, m_hardwareID, and PluginInterface::SamplingDevice::StreamSingleRx.

59 {
60  SamplingDevices result;
61 
62  result.append(SamplingDevice(
63  "KiwiSDR",
66  QString::null,
67  0,
70  1,
71  0));
72 
73  return result;
74 }
static const QString m_hardwareID
Definition: kiwisdrplugin.h:47
static const QString m_deviceTypeID
Definition: kiwisdrplugin.h:48
Exposes a single input 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 & KiwiSDRPlugin::getPluginDescriptor ( ) const
virtual

Implements PluginInterface.

Definition at line 48 of file kiwisdrplugin.cpp.

References m_pluginDescriptor.

49 {
50  return m_pluginDescriptor;
51 }
static const PluginDescriptor m_pluginDescriptor
Definition: kiwisdrplugin.h:51

◆ initPlugin()

void KiwiSDRPlugin::initPlugin ( PluginAPI pluginAPI)
virtual

Implements PluginInterface.

Definition at line 53 of file kiwisdrplugin.cpp.

References m_deviceTypeID, and PluginAPI::registerSampleSource().

54 {
55  pluginAPI->registerSampleSource(m_deviceTypeID, this);
56 }
void registerSampleSource(const QString &sourceName, PluginInterface *plugin)
Definition: pluginapi.cpp:9
static const QString m_deviceTypeID
Definition: kiwisdrplugin.h:48
+ Here is the call graph for this function:

Member Data Documentation

◆ m_deviceTypeID

const QString KiwiSDRPlugin::m_deviceTypeID = KIWISDR_DEVICE_TYPE_ID
static

◆ m_hardwareID

const QString KiwiSDRPlugin::m_hardwareID = "KiwiSDR"
static

Definition at line 47 of file kiwisdrplugin.h.

Referenced by enumSampleSources().

◆ m_pluginDescriptor

const PluginDescriptor KiwiSDRPlugin::m_pluginDescriptor
staticprivate
Initial value:
= {
QString("KiwiSDR input"),
QString("4.10.0"),
QString("(c) Vort (c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,
QString("https://github.com/f4exb/sdrangel")
}

Definition at line 51 of file kiwisdrplugin.h.

Referenced by getPluginDescriptor().


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