1 #ifndef INCLUDE_PLUGININTERFACE_H 2 #define INCLUDE_PLUGININTERFACE_H 60 const QString& _hardwareId,
62 const QString& _serial,
67 int _deviceItemIndex) :
68 displayedName(_displayedName),
69 hardwareId(_hardwareId),
74 streamType(_streamType),
75 deviceNbItems(_deviceNbItems),
76 deviceItemIndex(_deviceItemIndex),
85 virtual void initPlugin(
PluginAPI* pluginAPI) = 0;
142 const QString& sourceId,
153 const QString& sourceId,
168 const QString& sinkId,
179 const QString& sinkId,
195 const QString& mimoId,
206 const QString& mimoId,
221 #endif // INCLUDE_PLUGININTERFACE_H
const QString displayedName
virtual DeviceSampleSource * createSampleSourcePluginInstance(const QString &sourceId, DeviceAPI *deviceAPI)
int sequence
The device sequence. >0 when more than one device of the same type is connected.
QString displayedName
The human readable name.
virtual BasebandSampleSink * createRxChannelBS(DeviceAPI *deviceAPI)
virtual ~PluginInterface()
virtual DeviceSampleMIMO * createSampleMIMOPluginInstance(const QString &mimoId, DeviceAPI *deviceAPI)
virtual PluginInstanceGUI * createSampleSinkPluginInstanceGUI(const QString &sinkId, QWidget **widget, DeviceUISet *deviceUISet)
virtual SamplingDevices enumSampleSources()
QString hardwareId
The internal id that identifies the type of hardware (i.e. HackRF, BladeRF, ...)
SamplingDeviceType type
The sampling device type for behavior information.
SamplingDevice(const QString &_displayedName, const QString &_hardwareId, const QString &_id, const QString &_serial, int _sequence, SamplingDeviceType _type, StreamType _streamType, int _deviceNbItems, int _deviceItemIndex)
virtual SamplingDevices enumSampleSinks()
Q_DECLARE_INTERFACE(PluginInterface, "SDRangel.PluginInterface/0.1")
virtual ChannelAPI * createRxChannelCS(DeviceAPI *deviceAPI)
int deviceNbItems
Number of items (or streams) in the device. >1 for composite devices.
virtual PluginInstanceGUI * createSampleMIMOPluginInstanceGUI(const QString &mimoId, QWidget **widget, DeviceUISet *deviceUISet)
virtual PluginInstanceGUI * createSampleSourcePluginInstanceGUI(const QString &sourceId, QWidget **widget, DeviceUISet *deviceUISet)
const QString sourceCodeURL
virtual PluginInstanceGUI * createTxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSource *txChannel)
virtual DeviceSampleSink * createSampleSinkPluginInstance(const QString &sinkId, DeviceAPI *deviceAPI)
int claimed
This is the device set index if claimed else -1.
QString id
The internal plugin ID corresponding to the device (i.e. for HackRF input, for HackRF output ...
Exposes a single output stream that can be one of the streams of a physical device.
QString serial
The device serial number defined by the vendor or a fake one (SDRplay)
Exposes a single input stream that can be one of the streams of a physical device.
virtual PluginInstanceGUI * createRxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
StreamType streamType
This is the type of stream supported.
virtual BasebandSampleSource * createTxChannelBS(DeviceAPI *deviceAPI)
int deviceItemIndex
For composite devices this is the Rx or Tx stream index. -1 if not initialized.
QList< SamplingDevice > SamplingDevices
virtual SamplingDevices enumSampleMIMO()
virtual ChannelAPI * createTxChannelCS(DeviceAPI *deviceAPI)