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