2015-09-04 02:10:38 +00:00
|
|
|
#ifndef INCLUDE_FCDPROPLUSPLUGIN_H
|
|
|
|
#define INCLUDE_FCDPROPLUSPLUGIN_H
|
2015-09-03 01:57:54 +00:00
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include "plugin/plugininterface.h"
|
|
|
|
|
2015-10-01 02:23:22 +00:00
|
|
|
#define FCDPROPLUS_DEVICE_TYPE_ID "sdrangel.samplesource.fcdproplus"
|
|
|
|
|
2016-05-17 17:26:23 +00:00
|
|
|
class PluginAPI;
|
|
|
|
|
2015-09-04 02:10:38 +00:00
|
|
|
class FCDProPlusPlugin : public QObject, public PluginInterface {
|
2015-09-03 01:57:54 +00:00
|
|
|
Q_OBJECT
|
|
|
|
Q_INTERFACES(PluginInterface)
|
2015-09-04 02:10:38 +00:00
|
|
|
Q_PLUGIN_METADATA(IID "org.osmocom.sdr.samplesource.fcdproplus")
|
2015-09-03 01:57:54 +00:00
|
|
|
|
|
|
|
public:
|
2015-09-04 02:10:38 +00:00
|
|
|
explicit FCDProPlusPlugin(QObject* parent = NULL);
|
2015-09-03 01:57:54 +00:00
|
|
|
|
|
|
|
const PluginDescriptor& getPluginDescriptor() const;
|
|
|
|
void initPlugin(PluginAPI* pluginAPI);
|
|
|
|
|
2019-09-16 22:34:11 +00:00
|
|
|
virtual void enumOriginDevices(QStringList& listedHwIds, OriginDevices& originDevices);
|
|
|
|
virtual SamplingDevices enumSampleSources(const OriginDevices& originDevices);
|
2017-10-29 23:02:28 +00:00
|
|
|
virtual PluginInstanceGUI* createSampleSourcePluginInstanceGUI(
|
|
|
|
const QString& sourceId,
|
|
|
|
QWidget **widget,
|
|
|
|
DeviceUISet *deviceUISet);
|
2019-05-19 08:28:50 +00:00
|
|
|
virtual DeviceSampleSource* createSampleSourcePluginInstance(const QString& sourceId, DeviceAPI *deviceAPI);
|
2019-08-04 18:24:44 +00:00
|
|
|
virtual DeviceWebAPIAdapter* createDeviceWebAPIAdapter() const;
|
2015-09-03 01:57:54 +00:00
|
|
|
|
2015-10-01 02:23:22 +00:00
|
|
|
static const QString m_deviceTypeID;
|
|
|
|
|
2015-09-03 01:57:54 +00:00
|
|
|
private:
|
|
|
|
static const PluginDescriptor m_pluginDescriptor;
|
|
|
|
};
|
|
|
|
|
2015-09-04 02:10:38 +00:00
|
|
|
#endif // INCLUDE_FCDPROPLUSPLUGIN_H
|